Fix 'View All' link for notifications

Change-Id: Idbf3436380f6a58f2c28b20d02f541c7f9ca6857
Closes-Bug: 1248881
This commit is contained in:
Vitaly Kramskikh 2013-11-07 20:12:56 +04:00
parent af1efb1869
commit cf28bdf554

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') %>">