diff options
Diffstat (limited to 'src/Wallabag/CoreBundle/Resources/views/themes/material/Notification/notifications.html.twig')
-rw-r--r-- | src/Wallabag/CoreBundle/Resources/views/themes/material/Notification/notifications.html.twig | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/material/Notification/notifications.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/material/Notification/notifications.html.twig new file mode 100644 index 00000000..bc72c704 --- /dev/null +++ b/src/Wallabag/CoreBundle/Resources/views/themes/material/Notification/notifications.html.twig | |||
@@ -0,0 +1,42 @@ | |||
1 | {% extends "WallabagCoreBundle::layout.html.twig" %} | ||
2 | |||
3 | {% block title %}{{ 'notifications.list.page_title' | trans }}{% endblock %} | ||
4 | |||
5 | {% block content %} | ||
6 | <div class="row"> | ||
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) %} | ||
13 | build | ||
14 | {% elseif notification.type == constant('TYPE_USER', notification) %} | ||
15 | person | ||
16 | {% elseif notification.type == constant('TYPE_RELEASE', notification) %} | ||
17 | new_releases | ||
18 | {% endif %} | ||
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) %} | ||
27 | cyan | ||
28 | {% elseif action.type == constant('TYPE_NO', action) %} | ||
29 | red | ||
30 | {% elseif action.type == constant('TYPE_INFO', action) %} | ||
31 | blue-grey | ||
32 | {% endif %} | ||
33 | {% endspaceless %}" href="{{ action.link }}">{{ action.label }}</a> | ||
34 | {% endfor %} | ||
35 | </div> | ||
36 | </li> | ||
37 | {% endfor %} | ||
38 | </ul> | ||
39 | <a href="{{ path('notification-archive-all') }}" class="btn waves-effect waves-light ">{{ 'notifications.list.mark_all_as_read' | trans }}</a> | ||
40 | </div> | ||
41 | </div> | ||
42 | {% endblock %} | ||