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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
1.2 KiB
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
2019-06-05 12:25:43 +05:30
- noteable_text = show_unsubscribe_title?(noteable) ? %(#{noteable.title} (#{noteable.to_reference})) : %(#{noteable.to_reference})
2020-01-03 18:37:03 +05:30
- show_project_path = can_read_project?(@sent_notification.project)
- project_path = show_project_path ? @sent_notification.project.full_name : _("GitLab / Unsubscribe")
2020-10-24 23:57:45 +05:30
- noteable_url = show_project_path ? url_for([@sent_notification.project, noteable]) : breadcrumb_title_link
2020-01-03 18:37:03 +05:30
- page_title _('Unsubscribe'), noteable_text, noteable_type.pluralize, project_path
2016-09-29 09:46:39 +05:30
2022-07-23 23:45:48 +05:30
%h1.page-title.gl-font-size-h-display
2019-03-02 22:35:43 +05:30
= _("Unsubscribe from %{type}") % { type: noteable_type }
2016-09-29 09:46:39 +05:30
%p
2020-01-03 18:37:03 +05:30
- link_to_noteable_text = link_to(noteable_text, noteable_url)
2019-03-02 22:35:43 +05:30
= _("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-29 09:46:39 +05:30
%p
2019-03-02 22:35:43 +05:30
= link_to _('Unsubscribe'), unsubscribe_sent_notification_path(@sent_notification, force: true),
2021-03-11 19:13:27 +05:30
class: 'gl-button btn btn-confirm gl-mr-3'
2021-01-29 00:20:46 +05:30
= link_to _('Cancel'), new_user_session_path, class: 'gl-button btn gl-mr-3'