diff options
author | Alexandru Croitor <acroitor@gitlab.com> | 2019-05-09 16:09:04 +0300 |
---|---|---|
committer | Alexandru Croitor <acroitor@gitlab.com> | 2019-05-16 20:17:23 +0300 |
commit | 1be66c4a098290d72cb19b4c844a9bee4eff630b (patch) | |
tree | bdfbfd3edd601df14ef9f1eaade2d1215ef09a28 /app/views/sent_notifications | |
parent | 74511b049743cf543694bb92a8acd7e7586e533d (diff) | |
download | gitlab-ce-1be66c4a098290d72cb19b4c844a9bee4eff630b.tar.gz |
Hide issue title on unsubscribe for anonymous users
Diffstat (limited to 'app/views/sent_notifications')
-rw-r--r-- | app/views/sent_notifications/unsubscribe.html.haml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/sent_notifications/unsubscribe.html.haml b/app/views/sent_notifications/unsubscribe.html.haml index ca392e1adfc..22fcfcda297 100644 --- a/app/views/sent_notifications/unsubscribe.html.haml +++ b/app/views/sent_notifications/unsubscribe.html.haml @@ -1,6 +1,6 @@ - noteable = @sent_notification.noteable - noteable_type = @sent_notification.noteable_type.titleize.downcase -- noteable_text = %(#{noteable.title} (#{noteable.to_reference})) +- noteable_text = show_unsubscribe_title?(noteable) ? %(#{noteable.title} (#{noteable.to_reference})) : %(#{noteable.to_reference}) - page_title _("Unsubscribe"), noteable_text, noteable_type.pluralize, @sent_notification.project.full_name %h3.page-title |