Merge "Fix 'View All' link for notifications"

This commit is contained in:
Jenkins 2013-11-08 08:48:12 +00:00 committed by Gerrit Code Review
commit 47c1df4690

View File

@ -5,7 +5,7 @@
</div> </div>
<div class="notifications-list page-wrapper"> <div class="notifications-list page-wrapper">
<ul class="message-list" role="menu"> <ul class="message-list" role="menu">
<% if (notifications.deferred.state() != 'pending') { %> <% if (notifications.length) { %>
<% _.each(notifications.last(notifications.length).reverse(), function(notification) { %> <% _.each(notifications.last(notifications.length).reverse(), function(notification) { %>
<% var topic = notification.get('topic'), icons = {'error': 'icon-attention', 'discover': 'icon-bell'} %> <% var topic = notification.get('topic'), icons = {'error': 'icon-attention', 'discover': 'icon-bell'} %>
<li class="notification-box enable-selection <%= notification.get('status') == 'unread' ? 'new' : '' %> <%= topic %>" data-id="<%= notification.id %>" data-node="<%- notification.get('node_id') %>"> <li class="notification-box enable-selection <%= notification.get('status') == 'unread' ? 'new' : '' %> <%= topic %>" data-id="<%= notification.id %>" data-node="<%- notification.get('node_id') %>">