diff options
author | Rémy Coutable <remy@rymai.me> | 2016-09-16 17:08:09 +0200 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2016-09-20 09:52:57 +0200 |
commit | c61a54f7fe932b9b76ce930aaccb04f897c4093b (patch) | |
tree | 883db81143794881d08d8c376847afc708dc7e3f /app/views/sent_notifications | |
parent | b335730817e096bb4c68e5e4a4a2a3ec29b25243 (diff) | |
download | gitlab-ce-c61a54f7fe932b9b76ce930aaccb04f897c4093b.tar.gz |
Fix initial implementation to actually render the unsubscribe page
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'app/views/sent_notifications')
-rw-r--r-- | app/views/sent_notifications/unsubscribe.html.haml | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/app/views/sent_notifications/unsubscribe.html.haml b/app/views/sent_notifications/unsubscribe.html.haml index 568d2ac3af1..9baadf8a0c5 100644 --- a/app/views/sent_notifications/unsubscribe.html.haml +++ b/app/views/sent_notifications/unsubscribe.html.haml @@ -1,4 +1,15 @@ -%h3.page-title - Are you sure you want to unsubscribe from this thread? +- 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}" - = link_to "Unsubscribe", unsubscribe_sent_notification_path(@sent_notification, force: true), class: 'btn btn-primary wide' +- page_title title + +%h3.page-title= title + +%p= "Are you sure you want to unsubscribe from #{noteable_text}?" + +%p + = link_to 'Unsubscribe', unsubscribe_sent_notification_path(@sent_notification, force: true), + class: 'btn btn-primary append-right-10' + = link_to 'Cancel', new_user_session_path, class: 'btn append-right-10' |