diff options
author | Rémy Coutable <remy@rymai.me> | 2016-09-20 09:52:06 +0200 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2016-09-20 09:52:57 +0200 |
commit | f8c2d479fb5d7f3f9ada860e890fecd6a52ccebe (patch) | |
tree | 858efff4021cb3406486fc42ad64aa004d51f04d | |
parent | c61a54f7fe932b9b76ce930aaccb04f897c4093b (diff) | |
download | gitlab-ce-f8c2d479fb5d7f3f9ada860e890fecd6a52ccebe.tar.gz |
Improve the Unsubscribe confirmation pagemaxiperezc/gitlab-ce-issues_17198
Signed-off-by: Rémy Coutable <remy@rymai.me>
-rw-r--r-- | app/views/sent_notifications/unsubscribe.html.haml | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/app/views/sent_notifications/unsubscribe.html.haml b/app/views/sent_notifications/unsubscribe.html.haml index 9baadf8a0c5..9ce6a1aeef5 100644 --- a/app/views/sent_notifications/unsubscribe.html.haml +++ b/app/views/sent_notifications/unsubscribe.html.haml @@ -1,13 +1,17 @@ - noteable = @sent_notification.noteable - noteable_type = @sent_notification.noteable_type.humanize(capitalize: false) -- noteable_text = %(#{noteable_type} "#{noteable.title}" (#{noteable.to_reference})) -- title = "Unsubscribe from #{noteable_text}" +- noteable_text = %(#{noteable.title} (#{noteable.to_reference})) -- page_title title +- page_title "Unsubscribe", noteable_text, @sent_notification.noteable_type.humanize.pluralize, @sent_notification.project.name_with_namespace -%h3.page-title= title -%p= "Are you sure you want to unsubscribe from #{noteable_text}?" +%h3.page-title + Unsubscribe from #{noteable_type} #{noteable_text} + +%p + = succeed '?' do + Are you sure you want to unsubscribe from #{noteable_type} + = link_to noteable_text, url_for([@sent_notification.project.namespace.becomes(Namespace), @sent_notification.project, noteable]) %p = link_to 'Unsubscribe', unsubscribe_sent_notification_path(@sent_notification, force: true), |