_notifications-timeline.html 653 Bytes
Newer Older
1
{% load i18n %}
2
{% load hro %}
3
{% for n in page %}
4
  <li class="notification-message" id="msg-{{n.id}}">
5
    <span class="notification-message-subject">
6
      {% if n.status == "new" %}<i class="fa fa-envelope-o"></i> {% endif %}
7
      {{ n.subject|get_text:user }}
8
    </span>
9
    <span class="notification-message-date pull-right" title="{{n.created}}">
10 11 12 13
      {{ n.created|timesince }}
    </span>
    <div style="clear: both;"></div>
    <div class="notification-message-text">
14
      {{ n.message|get_text:user|safe }}
15 16
    </div>
  </li>
17 18 19 20
{% empty %}
  <li class="notification-message">
  {% trans "You have no notifications." %}
  </li>
21
{% endfor %}