2016-09-16 11:08:09 -04:00
|
|
|
- noteable = @sent_notification.noteable
|
2017-05-29 16:18:09 -04:00
|
|
|
- noteable_type = @sent_notification.noteable_type.titleize.downcase
|
2016-09-20 03:52:06 -04:00
|
|
|
- noteable_text = %(#{noteable.title} (#{noteable.to_reference}))
|
2017-05-29 16:18:09 -04:00
|
|
|
- page_title "Unsubscribe", noteable_text, noteable_type.pluralize, @sent_notification.project.name_with_namespace
|
2016-09-16 11:08:09 -04:00
|
|
|
|
2016-09-20 03:52:06 -04:00
|
|
|
%h3.page-title
|
2017-05-29 16:18:09 -04:00
|
|
|
Unsubscribe from #{noteable_type}
|
2016-09-20 03:52:06 -04:00
|
|
|
|
|
|
|
%p
|
|
|
|
= succeed '?' do
|
2017-05-29 16:18:09 -04:00
|
|
|
Are you sure you want to unsubscribe from the #{noteable_type}:
|
2016-09-20 03:52:06 -04:00
|
|
|
= link_to noteable_text, url_for([@sent_notification.project.namespace.becomes(Namespace), @sent_notification.project, noteable])
|
2016-09-16 11:08:09 -04:00
|
|
|
|
|
|
|
%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'
|