diff --git a/app/views/notifications/type/_answer.html.haml b/app/views/notifications/type/_answer.html.haml index ff2cc2a9..8850c957 100644 --- a/app/views/notifications/type/_answer.html.haml +++ b/app/views/notifications/type/_answer.html.haml @@ -11,7 +11,7 @@ .list-group .list-group-item %h6.notification__list-heading= t("activerecord.models.question.one") - = markdown notification.target.question.content[0..60] + (notification.target.question.content.length > 60 ? '[...]' : '') + = markdown notification.target.question.content[0..60] + (notification.target.question.content.length > 60 ? '[…]' : '') .list-group-item %h6.notification__list-heading= t("activerecord.models.answer.one") - = markdown notification.target.content[0..60] + (notification.target.content.length > 60 ? '[...]' : '') + = markdown notification.target.content[0..60] + (notification.target.content.length > 60 ? '[…]' : '') diff --git a/app/views/notifications/type/_comment.html.haml b/app/views/notifications/type/_comment.html.haml index 4e079878..397d03ca 100644 --- a/app/views/notifications/type/_comment.html.haml +++ b/app/views/notifications/type/_comment.html.haml @@ -29,7 +29,7 @@ .list-group .list-group-item %h6.notification__list-heading= t("activerecord.models.answer.one") - = markdown notification.target.answer.content[0..60] + (notification.target.answer.content.length > 60 ? '[...]' : '') + = markdown notification.target.answer.content[0..60] + (notification.target.answer.content.length > 60 ? '[…]' : '') .list-group-item %h6.notification__list-heading= t("activerecord.models.comment.one") - = markdown notification.target.content[0..60] + (notification.target.content.length > 60 ? '[...]' : '') + = markdown notification.target.content[0..60] + (notification.target.content.length > 60 ? '[…]' : '') diff --git a/app/views/notifications/type/_reaction.html.haml b/app/views/notifications/type/_reaction.html.haml index e9958905..ae9259c1 100644 --- a/app/views/notifications/type/_reaction.html.haml +++ b/app/views/notifications/type/_reaction.html.haml @@ -23,4 +23,4 @@ .list-group .list-group-item %h6.notification__list-heading= t("activerecord.models.#{notification.target.parent_type.downcase}.one") - = markdown notification.target.parent.content[0..60] + (notification.target.parent.content.length > 60 ? "[...]" : "") + = markdown notification.target.parent.content[0..60] + (notification.target.parent.content.length > 60 ? "[…]" : "")