<% notifications = notifications.blank? ? @notifications : notifications %> <% if notifications.blank? -%>

No Notifications found.

<% end -%> <% (notifications || []).each do |notification| -%>
<% time_ago = notification.created_at %>

<%= notification.message %> at <%= time_ago.in_time_zone(@current_network.timezone || "UTC").strftime("%H:%M:%S %Z") %> on "><%= time_ago.in_time_zone(@current_network.timezone || "UTC").strftime("%b %e, %Y") %> <%if !notification.is_read %> new <%end%>

<%= notification.alert_category.humanize %>
  • <%= notification.alert_tags.join(',') unless notification.alert_tags.blank? -%>
<%if !notification.is_read and (can? :manage, notification)%> <%end%>
<% end -%>
<%= paginate notifications,:remote => false,:left => 2,:right => 4 unless notifications.blank?%>