summaryrefslogtreecommitdiff
path: root/app/views/sent_notifications
diff options
context:
space:
mode:
authorAlexandru Croitor <acroitor@gitlab.com>2019-05-09 16:09:04 +0300
committerAlexandru Croitor <acroitor@gitlab.com>2019-05-16 20:17:23 +0300
commit1be66c4a098290d72cb19b4c844a9bee4eff630b (patch)
treebdfbfd3edd601df14ef9f1eaade2d1215ef09a28 /app/views/sent_notifications
parent74511b049743cf543694bb92a8acd7e7586e533d (diff)
downloadgitlab-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.haml2
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