2015-10-10 21:17:50 +00:00
|
|
|
{% if alerts %}
|
2015-08-21 22:07:45 +00:00
|
|
|
<div class="notification-history">
|
2015-10-10 21:17:50 +00:00
|
|
|
{% for alert in alerts[page.currentPage] %}
|
|
|
|
<a id="notif-hist-{{ alert.id }}" class="clean {% if alert.alert_read %}read{% endif %}"{% if alert.alert_link %} href="{{ alert.alert_link }}"{% endif %}>
|
2015-08-21 22:07:45 +00:00
|
|
|
<div class="notif-hist-icon">
|
2015-10-10 21:17:50 +00:00
|
|
|
{% if 'FONT:' in alert.alert_img %}
|
|
|
|
<div class="font-icon fa {{ alert.alert_img|replace({'FONT:': ''}) }} fa-4x"></div>
|
2015-08-21 22:07:45 +00:00
|
|
|
{% else %}
|
2015-10-10 21:17:50 +00:00
|
|
|
<img src="{{ alert.alert_img }}" alt="Notification" />
|
2015-08-21 22:07:45 +00:00
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
<div class="notif-hist-content">
|
|
|
|
<div class="notif-hist-inside">
|
|
|
|
<div class="notif-hist-title">
|
2015-10-10 21:17:50 +00:00
|
|
|
{{ alert.alert_title }}
|
2015-08-21 22:07:45 +00:00
|
|
|
</div>
|
|
|
|
<div class="notif-hist-text">
|
2015-10-10 21:17:50 +00:00
|
|
|
{{ alert.alert_text }}
|
2015-08-21 22:07:45 +00:00
|
|
|
</div>
|
2015-08-10 20:04:22 +00:00
|
|
|
</div>
|
2015-08-21 22:07:45 +00:00
|
|
|
<div class="notif-hist-time">
|
2015-10-10 21:17:50 +00:00
|
|
|
{{ alert.alert_timestamp|date(sakura.dateFormat) }}
|
2015-08-10 20:04:22 +00:00
|
|
|
</div>
|
2015-06-19 16:12:44 +00:00
|
|
|
</div>
|
2015-08-21 22:07:45 +00:00
|
|
|
<div class="clear"></div>
|
|
|
|
</a>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
2015-10-10 21:17:50 +00:00
|
|
|
{% if alerts|length > 1 %}
|
2015-08-21 22:07:45 +00:00
|
|
|
<div>
|
|
|
|
<div class="pagination" style="float: right;">
|
|
|
|
{% if page.currentPage > 0 %}
|
2015-10-10 21:17:50 +00:00
|
|
|
<a href="{{ urls.format('SETTING_PAGE', ['notifications', 'history', page.currentPage]) }}"><span class="fa fa-step-backward"></span></a>
|
2015-08-21 22:07:45 +00:00
|
|
|
{% endif %}
|
2015-10-10 21:17:50 +00:00
|
|
|
{% for id,npage in alerts %}
|
|
|
|
<a href="{{ urls.format('SETTING_PAGE', ['notifications', 'history', id + 1]) }}"{% if id == page.currentPage %} class="current"{% endif %}>{{ id + 1 }}</a>
|
2015-08-21 22:07:45 +00:00
|
|
|
{% endfor %}
|
2015-10-10 21:17:50 +00:00
|
|
|
{% if page.currentPage + 1 < alerts|length %}
|
|
|
|
<a href="{{ urls.format('SETTING_PAGE', ['notifications', 'history', page.currentPage + 2]) }}"><span class="fa fa-step-forward"></span></a>
|
2015-08-21 22:07:45 +00:00
|
|
|
{% endif %}
|
2015-06-19 16:12:44 +00:00
|
|
|
</div>
|
2015-08-21 22:07:45 +00:00
|
|
|
<div class="clear"></div>
|
2015-08-10 20:04:22 +00:00
|
|
|
</div>
|
2015-08-21 22:07:45 +00:00
|
|
|
{% endif %}
|
|
|
|
{% else %}
|
|
|
|
<h1 class="stylised" style="margin: 2em auto; text-align: center;">You don't have any notifications in your history!</h1>
|
2015-08-10 20:04:22 +00:00
|
|
|
{% endif %}
|