diaspora/app/views/notifications/_notification.haml
2015-03-12 22:45:04 +01:00

13 lines
712 B
Text

.media.stream_element{:data=>{:guid => note.id, :type => (Notification.types.key(note.type) || '') }, :class => (note.unread ? 'unread' : 'read')}
.unread-toggle.pull-right
%i.entypo.eye{ :title => (note.unread ? t('notifications.index.mark_read') : t('notifications.index.mark_unread')) }
- if note.type == "Notifications::StartedSharing" && contact = current_user.contact_for(note.effective_target)
.pull-right
= aspect_membership_dropdown(contact, note.effective_target, 'left')
.media-object.pull-left
= person_image_link note.actors.first, :size => :thumb_small, :class => 'hovercardable'
.media-body
= notification_message_for(note)
%div
= timeago(note.created_at)