Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
17e43bfb
Commit
17e43bfb
authored
Jan 22, 2019
by
George Tsiolis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Externalize strings from `/app/views/sent_notifications`
parent
52ceda44
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
7 deletions
+17
-7
app/views/sent_notifications/unsubscribe.html.haml
app/views/sent_notifications/unsubscribe.html.haml
+6
-7
changelogs/unreleased/gt-externalize-app-views-sent_notifications.yml
...nreleased/gt-externalize-app-views-sent_notifications.yml
+5
-0
locale/gitlab.pot
locale/gitlab.pot
+6
-0
No files found.
app/views/sent_notifications/unsubscribe.html.haml
View file @
17e43bfb
-
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
-
page_title
_
(
"Unsubscribe"
)
,
noteable_text
,
noteable_type
.
pluralize
,
@sent_notification
.
project
.
full_name
%h3
.page-title
Unsubscribe from
#{
noteable_type
}
=
_
(
"Unsubscribe from %{type}"
)
%
{
type:
noteable_type
}
%p
=
succeed
'?'
do
Are you sure you want to unsubscribe from the
#{
noteable_type
}
:
=
link_to
noteable_text
,
url_for
([
@sent_notification
.
project
.
namespace
.
becomes
(
Namespace
),
@sent_notification
.
project
,
noteable
])
-
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
),
=
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'
=
link_to
_
(
'Cancel'
)
,
new_user_session_path
,
class:
'btn append-right-10'
changelogs/unreleased/gt-externalize-app-views-sent_notifications.yml
0 → 100644
View file @
17e43bfb
---
title
:
Externalize strings from `/app/views/sent_notifications`
merge_request
:
24576
author
:
George Tsiolis
type
:
other
locale/gitlab.pot
View file @
17e43bfb
...
...
@@ -735,6 +735,9 @@ msgstr ""
msgid "Are you sure you want to stop this environment?"
msgstr ""
msgid "Are you sure you want to unsubscribe from the %{type}: %{link_to_noteable_text}?"
msgstr ""
msgid "Are you sure?"
msgstr ""
...
...
@@ -7557,6 +7560,9 @@ msgstr ""
msgid "Unsubscribe at project level"
msgstr ""
msgid "Unsubscribe from %{type}"
msgstr ""
msgid "Unverified"
msgstr ""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment