From ce12749a8a64a880ff415941d7efc9e45d87aa94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9my=20Coutable?= Date: Tue, 20 Sep 2016 09:52:06 +0200 Subject: Improve the Unsubscribe confirmation page MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Rémy Coutable --- app/views/sent_notifications/unsubscribe.html.haml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'app/views/sent_notifications') 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), -- cgit v1.2.3