debian-mirror-gitlab/app/views/sent_notifications/unsubscribe.html.haml

18 lines
785 B
Text
Raw Normal View History

2016-09-29 09:46:39 +05:30
- noteable = @sent_notification.noteable
2017-09-10 17:25:29 +05:30
- noteable_type = @sent_notification.noteable_type.titleize.downcase
2016-09-29 09:46:39 +05:30
- noteable_text = %(#{noteable.title} (#{noteable.to_reference}))
2018-03-27 19:54:05 +05:30
- page_title "Unsubscribe", noteable_text, noteable_type.pluralize, @sent_notification.project.full_name
2016-09-29 09:46:39 +05:30
%h3.page-title
2017-09-10 17:25:29 +05:30
Unsubscribe from #{noteable_type}
2016-09-29 09:46:39 +05:30
%p
= succeed '?' do
2017-09-10 17:25:29 +05:30
Are you sure you want to unsubscribe from the #{noteable_type}:
2016-09-29 09:46:39 +05:30
= 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),
class: 'btn btn-primary append-right-10'
= link_to 'Cancel', new_user_session_path, class: 'btn append-right-10'