2016-09-16 15:08:09 +00:00
- noteable = @sent_notification.noteable
2017-05-29 20:18:09 +00:00
- noteable_type = @sent_notification.noteable_type.titleize.downcase
2019-05-09 13:09:04 +00:00
- noteable_text = show_unsubscribe_title?(noteable) ? %(#{noteable.title} (#{noteable.to_reference})) : %(#{noteable.to_reference})
2019-01-22 16:46:25 +00:00
- page_title _("Unsubscribe"), noteable_text, noteable_type.pluralize, @sent_notification.project.full_name
2016-09-16 15:08:09 +00:00
2016-09-20 07:52:06 +00:00
%h3.page-title
2019-01-22 16:46:25 +00:00
= _("Unsubscribe from %{type}") % { type: noteable_type }
2016-09-20 07:52:06 +00:00
%p
2019-01-22 16:46:25 +00:00
- link_to_noteable_text = link_to(noteable_text, url_for([@sent_notification.project.namespace.becomes(Namespace), @sent_notification.project, noteable]))
= _("Are you sure you want to unsubscribe from the %{type}: %{link_to_noteable_text}?").html_safe % { type: noteable_type, link_to_noteable_text: link_to_noteable_text }
2016-09-16 15:08:09 +00:00
%p
2019-01-22 16:46:25 +00:00
= link_to _('Unsubscribe'), unsubscribe_sent_notification_path(@sent_notification, force: true),
2016-09-16 15:08:09 +00:00
class: 'btn btn-primary append-right-10'
2019-01-22 16:46:25 +00:00
= link_to _('Cancel'), new_user_session_path, class: 'btn append-right-10'