summaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorGitLab Release Tools Bot <robert+release-tools@gitlab.com>2019-06-03 12:33:55 +0000
committerGitLab Release Tools Bot <robert+release-tools@gitlab.com>2019-06-03 12:33:55 +0000
commit4dc442f17790182ecddac0facb51804ee7777434 (patch)
treefbff73996deb41974465697ad41002671c32286b /app/views
parent0aa734804befc4a5eb39583d8da59b9b3d7fb61a (diff)
parent1be66c4a098290d72cb19b4c844a9bee4eff630b (diff)
downloadgitlab-ce-4dc442f17790182ecddac0facb51804ee7777434.tar.gz
Merge branch 'security-unsubscribing-from-issue' into 'master'
Hide issue title on unsubscribe for anonymous users See merge request gitlab/gitlabhq!3097
Diffstat (limited to 'app/views')
-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