diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2019-12-31 09:55:45 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2019-12-31 09:55:45 +0000 |
commit | 8a97772aca25cb233778ce99c487c674c86ba2fd (patch) | |
tree | 4bbb2614385ca3cf88c166a5faaf0679cf97f7db /app/views | |
parent | 5bc8aa03f1ac7ff5a20ae77e8f62631370a52d1a (diff) | |
download | gitlab-ce-8a97772aca25cb233778ce99c487c674c86ba2fd.tar.gz |
Add latest changes from gitlab-org/security/gitlab@12-6-stable-ee
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/sent_notifications/unsubscribe.html.haml | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/app/views/sent_notifications/unsubscribe.html.haml b/app/views/sent_notifications/unsubscribe.html.haml index 22fcfcda297..1eecbe3bc0e 100644 --- a/app/views/sent_notifications/unsubscribe.html.haml +++ b/app/views/sent_notifications/unsubscribe.html.haml @@ -1,13 +1,16 @@ - noteable = @sent_notification.noteable - noteable_type = @sent_notification.noteable_type.titleize.downcase - 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 +- show_project_path = can_read_project?(@sent_notification.project) +- project_path = show_project_path ? @sent_notification.project.full_name : _("GitLab / Unsubscribe") +- noteable_url = show_project_path ? url_for([@sent_notification.project.namespace.becomes(Namespace), @sent_notification.project, noteable]) : breadcrumb_title_link +- page_title _('Unsubscribe'), noteable_text, noteable_type.pluralize, project_path %h3.page-title = _("Unsubscribe from %{type}") % { type: noteable_type } %p - - link_to_noteable_text = link_to(noteable_text, url_for([@sent_notification.project.namespace.becomes(Namespace), @sent_notification.project, noteable])) + - link_to_noteable_text = link_to(noteable_text, noteable_url) = _("Are you sure you want to unsubscribe from the %{type}: %{link_to_noteable_text}?").html_safe % { type: noteable_type, link_to_noteable_text: link_to_noteable_text } %p |