<% @notifications.each do |notification| %>
  • <% if notification.type_of == 'recent_changes' %>
    <%= image_tag avatar_path(notification.generator_user, :icon_small), class: 'avatar img-circle' %>
    <% end %> <% if notification.type_of == 'assignment' %>
    <%= fa_icon 'newspaper-o' %>
    <% end %> <% if notification.type_of == 'system_message' %>
    <% end %> <% if notification.type_of == 'deliver' %>
    <%= fa_icon 'truck' %>
    <% end %>
    <%= sanitize_input(notification.title) %>
    <%= l(notification.created_at, format: :full) %> | <%= sanitize_input(notification.message) %>
  • <% end %>