diff options
Diffstat (limited to 'src/Wallabag/CoreBundle/Resources/views/themes/material/Notification')
-rw-r--r-- | src/Wallabag/CoreBundle/Resources/views/themes/material/Notification/notifications.html.twig | 31 |
1 files changed, 17 insertions, 14 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 index bc72c704..7c0f8c44 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/material/Notification/notifications.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/material/Notification/notifications.html.twig | |||
@@ -7,7 +7,7 @@ | |||
7 | <div class="col l6 offset-l3"> | 7 | <div class="col l6 offset-l3"> |
8 | <ul class="collection"> | 8 | <ul class="collection"> |
9 | {% for notification in notifications | slice(0, 10) %} | 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 %}"> | 10 | <li class="notification collection-item avatar{% if not notification.read %} light-blue lighten-5{% else %} grey-text{% endif %}"> |
11 | <i class="material-icons circle">{% spaceless %} | 11 | <i class="material-icons circle">{% spaceless %} |
12 | {% if notification.type == constant('TYPE_ADMIN', notification) %} | 12 | {% if notification.type == constant('TYPE_ADMIN', notification) %} |
13 | build | 13 | build |
@@ -18,20 +18,23 @@ | |||
18 | {% endif %} | 18 | {% endif %} |
19 | {% endspaceless %}</i> | 19 | {% endspaceless %}</i> |
20 | <span class="title">{{ notification.title }}</span> | 20 | <span class="title">{{ notification.title }}</span> |
21 | <p><em>{{ notification.timestamp | date }}</p> | 21 | <p><em>{{ notification.timestamp | date }}</em></p> |
22 | <div class="secondary-content"> | 22 | <div class="secondary-content"> |
23 | {% for action in notification.actions %} | 23 | {% if not notification.read %} |
24 | <a class="btn waves-effect waves-light {% spaceless %} | 24 | {% for action in notification.actions %} |
25 | {% if action.type == constant('TYPE_OK', action) %} | 25 | <a class="notification-action btn waves-effect waves-light {% spaceless %} |
26 | {% elseif action.type == constant('TYPE_YES', action) %} | 26 | {% if action.type == constant('TYPE_OK', action) %} |
27 | cyan | 27 | {% elseif action.type == constant('TYPE_YES', action) %} |
28 | {% elseif action.type == constant('TYPE_NO', action) %} | 28 | cyan |
29 | red | 29 | {% elseif action.type == constant('TYPE_NO', action) %} |
30 | {% elseif action.type == constant('TYPE_INFO', action) %} | 30 | red |
31 | blue-grey | 31 | {% elseif action.type == constant('TYPE_INFO', action) %} |
32 | {% endif %} | 32 | blue-grey |
33 | {% endspaceless %}" href="{{ action.link }}">{{ action.label }}</a> | 33 | {% endif %} |
34 | {% endfor %} | 34 | {% endspaceless %}" data-id="{{ notification.id }}" href="{{ action.link }}">{{ action.label }}</a> |
35 | {% endfor %} | ||
36 | <button class="notification-action waves-effect waves-teal btn-flat" data-id="{{ notification.id }}"><i data-id="{{ notification.id }}" class="material-icons">check</i></button> | ||
37 | {% endif %} | ||
35 | </div> | 38 | </div> |
36 | </li> | 39 | </li> |
37 | {% endfor %} | 40 | {% endfor %} |