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
Boxiang Sun
gitlab-ce
Commits
dc0b81a4
Commit
dc0b81a4
authored
Jan 25, 2019
by
George Tsiolis
Committed by
Filipa Lacerda
Jan 25, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Externalize strings from `/app/views/projects/ci`
parent
965dbbd2
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
110 additions
and
30 deletions
+110
-30
app/views/projects/ci/builds/_build.html.haml
app/views/projects/ci/builds/_build.html.haml
+11
-11
app/views/projects/ci/lints/_create.html.haml
app/views/projects/ci/lints/_create.html.haml
+13
-13
app/views/projects/ci/lints/show.html.haml
app/views/projects/ci/lints/show.html.haml
+6
-6
changelogs/unreleased/gt-externalize-app-views-projects-ci.yml
...elogs/unreleased/gt-externalize-app-views-projects-ci.yml
+5
-0
locale/gitlab.pot
locale/gitlab.pot
+75
-0
No files found.
app/views/projects/ci/builds/_build.html.haml
View file @
dc0b81a4
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
=
job
.
tag?
?
icon
(
'tag'
)
:
sprite_icon
(
'fork'
,
css_class:
'sprite'
)
=
job
.
tag?
?
icon
(
'tag'
)
:
sprite_icon
(
'fork'
,
css_class:
'sprite'
)
=
link_to
job
.
ref
,
project_ref_path
(
job
.
project
,
job
.
ref
),
class:
"ref-name"
=
link_to
job
.
ref
,
project_ref_path
(
job
.
project
,
job
.
ref
),
class:
"ref-name"
-
else
-
else
.light
none
.light
=
_
(
'none'
)
.icon-container.commit-icon
.icon-container.commit-icon
=
custom_icon
(
"icon_commit"
)
=
custom_icon
(
"icon_commit"
)
...
@@ -33,10 +33,10 @@
...
@@ -33,10 +33,10 @@
=
link_to
job
.
short_sha
,
project_commit_path
(
job
.
project
,
job
.
sha
),
class:
"commit-sha"
=
link_to
job
.
short_sha
,
project_commit_path
(
job
.
project
,
job
.
sha
),
class:
"commit-sha"
-
if
job
.
stuck?
-
if
job
.
stuck?
=
icon
(
'warning'
,
class:
'text-warning has-tooltip'
,
title:
'Job is stuck. Check runners.'
)
=
icon
(
'warning'
,
class:
'text-warning has-tooltip'
,
title:
_
(
'Job is stuck. Check runners.'
)
)
-
if
retried
-
if
retried
=
icon
(
'refresh'
,
class:
'text-warning has-tooltip'
,
title:
'Job was retried'
)
=
icon
(
'refresh'
,
class:
'text-warning has-tooltip'
,
title:
_
(
'Job was retried'
)
)
.label-container
.label-container
-
if
job
.
tags
.
any?
-
if
job
.
tags
.
any?
...
@@ -44,13 +44,13 @@
...
@@ -44,13 +44,13 @@
%span
.badge.badge-primary
%span
.badge.badge-primary
=
tag
=
tag
-
if
job
.
try
(
:trigger_request
)
-
if
job
.
try
(
:trigger_request
)
%span
.badge.badge-info
triggered
%span
.badge.badge-info
=
_
(
'triggered'
)
-
if
job
.
try
(
:allow_failure
)
-
if
job
.
try
(
:allow_failure
)
%span
.badge.badge-danger
allowed to fail
%span
.badge.badge-danger
=
_
(
'allowed to fail'
)
-
if
job
.
schedulable?
-
if
job
.
schedulable?
%span
.badge.badge-info
=
s_
(
'DelayedJobs|delayed'
)
%span
.badge.badge-info
=
s_
(
'DelayedJobs|delayed'
)
-
elsif
job
.
action?
-
elsif
job
.
action?
%span
.badge.badge-info
manual
%span
.badge.badge-info
=
_
(
'manual'
)
-
if
pipeline_link
-
if
pipeline_link
%td
%td
...
@@ -70,7 +70,7 @@
...
@@ -70,7 +70,7 @@
-
if
job
.
try
(
:runner
)
-
if
job
.
try
(
:runner
)
=
runner_link
(
job
.
runner
)
=
runner_link
(
job
.
runner
)
-
else
-
else
.light
none
.light
=
_
(
'none'
)
-
if
stage
-
if
stage
%td
%td
...
@@ -97,11 +97,11 @@
...
@@ -97,11 +97,11 @@
%td
%td
.float-right
.float-right
-
if
can?
(
current_user
,
:read_build
,
job
)
&&
job
.
artifacts?
-
if
can?
(
current_user
,
:read_build
,
job
)
&&
job
.
artifacts?
=
link_to
download_project_job_artifacts_path
(
job
.
project
,
job
),
rel:
'nofollow'
,
download:
''
,
title:
'Download artifacts'
,
class:
'btn btn-build'
do
=
link_to
download_project_job_artifacts_path
(
job
.
project
,
job
),
rel:
'nofollow'
,
download:
''
,
title:
_
(
'Download artifacts'
)
,
class:
'btn btn-build'
do
=
sprite_icon
(
'download'
)
=
sprite_icon
(
'download'
)
-
if
can?
(
current_user
,
:update_build
,
job
)
-
if
can?
(
current_user
,
:update_build
,
job
)
-
if
job
.
active?
-
if
job
.
active?
=
link_to
cancel_project_job_path
(
job
.
project
,
job
,
continue:
{
to:
request
.
fullpath
}),
method: :post
,
title:
'Cancel'
,
class:
'btn btn-build'
do
=
link_to
cancel_project_job_path
(
job
.
project
,
job
,
continue:
{
to:
request
.
fullpath
}),
method: :post
,
title:
_
(
'Cancel'
)
,
class:
'btn btn-build'
do
=
icon
(
'remove'
,
class:
'cred'
)
=
icon
(
'remove'
,
class:
'cred'
)
-
elsif
job
.
scheduled?
-
elsif
job
.
scheduled?
.btn-group
.btn-group
...
@@ -123,8 +123,8 @@
...
@@ -123,8 +123,8 @@
=
sprite_icon
(
'time-out'
)
=
sprite_icon
(
'time-out'
)
-
elsif
allow_retry
-
elsif
allow_retry
-
if
job
.
playable?
&&
!
admin
&&
can?
(
current_user
,
:update_build
,
job
)
-
if
job
.
playable?
&&
!
admin
&&
can?
(
current_user
,
:update_build
,
job
)
=
link_to
play_project_job_path
(
job
.
project
,
job
,
return_to:
request
.
original_url
),
method: :post
,
title:
'Play'
,
class:
'btn btn-build'
do
=
link_to
play_project_job_path
(
job
.
project
,
job
,
return_to:
request
.
original_url
),
method: :post
,
title:
_
(
'Play'
)
,
class:
'btn btn-build'
do
=
custom_icon
(
'icon_play'
)
=
custom_icon
(
'icon_play'
)
-
elsif
job
.
retryable?
-
elsif
job
.
retryable?
=
link_to
retry_project_job_path
(
job
.
project
,
job
,
return_to:
request
.
original_url
),
method: :post
,
title:
'Retry'
,
class:
'btn btn-build'
do
=
link_to
retry_project_job_path
(
job
.
project
,
job
,
return_to:
request
.
original_url
),
method: :post
,
title:
_
(
'Retry'
)
,
class:
'btn btn-build'
do
=
icon
(
'repeat'
)
=
icon
(
'repeat'
)
app/views/projects/ci/lints/_create.html.haml
View file @
dc0b81a4
-
if
@status
-
if
@status
%p
%p
%b
Status:
%b
=
_
(
"Status:"
)
syntax is correct
=
_
(
"syntax is correct"
)
%i
.fa.fa-ok.correct-syntax
%i
.fa.fa-ok.correct-syntax
.table-holder
.table-holder
%table
.table.table-bordered
%table
.table.table-bordered
%thead
%thead
%tr
%tr
%th
Parameter
%th
=
_
(
"Parameter"
)
%th
Value
%th
=
_
(
"Value"
)
%tbody
%tbody
-
@stages
.
each
do
|
stage
|
-
@stages
.
each
do
|
stage
|
-
@builds
.
select
{
|
build
|
build
[
:stage
]
==
stage
}.
each
do
|
build
|
-
@builds
.
select
{
|
build
|
build
[
:stage
]
==
stage
}.
each
do
|
build
|
...
@@ -22,27 +22,27 @@
...
@@ -22,27 +22,27 @@
%pre
=
job
[
:after_script
].
to_a
.
join
(
'\n'
)
%pre
=
job
[
:after_script
].
to_a
.
join
(
'\n'
)
%br
%br
%b
Tag list:
%b
=
_
(
"Tag list:"
)
=
build
[
:tag_list
].
to_a
.
join
(
", "
)
=
build
[
:tag_list
].
to_a
.
join
(
", "
)
%br
%br
%b
Only policy:
%b
=
_
(
"Only policy:"
)
=
job
[
:only
].
to_a
.
join
(
", "
)
=
job
[
:only
].
to_a
.
join
(
", "
)
%br
%br
%b
Except policy:
%b
=
_
(
"Except policy:"
)
=
job
[
:except
].
to_a
.
join
(
", "
)
=
job
[
:except
].
to_a
.
join
(
", "
)
%br
%br
%b
Environment:
%b
=
_
(
"Environment:"
)
=
build
[
:environment
]
=
build
[
:environment
]
%br
%br
%b
When:
%b
=
_
(
"When:"
)
=
build
[
:when
]
=
build
[
:when
]
-
if
build
[
:allow_failure
]
-
if
build
[
:allow_failure
]
%b
Allowed to fail
%b
=
_
(
"Allowed to fail"
)
-
else
-
else
%p
%p
%b
Status:
%b
=
_
(
"Status:"
)
syntax is incorrect
=
_
(
"syntax is incorrect"
)
%i
.fa.fa-remove.incorrect-syntax
%i
.fa.fa-remove.incorrect-syntax
%b
Error:
%b
=
_
(
"Error:"
)
=
@error
=
@error
app/views/projects/ci/lints/show.html.haml
View file @
dc0b81a4
-
page_title
"CI Lint"
-
page_title
_
(
"CI Lint"
)
-
page_description
"Validate your GitLab CI configuration file"
-
page_description
_
(
"Validate your GitLab CI configuration file"
)
-
content_for
:library_javascripts
do
-
content_for
:library_javascripts
do
=
page_specific_javascript_tag
(
'lib/ace.js'
)
=
page_specific_javascript_tag
(
'lib/ace.js'
)
%h2
.pt-3.pb-3
Check your .gitlab-ci.yml
%h2
.pt-3.pb-3
=
_
(
"Check your .gitlab-ci.yml"
)
.project-ci-linter
.project-ci-linter
=
form_tag
project_ci_lint_path
(
@project
),
method: :post
do
=
form_tag
project_ci_lint_path
(
@project
),
method: :post
do
...
@@ -11,14 +11,14 @@
...
@@ -11,14 +11,14 @@
.col-sm-12
.col-sm-12
.file-holder
.file-holder
.js-file-title.file-title.clearfix
.js-file-title.file-title.clearfix
Content of .gitlab-ci.yml
=
_
(
"Contents of .gitlab-ci.yml"
)
#ci-editor
.ci-editor
=
@content
#ci-editor
.ci-editor
=
@content
=
text_area_tag
(
:content
,
@content
,
class:
'hidden form-control span1'
,
rows:
7
,
require:
true
)
=
text_area_tag
(
:content
,
@content
,
class:
'hidden form-control span1'
,
rows:
7
,
require:
true
)
.col-sm-12
.col-sm-12
.float-left.prepend-top-10
.float-left.prepend-top-10
=
submit_tag
(
'Validate'
,
class:
'btn btn-success submit-yml'
)
=
submit_tag
(
_
(
'Validate'
)
,
class:
'btn btn-success submit-yml'
)
.float-right.prepend-top-10
.float-right.prepend-top-10
=
button_tag
(
'Clear'
,
type:
'button'
,
class:
'btn btn-default clear-yml'
)
=
button_tag
(
_
(
'Clear'
)
,
type:
'button'
,
class:
'btn btn-default clear-yml'
)
.row.prepend-top-20
.row.prepend-top-20
.col-sm-12
.col-sm-12
...
...
changelogs/unreleased/gt-externalize-app-views-projects-ci.yml
0 → 100644
View file @
dc0b81a4
---
title
:
Externalize strings from `/app/views/projects/ci`
merge_request
:
24617
author
:
George Tsiolis
type
:
other
locale/gitlab.pot
View file @
dc0b81a4
...
@@ -528,6 +528,9 @@ msgstr ""
...
@@ -528,6 +528,9 @@ msgstr ""
msgid "Allow users to request access if visibility is public or internal."
msgid "Allow users to request access if visibility is public or internal."
msgstr ""
msgstr ""
msgid "Allowed to fail"
msgstr ""
msgid "Allows you to add and manage Kubernetes clusters."
msgid "Allows you to add and manage Kubernetes clusters."
msgstr ""
msgstr ""
...
@@ -1179,6 +1182,9 @@ msgstr ""
...
@@ -1179,6 +1182,9 @@ msgstr ""
msgid "CI / CD Settings"
msgid "CI / CD Settings"
msgstr ""
msgstr ""
msgid "CI Lint"
msgstr ""
msgid "CI/CD"
msgid "CI/CD"
msgstr ""
msgstr ""
...
@@ -1287,6 +1293,9 @@ msgstr ""
...
@@ -1287,6 +1293,9 @@ msgstr ""
msgid "Check the %{docs_link_start}documentation%{docs_link_end}."
msgid "Check the %{docs_link_start}documentation%{docs_link_end}."
msgstr ""
msgstr ""
msgid "Check your .gitlab-ci.yml"
msgstr ""
msgid "Checking %{text} availability…"
msgid "Checking %{text} availability…"
msgstr ""
msgstr ""
...
@@ -1428,6 +1437,9 @@ msgstr ""
...
@@ -1428,6 +1437,9 @@ msgstr ""
msgid "CiVariable|Validation failed"
msgid "CiVariable|Validation failed"
msgstr ""
msgstr ""
msgid "Clear"
msgstr ""
msgid "Clear search"
msgid "Clear search"
msgstr ""
msgstr ""
...
@@ -2120,6 +2132,9 @@ msgstr ""
...
@@ -2120,6 +2132,9 @@ msgstr ""
msgid "ContainerRegistry|You can also use a %{deploy_token} for read-only access to the registry images."
msgid "ContainerRegistry|You can also use a %{deploy_token} for read-only access to the registry images."
msgstr ""
msgstr ""
msgid "Contents of .gitlab-ci.yml"
msgstr ""
msgid "Continue"
msgid "Continue"
msgstr ""
msgstr ""
...
@@ -2677,6 +2692,9 @@ msgstr ""
...
@@ -2677,6 +2692,9 @@ msgstr ""
msgid "Download"
msgid "Download"
msgstr ""
msgstr ""
msgid "Download artifacts"
msgstr ""
msgid "Download asset"
msgid "Download asset"
msgstr ""
msgstr ""
...
@@ -2839,6 +2857,9 @@ msgstr ""
...
@@ -2839,6 +2857,9 @@ msgstr ""
msgid "Environment variables are configured by your administrator to be %{link_start}protected%{link_end} by default"
msgid "Environment variables are configured by your administrator to be %{link_start}protected%{link_end} by default"
msgstr ""
msgstr ""
msgid "Environment:"
msgstr ""
msgid "Environments"
msgid "Environments"
msgstr ""
msgstr ""
...
@@ -2992,6 +3013,9 @@ msgstr ""
...
@@ -2992,6 +3013,9 @@ msgstr ""
msgid "Error while loading the merge request. Please try again."
msgid "Error while loading the merge request. Please try again."
msgstr ""
msgstr ""
msgid "Error:"
msgstr ""
msgid "Errors"
msgid "Errors"
msgstr ""
msgstr ""
...
@@ -3037,6 +3061,9 @@ msgstr ""
...
@@ -3037,6 +3061,9 @@ msgstr ""
msgid "Everyone can contribute"
msgid "Everyone can contribute"
msgstr ""
msgstr ""
msgid "Except policy:"
msgstr ""
msgid "Existing Git repository"
msgid "Existing Git repository"
msgstr ""
msgstr ""
...
@@ -3888,6 +3915,12 @@ msgstr ""
...
@@ -3888,6 +3915,12 @@ msgstr ""
msgid "Job has been erased"
msgid "Job has been erased"
msgstr ""
msgstr ""
msgid "Job is stuck. Check runners."
msgstr ""
msgid "Job was retried"
msgstr ""
msgid "Jobs"
msgid "Jobs"
msgstr ""
msgstr ""
...
@@ -4820,6 +4853,9 @@ msgstr ""
...
@@ -4820,6 +4853,9 @@ msgstr ""
msgid "Only mirror protected branches"
msgid "Only mirror protected branches"
msgstr ""
msgstr ""
msgid "Only policy:"
msgstr ""
msgid "Only project members can comment."
msgid "Only project members can comment."
msgstr ""
msgstr ""
...
@@ -4907,6 +4943,9 @@ msgstr ""
...
@@ -4907,6 +4943,9 @@ msgstr ""
msgid "Pagination|« First"
msgid "Pagination|« First"
msgstr ""
msgstr ""
msgid "Parameter"
msgstr ""
msgid "Part of merge request changes"
msgid "Part of merge request changes"
msgstr ""
msgstr ""
...
@@ -6665,6 +6704,9 @@ msgstr ""
...
@@ -6665,6 +6704,9 @@ msgstr ""
msgid "Status"
msgid "Status"
msgstr ""
msgstr ""
msgid "Status:"
msgstr ""
msgid "Stop environment"
msgid "Stop environment"
msgstr ""
msgstr ""
...
@@ -6740,6 +6782,9 @@ msgstr ""
...
@@ -6740,6 +6782,9 @@ msgstr ""
msgid "Tag"
msgid "Tag"
msgstr ""
msgstr ""
msgid "Tag list:"
msgstr ""
msgid "Tags"
msgid "Tags"
msgstr ""
msgstr ""
...
@@ -7698,6 +7743,15 @@ msgstr ""
...
@@ -7698,6 +7743,15 @@ msgstr ""
msgid "Users requesting access to"
msgid "Users requesting access to"
msgstr ""
msgstr ""
msgid "Validate"
msgstr ""
msgid "Validate your GitLab CI configuration file"
msgstr ""
msgid "Value"
msgstr ""
msgid "Various container registry settings."
msgid "Various container registry settings."
msgstr ""
msgstr ""
...
@@ -7812,6 +7866,9 @@ msgstr ""
...
@@ -7812,6 +7866,9 @@ msgstr ""
msgid "When enabled, users cannot use GitLab until the terms have been accepted."
msgid "When enabled, users cannot use GitLab until the terms have been accepted."
msgstr ""
msgstr ""
msgid "When:"
msgstr ""
msgid "Who can see this group?"
msgid "Who can see this group?"
msgstr ""
msgstr ""
...
@@ -8178,6 +8235,9 @@ msgstr ""
...
@@ -8178,6 +8235,9 @@ msgstr ""
msgid "ago"
msgid "ago"
msgstr ""
msgstr ""
msgid "allowed to fail"
msgstr ""
msgid "among other things"
msgid "among other things"
msgstr ""
msgstr ""
...
@@ -8296,6 +8356,9 @@ msgstr ""
...
@@ -8296,6 +8356,9 @@ msgstr ""
msgid "latest version"
msgid "latest version"
msgstr ""
msgstr ""
msgid "manual"
msgstr ""
msgid "merge request"
msgid "merge request"
msgid_plural "merge requests"
msgid_plural "merge requests"
msgstr[0] ""
msgstr[0] ""
...
@@ -8502,6 +8565,9 @@ msgstr ""
...
@@ -8502,6 +8565,9 @@ msgstr ""
msgid "new merge request"
msgid "new merge request"
msgstr ""
msgstr ""
msgid "none"
msgstr ""
msgid "notification emails"
msgid "notification emails"
msgstr ""
msgstr ""
...
@@ -8574,9 +8640,18 @@ msgstr ""
...
@@ -8574,9 +8640,18 @@ msgstr ""
msgid "stuck"
msgid "stuck"
msgstr ""
msgstr ""
msgid "syntax is correct"
msgstr ""
msgid "syntax is incorrect"
msgstr ""
msgid "this document"
msgid "this document"
msgstr ""
msgstr ""
msgid "triggered"
msgstr ""
msgid "updated"
msgid "updated"
msgstr ""
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