fuel-ui/static/templates/common/notifications_popover.html

23 lines
1.1 KiB
HTML

<div class="message-list-placeholder">
<ul class="message-list-popover" role="menu">
<% if (notifications.length) { %>
<% _.each(notifications.last(displayCount).reverse(), function(notification, index, collection) { %>
<% var topic = notification.get('topic'), icons = {'error': 'icon-attention', 'warning': 'icon-attention', 'discover': 'icon-bell'} %>
<% var nodeId = notification.get('node_id') %>
<li class="enable-selection <%= notification.get('status') == 'unread' ? 'new' : '' %> <%= topic %>" <%- nodeId ? 'data-node=' + nodeId : '' %>>
<i class="<%= icons[topic] || 'icon-info-circled' %>"></i>
<%= urlify(notification.escape('message')) %>
</li>
<% if (showMore || index < (collection.length - 1)) { %>
<li class="divider"></li>
<% } %>
<% }) %>
<% } else { %>
<li data-i18n="notifications_popover.no_notifications_text"></li>
<% } %>
</ul>
<% if (showMore) { %>
<div class="show-more-notifications"><a href="#notifications" data-i18n="notifications_popover.view_all_button"></a></div>
<% } %>
</div>