2016-09-16 15:08:09 +00:00
|
|
|
- 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}"
|
2016-07-13 23:56:54 +00:00
|
|
|
|
2016-09-16 15:08:09 +00:00
|
|
|
- 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'
|