diff options
author | Rémy Coutable <remy@rymai.me> | 2017-06-06 07:48:09 +0000 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2017-06-06 07:48:09 +0000 |
commit | 17feb2faa71416b3459003eeb2a877f2c65dd3ef (patch) | |
tree | 2e69ac4758ec4e04e67c9c040fd8c398ab084939 /app/views | |
parent | 6251df6d6a1862562ce4c5fa28f432bf9662e3c3 (diff) | |
parent | a048e4a4717f71ecf1a1780d55639b029be5d71e (diff) | |
download | gitlab-ce-17feb2faa71416b3459003eeb2a877f2c65dd3ef.tar.gz |
Merge branch 'issue-23254' into 'master'
Cleanup style of confirmation page
See merge request !11774
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/sent_notifications/unsubscribe.html.haml | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/app/views/sent_notifications/unsubscribe.html.haml b/app/views/sent_notifications/unsubscribe.html.haml index 9ce6a1aeef5..de52fd00157 100644 --- a/app/views/sent_notifications/unsubscribe.html.haml +++ b/app/views/sent_notifications/unsubscribe.html.haml @@ -1,16 +1,14 @@ - noteable = @sent_notification.noteable -- noteable_type = @sent_notification.noteable_type.humanize(capitalize: false) +- noteable_type = @sent_notification.noteable_type.titleize.downcase - noteable_text = %(#{noteable.title} (#{noteable.to_reference})) - -- page_title "Unsubscribe", noteable_text, @sent_notification.noteable_type.humanize.pluralize, @sent_notification.project.name_with_namespace - +- page_title "Unsubscribe", noteable_text, noteable_type.pluralize, @sent_notification.project.name_with_namespace %h3.page-title - Unsubscribe from #{noteable_type} #{noteable_text} + Unsubscribe from #{noteable_type} %p = succeed '?' do - Are you sure you want to unsubscribe from #{noteable_type} + Are you sure you want to unsubscribe from the #{noteable_type}: = link_to noteable_text, url_for([@sent_notification.project.namespace.becomes(Namespace), @sent_notification.project, noteable]) %p |