diff --git a/app/views/notifications/type/_answer.haml b/app/views/notifications/type/_answer.haml index d20de6d5..c17f0480 100644 --- a/app/views/notifications/type/_answer.haml +++ b/app/views/notifications/type/_answer.haml @@ -3,9 +3,9 @@ %i.fa.fa-2x.fa-fw.fa-exclamation .media-body .notification__heading - %img.avatar-xs{ src: notification.target.user.profile_picture.url(:small) } - = t(".heading_html", - user: user_screen_name(notification.target.user), + %img.avatar-xs{ src: notification.target.user.profile_picture.url(:small), loading: :lazy } + = t(".heading_html", + user: user_screen_name(notification.target.user), question: link_to(t(".link_text"), answer_path(username: notification.target.user.screen_name, id: notification.target.id)), time: time_tooltip(notification.target)) .list-group diff --git a/app/views/notifications/type/_comment.haml b/app/views/notifications/type/_comment.haml index 42a01375..f7fb4a25 100644 --- a/app/views/notifications/type/_comment.haml +++ b/app/views/notifications/type/_comment.haml @@ -3,7 +3,7 @@ %i.fa.fa-2x.fa-fw.fa-comments .media-body .notification__heading - %img.avatar-xs{ src: notification.target.user.profile_picture.url(:small) } + %img.avatar-xs{ src: notification.target.user.profile_picture.url(:small), loading: :lazy } - if notification.target.answer.user == current_user = t(".heading_html", user: user_screen_name(notification.target.user), diff --git a/app/views/notifications/type/_follow.haml b/app/views/notifications/type/_follow.haml index c71a9819..85355be7 100644 --- a/app/views/notifications/type/_follow.haml +++ b/app/views/notifications/type/_follow.haml @@ -1,6 +1,6 @@ .media.notification .notification__icon - %img.avatar-sm{ src: notification.target.source.profile_picture.url(:small) } + %img.avatar-sm{ src: notification.target.source.profile_picture.url(:small), loading: :lazy } .media-body %h6.media-heading.notification__user = user_screen_name notification.target.source diff --git a/app/views/notifications/type/_reaction.haml b/app/views/notifications/type/_reaction.haml index 156d867d..a97b5c27 100644 --- a/app/views/notifications/type/_reaction.haml +++ b/app/views/notifications/type/_reaction.haml @@ -3,7 +3,7 @@ %i.fa.fa-2x.fa-fw.fa-smile-o .media-body .notification__heading - %img.avatar-xs{ src: notification.target.user.profile_picture.url(:small) } + %img.avatar-xs{ src: notification.target.user.profile_picture.url(:small), loading: :lazy } - if notification.target.parent_type == 'Answer' = t(".heading_html", user: user_screen_name(notification.target.user),