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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
dfd91082
Commit
dfd91082
authored
Nov 19, 2018
by
George Tsiolis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Externalize strings from `/app/views/projects/environments`
parent
af1ed0e2
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
70 additions
and
34 deletions
+70
-34
app/views/projects/environments/_external_url.html.haml
app/views/projects/environments/_external_url.html.haml
+1
-1
app/views/projects/environments/_form.html.haml
app/views/projects/environments/_form.html.haml
+7
-8
app/views/projects/environments/_metrics_button.html.haml
app/views/projects/environments/_metrics_button.html.haml
+2
-2
app/views/projects/environments/edit.html.haml
app/views/projects/environments/edit.html.haml
+2
-2
app/views/projects/environments/folder.html.haml
app/views/projects/environments/folder.html.haml
+1
-1
app/views/projects/environments/index.html.haml
app/views/projects/environments/index.html.haml
+2
-2
app/views/projects/environments/metrics.html.haml
app/views/projects/environments/metrics.html.haml
+1
-1
app/views/projects/environments/new.html.haml
app/views/projects/environments/new.html.haml
+3
-3
app/views/projects/environments/show.html.haml
app/views/projects/environments/show.html.haml
+10
-12
app/views/projects/environments/terminal.html.haml
app/views/projects/environments/terminal.html.haml
+2
-2
locale/gitlab.pot
locale/gitlab.pot
+39
-0
No files found.
app/views/projects/environments/_external_url.html.haml
View file @
dfd91082
-
if
environment
.
external_url
&&
can?
(
current_user
,
:read_environment
,
environment
)
=
link_to
environment
.
external_url
,
target:
'_blank'
,
rel:
'noopener noreferrer'
,
class:
'btn external-url has-tooltip qa-view-deployment'
,
title:
s_
(
'Environments|Open live environment'
)
do
=
sprite_icon
(
'external-link'
)
View deployment
=
_
(
"View deployment"
)
app/views/projects/environments/_form.html.haml
View file @
dfd91082
.row.prepend-top-default.append-bottom-default
.col-lg-3
%h4
.prepend-top-0
Environments
=
_
(
"Environments"
)
%p
Environments allow you to track deployments of your application
=
succeed
"."
do
=
link_to
"Read more about environments"
,
help_page_path
(
"ci/environments"
)
-
link_to_read_more
=
link_to
(
_
(
"Read more about environments"
),
help_page_path
(
"ci/environments"
))
=
_
(
"Environments allow you to track deployments of your application %{link_to_read_more}."
).
html_safe
%
{
link_to_read_more:
link_to_read_more
}
=
form_for
[
@project
.
namespace
.
becomes
(
Namespace
),
@project
,
@environment
],
html:
{
class:
'col-lg-9'
}
do
|
f
|
=
form_errors
(
@environment
)
.form-group
=
f
.
label
:name
,
'Name'
,
class:
'label-bold'
=
f
.
label
:name
,
_
(
'Name'
)
,
class:
'label-bold'
=
f
.
text_field
:name
,
required:
true
,
class:
'form-control'
.form-group
=
f
.
label
:external_url
,
'External URL'
,
class:
'label-bold'
=
f
.
label
:external_url
,
_
(
'External URL'
)
,
class:
'label-bold'
=
f
.
url_field
:external_url
,
class:
'form-control'
.form-actions
=
f
.
submit
'Save'
,
class:
'btn btn-success
'
=
link_to
'Cancel'
,
project_environments_path
(
@project
),
class:
'btn btn-cancel'
=
f
.
submit
_
(
'Save'
),
class:
'btn btn-save
'
=
link_to
_
(
'Cancel'
)
,
project_environments_path
(
@project
),
class:
'btn btn-cancel'
app/views/projects/environments/_metrics_button.html.haml
View file @
dfd91082
...
...
@@ -2,6 +2,6 @@
-
return
unless
can?
(
current_user
,
:read_environment
,
environment
)
=
link_to
environment_metrics_path
(
environment
),
title:
'See metrics'
,
class:
'btn metrics-button'
do
=
link_to
environment_metrics_path
(
environment
),
title:
_
(
'See metrics'
)
,
class:
'btn metrics-button'
do
=
sprite_icon
(
'chart'
)
Monitoring
=
_
(
"Monitoring"
)
app/views/projects/environments/edit.html.haml
View file @
dfd91082
-
@no_container
=
true
-
page_title
"Edit"
,
@environment
.
name
,
"Environments"
-
page_title
_
(
"Edit"
),
@environment
.
name
,
_
(
"Environments"
)
%div
{
class:
container_class
}
%h3
.page-title
Edit environment
=
_
(
'Edit environment'
)
%hr
=
render
'form'
app/views/projects/environments/folder.html.haml
View file @
dfd91082
-
@no_container
=
true
-
page_title
"Environments"
-
page_title
_
(
"Environments"
)
#environments-folder-list-view
{
data:
{
endpoint:
folder_project_environments_path
(
@project
,
@folder
,
format: :json
),
"folder-name"
=>
@folder
,
...
...
app/views/projects/environments/index.html.haml
View file @
dfd91082
-
@no_container
=
true
-
page_title
"Environments"
-
add_to_breadcrumbs
(
"Pipelines"
,
project_pipelines_path
(
@project
))
-
page_title
_
(
"Environments"
)
-
add_to_breadcrumbs
(
_
(
"Pipelines"
)
,
project_pipelines_path
(
@project
))
#environments-list-view
{
data:
{
environments_data:
environments_list_data
,
"can-create-deployment"
=>
can?
(
current_user
,
:create_deployment
,
@project
).
to_s
,
...
...
app/views/projects/environments/metrics.html.haml
View file @
dfd91082
-
@no_container
=
true
-
page_title
"Metrics for environment"
,
@environment
.
name
-
page_title
_
(
"Metrics for environment"
)
,
@environment
.
name
.prometheus-container
{
class:
container_class
}
#prometheus-graphs
{
data:
metrics_data
(
@project
,
@environment
)
}
app/views/projects/environments/new.html.haml
View file @
dfd91082
-
@no_container
=
true
-
breadcrumb_title
"Environments"
-
page_title
'New Environment'
-
breadcrumb_title
_
(
"Environments"
)
-
page_title
_
(
"New Environment"
)
%div
{
class:
container_class
}
%h3
.page-title
New environment
=
_
(
"New environment"
)
%hr
=
render
'form'
app/views/projects/environments/show.html.haml
View file @
dfd91082
-
@no_container
=
true
-
add_to_breadcrumbs
"Environments"
,
project_environments_path
(
@project
)
-
add_to_breadcrumbs
_
(
"Environments"
)
,
project_environments_path
(
@project
)
-
breadcrumb_title
@environment
.
name
-
page_title
"Environments"
-
page_title
_
(
"Environments"
)
%div
{
class:
container_class
}
-
if
can?
(
current_user
,
:stop_environment
,
@environment
)
...
...
@@ -10,7 +10,7 @@
.modal-content
.modal-header
%h4
.modal-title.d-flex.mw-100
Stopping
=
s_
(
"Environments|Stopping"
)
%span
.has-tooltip.text-truncate.ml-1.mr-1.flex-fill
{
title:
@environment
.
name
,
data:
{
container:
'#stop-environment-modal'
}
}
=
@environment
.
name
?
...
...
@@ -40,7 +40,7 @@
=
render
'projects/environments/external_url'
,
environment:
@environment
=
render
'projects/environments/metrics_button'
,
environment:
@environment
-
if
can?
(
current_user
,
:update_environment
,
@environment
)
=
link_to
'Edit'
,
edit_project_environment_path
(
@project
,
@environment
),
class:
'btn'
=
link_to
_
(
'Edit'
)
,
edit_project_environment_path
(
@project
,
@environment
),
class:
'btn'
-
if
can?
(
current_user
,
:stop_environment
,
@environment
)
=
button_tag
class:
'btn btn-danger'
,
type:
'button'
,
data:
{
toggle:
'modal'
,
target:
'#stop-environment-modal'
}
do
...
...
@@ -52,21 +52,19 @@
.empty-state
.text-content
%h4
.state-title
You don't have any deployments right now.
=
_
(
"You don't have any deployments right now."
)
%p
.blank-state-text
Define environments in the deploy stage(s) in
%code
.gitlab-ci.yml
to track deployments here.
=
_
(
"Define environments in the deploy stage(s) in <code>.gitlab-ci.yml</code> to track deployments here."
).
html_safe
.text-center
=
link_to
_
(
"Read more"
),
help_page_path
(
"ci/environments"
),
class:
"btn btn-success"
-
else
.table-holder
.ci-table.environments
{
role:
'grid'
}
.gl-responsive-table-row.table-row-header
{
role:
'row'
}
.table-section.section-10
{
role:
'columnheader'
}
ID
.table-section.section-30
{
role:
'columnheader'
}
Commit
.table-section.section-25
{
role:
'columnheader'
}
Job
.table-section.section-15
{
role:
'columnheader'
}
Created
.table-section.section-10
{
role:
'columnheader'
}
=
_
(
'ID'
)
.table-section.section-30
{
role:
'columnheader'
}
=
_
(
'Commit'
)
.table-section.section-25
{
role:
'columnheader'
}
=
_
(
'Job'
)
.table-section.section-15
{
role:
'columnheader'
}
=
_
(
'Created'
)
=
render
@deployments
...
...
app/views/projects/environments/terminal.html.haml
View file @
dfd91082
-
@no_container
=
true
-
page_title
"Terminal for environment"
,
@environment
.
name
-
page_title
_
(
"Terminal for environment"
)
,
@environment
.
name
-
content_for
:page_specific_javascripts
do
=
stylesheet_link_tag
"xterm.css"
...
...
@@ -9,7 +9,7 @@
.row
.col-sm-6
%h3
.page-title
Terminal for environment
=
_
(
"Terminal for environment"
)
=
@environment
.
name
.col-sm-6
...
...
locale/gitlab.pot
View file @
dfd91082
...
...
@@ -2211,6 +2211,9 @@ msgstr ""
msgid "Define a custom pattern with cron syntax"
msgstr ""
msgid "Define environments in the deploy stage(s) in <code>.gitlab-ci.yml</code> to track deployments here."
msgstr ""
msgid "DelayedJobs|Are you sure you want to run %{jobName} immediately? Otherwise this job will run automatically after it's timer finishes."
msgstr ""
...
...
@@ -2510,6 +2513,9 @@ msgstr ""
msgid "Edit application"
msgstr ""
msgid "Edit environment"
msgstr ""
msgid "Edit files in the editor and commit changes here"
msgstr ""
...
...
@@ -2588,6 +2594,9 @@ msgstr ""
msgid "Environments"
msgstr ""
msgid "Environments allow you to track deployments of your application %{link_to_read_more}."
msgstr ""
msgid "Environments|An error occurred while fetching the environments."
msgstr ""
...
...
@@ -2657,6 +2666,9 @@ msgstr ""
msgid "Environments|Stop environment"
msgstr ""
msgid "Environments|Stopping"
msgstr ""
msgid "Environments|Updated"
msgstr ""
...
...
@@ -2792,6 +2804,9 @@ msgstr ""
msgid "Explore public groups"
msgstr ""
msgid "External URL"
msgstr ""
msgid "Facebook"
msgstr ""
...
...
@@ -3881,6 +3896,9 @@ msgstr ""
msgid "Metrics and profiling"
msgstr ""
msgid "Metrics for environment"
msgstr ""
msgid "Metrics|Check out the CI/CD documentation on deploying to an environment"
msgstr ""
...
...
@@ -4025,6 +4043,9 @@ msgstr ""
msgid "New Application"
msgstr ""
msgid "New Environment"
msgstr ""
msgid "New Group"
msgstr ""
...
...
@@ -4057,6 +4078,9 @@ msgstr ""
msgid "New directory"
msgstr ""
msgid "New environment"
msgstr ""
msgid "New file"
msgstr ""
...
...
@@ -5130,6 +5154,9 @@ msgstr ""
msgid "Read more"
msgstr ""
msgid "Read more about environments"
msgstr ""
msgid "Read more about project permissions <strong>%{link_to_help}</strong>"
msgstr ""
...
...
@@ -5503,6 +5530,9 @@ msgstr ""
msgid "Secret"
msgstr ""
msgid "See metrics"
msgstr ""
msgid "Select"
msgstr ""
...
...
@@ -6077,6 +6107,9 @@ msgstr ""
msgid "Templates"
msgstr ""
msgid "Terminal for environment"
msgstr ""
msgid "Terms of Service Agreement and Privacy Policy"
msgstr ""
...
...
@@ -6885,6 +6918,9 @@ msgstr ""
msgid "View app"
msgstr ""
msgid "View deployment"
msgstr ""
msgid "View file @ "
msgstr ""
...
...
@@ -7182,6 +7218,9 @@ msgstr ""
msgid "You don't have any authorized applications"
msgstr ""
msgid "You don't have any deployments right now."
msgstr ""
msgid "You have no permissions"
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