1 {% extends "WallabagCoreBundle::layout.html.twig" %}
3 {% block title %}{{ 'notifications.list.page_title' | trans }}{% endblock %}
7 <div class="col l6 offset-l3">
8 <ul class="collection">
9 {% for notification in notifications | slice(0, 10) %}
10 <li class="collection-item avatar{% if not notification.read %} light-blue lighten-5{% else %} grey-text{% endif %}">
11 <i class="material-icons circle">{% spaceless %}
12 {% if notification.type == constant('TYPE_ADMIN', notification) %}
14 {% elseif notification.type == constant('TYPE_USER', notification) %}
16 {% elseif notification.type == constant('TYPE_RELEASE', notification) %}
19 {% endspaceless %}</i>
20 <span class="title">{{ notification.title }}</span>
21 <p><em>{{ notification.timestamp | date }}</p>
22 <div class="secondary-content">
23 {% for action in notification.actions %}
24 <a class="btn waves-effect waves-light {% spaceless %}
25 {% if action.type == constant('TYPE_OK', action) %}
26 {% elseif action.type == constant('TYPE_YES', action) %}
28 {% elseif action.type == constant('TYPE_NO', action) %}
30 {% elseif action.type == constant('TYPE_INFO', action) %}
33 {% endspaceless %}" href="{{ action.link }}">{{ action.label }}</a>
39 <a href="{{ path('notification-archive-all') }}" class="btn waves-effect waves-light ">{{ 'notifications.list.mark_all_as_read' | trans }}</a>