summaryrefslogtreecommitdiff
path: root/app/views/sent_notifications/unsubscribe.html.haml
blob: ca392e1adfc99a8414ee563e8428af89d29dc9ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
- noteable = @sent_notification.noteable
- noteable_type = @sent_notification.noteable_type.titleize.downcase
- noteable_text = %(#{noteable.title} (#{noteable.to_reference}))
- page_title _("Unsubscribe"), noteable_text, noteable_type.pluralize, @sent_notification.project.full_name

%h3.page-title
  = _("Unsubscribe from %{type}") % { type: noteable_type }

%p
  - 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 }

%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'