25 lines
735 B
Text
25 lines
735 B
Text
.right
|
|
= link_to t('.mark_all_as_read'), notifications_read_all_path, :class => 'btn'
|
|
|
|
%h3
|
|
= t('.notifications')
|
|
|
|
%ul.stream.notifications
|
|
- @group_days.each do |day, notes|
|
|
%li
|
|
.notification_day_header
|
|
%span.label
|
|
= day
|
|
%ul.notifications_for_day
|
|
- notes.each do |note|
|
|
.stream_element{:data=>{:guid => note.id}, :class => "#{note.unread ? 'unread' : 'read'}"}
|
|
|
|
= person_image_link(note.actors.last)
|
|
|
|
.content
|
|
%span.from
|
|
= notification_message_for(note)
|
|
.time
|
|
= time_ago_in_words(note.created_at)
|
|
|
|
= will_paginate @notifications, :renderer => WillPaginate::ActionView::BootstrapLinkRenderer
|