Commit 17e43bfb authored by George Tsiolis's avatar George Tsiolis

Externalize strings from `/app/views/sent_notifications`

parent 52ceda44
- noteable = @sent_notification.noteable - noteable = @sent_notification.noteable
- noteable_type = @sent_notification.noteable_type.titleize.downcase - noteable_type = @sent_notification.noteable_type.titleize.downcase
- noteable_text = %(#{noteable.title} (#{noteable.to_reference})) - noteable_text = %(#{noteable.title} (#{noteable.to_reference}))
- page_title "Unsubscribe", noteable_text, noteable_type.pluralize, @sent_notification.project.full_name - page_title _("Unsubscribe"), noteable_text, noteable_type.pluralize, @sent_notification.project.full_name
%h3.page-title %h3.page-title
Unsubscribe from #{noteable_type} = _("Unsubscribe from %{type}") % { type: noteable_type }
%p %p
= succeed '?' do - 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 #{noteable_type}: = _("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 }
= link_to noteable_text, url_for([@sent_notification.project.namespace.becomes(Namespace), @sent_notification.project, noteable])
%p %p
= link_to 'Unsubscribe', unsubscribe_sent_notification_path(@sent_notification, force: true), = link_to _('Unsubscribe'), unsubscribe_sent_notification_path(@sent_notification, force: true),
class: 'btn btn-primary append-right-10' class: 'btn btn-primary append-right-10'
= link_to 'Cancel', new_user_session_path, class: 'btn append-right-10' = link_to _('Cancel'), new_user_session_path, class: 'btn append-right-10'
---
title: Externalize strings from `/app/views/sent_notifications`
merge_request: 24576
author: George Tsiolis
type: other
...@@ -735,6 +735,9 @@ msgstr "" ...@@ -735,6 +735,9 @@ msgstr ""
msgid "Are you sure you want to stop this environment?" msgid "Are you sure you want to stop this environment?"
msgstr "" msgstr ""
msgid "Are you sure you want to unsubscribe from the %{type}: %{link_to_noteable_text}?"
msgstr ""
msgid "Are you sure?" msgid "Are you sure?"
msgstr "" msgstr ""
...@@ -7557,6 +7560,9 @@ msgstr "" ...@@ -7557,6 +7560,9 @@ msgstr ""
msgid "Unsubscribe at project level" msgid "Unsubscribe at project level"
msgstr "" msgstr ""
msgid "Unsubscribe from %{type}"
msgstr ""
msgid "Unverified" msgid "Unverified"
msgstr "" msgstr ""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment