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