diaspora/app/views/notifications/_notification.mobile.haml
2023-11-13 02:27:55 +01:00

11 lines
551 B
Text

.notification_element{data: {
guid: note.id,
type: (NotificationService::NOTIFICATIONS_JSON_TYPES.key(note.type) || "")
},
class: (note.unread ? "unread" : "read")}
.pull-right.unread-toggle
%i.entypo-eye{title: (note.unread ? t("notifications.index.mark_read") : t("notifications.index.mark_unread"))}
= person_image_tag note.actors.first, :thumb_small
.notification_message
= notification_message_for(note)
%div= timeago(note.created_at)