2015-08-10 20:04:22 +00:00
|
|
|
<div class="notification-history">
|
|
|
|
{% for notif in notifs[page.currentPage] %}
|
|
|
|
<a id="notif-hist-{{ notif.id }}" class="clean {% if notif.notif_read %}read{% endif %}"{% if notif.notif_link %} href="{{ notif.notif_link }}"{% endif %}>
|
|
|
|
<div class="notif-hist-icon">
|
|
|
|
{% if 'FONT:' in notif.notif_img %}
|
|
|
|
<div class="font-icon fa {{ notif.notif_img|replace({'FONT:': ''}) }} fa-4x"></div>
|
|
|
|
{% else %}
|
|
|
|
<img src="{{ notif.notif_img }}" alt="Notification" />
|
|
|
|
{% endif %}
|
2015-06-19 16:12:44 +00:00
|
|
|
</div>
|
2015-08-10 20:04:22 +00:00
|
|
|
<div class="notif-hist-content">
|
|
|
|
<div class="notif-hist-inside">
|
|
|
|
<div class="notif-hist-title">
|
|
|
|
{{ notif.notif_title }}
|
|
|
|
</div>
|
|
|
|
<div class="notif-hist-text">
|
|
|
|
{{ notif.notif_text }}
|
|
|
|
</div>
|
2015-06-19 16:12:44 +00:00
|
|
|
</div>
|
2015-08-10 20:04:22 +00:00
|
|
|
<div class="notif-hist-time">
|
|
|
|
{{ notif.timestamp|date(sakura.date_format) }}
|
2015-06-19 16:12:44 +00:00
|
|
|
</div>
|
2015-08-10 20:04:22 +00:00
|
|
|
</div>
|
|
|
|
<div class="clear"></div>
|
|
|
|
</a>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
{% if notifs|length > 1 %}
|
|
|
|
<div>
|
|
|
|
<div class="pagination" style="float: right;">
|
|
|
|
{% if page.currentPage > 0 %}
|
|
|
|
<a href="/settings/notifications/p{{ page.currentPage }}"><span class="fa fa-step-backward"></span></a>
|
|
|
|
{% endif %}
|
|
|
|
{% for id,npage in notifs %}
|
|
|
|
<a href="/settings/notifications/p{{ id + 1 }}"{% if id == page.currentPage %} class="current"{% endif %}>{{ id + 1 }}</a>
|
|
|
|
{% endfor %}
|
|
|
|
{% if page.currentPage + 1 < notifs|length %}
|
|
|
|
<a href="/settings/notifications/p{{ page.currentPage + 2 }}"><span class="fa fa-step-forward"></span></a>
|
2015-07-31 21:18:14 +00:00
|
|
|
{% endif %}
|
2015-06-19 16:12:44 +00:00
|
|
|
</div>
|
|
|
|
<div class="clear"></div>
|
|
|
|
</div>
|
2015-08-10 20:04:22 +00:00
|
|
|
{% endif %}
|