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
ba404d55
Commit
ba404d55
authored
Jun 14, 2018
by
Tao Wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
i18n: externalize strings from 'app/views/projects/deployments'
Signed-off-by:
Tao Wang
<
twang2218@gmail.com
>
parent
69966fcb
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
app/views/projects/deployments/_commit.html.haml
app/views/projects/deployments/_commit.html.haml
+1
-1
app/views/projects/deployments/_deployment.html.haml
app/views/projects/deployments/_deployment.html.haml
+4
-4
app/views/projects/deployments/_rollback.haml
app/views/projects/deployments/_rollback.haml
+2
-2
No files found.
app/views/projects/deployments/_commit.html.haml
View file @
ba404d55
...
...
@@ -14,4 +14,4 @@
=
author_avatar
(
deployment
.
commit
,
size:
20
)
=
link_to_markdown
commit_title
,
project_commit_path
(
@project
,
deployment
.
sha
),
class:
"commit-row-message"
-
else
Cant find HEAD commit for this branch
=
_
(
"Can't find HEAD commit for this branch"
)
app/views/projects/deployments/_deployment.html.haml
View file @
ba404d55
.gl-responsive-table-row.deployment
{
role:
'row'
}
.table-section.section-10
{
role:
'gridcell'
}
.table-mobile-header
{
role:
'rowheader'
}
ID
.table-mobile-header
{
role:
'rowheader'
}
=
_
(
"ID"
)
%strong
.table-mobile-content
##{deployment.iid}
.table-section.section-30
{
role:
'gridcell'
}
.table-mobile-header
{
role:
'rowheader'
}
Commit
.table-mobile-header
{
role:
'rowheader'
}
=
_
(
"Commit"
)
=
render
'projects/deployments/commit'
,
deployment:
deployment
.table-section.section-25.build-column
{
role:
'gridcell'
}
.table-mobile-header
{
role:
'rowheader'
}
Job
.table-mobile-header
{
role:
'rowheader'
}
=
_
(
"Job"
)
-
if
deployment
.
deployable
.table-mobile-content
.flex-truncate-parent
...
...
@@ -21,7 +21,7 @@
=
user_avatar
(
user:
deployment
.
user
,
size:
20
)
.table-section.section-15
{
role:
'gridcell'
}
.table-mobile-header
{
role:
'rowheader'
}
Created
.table-mobile-header
{
role:
'rowheader'
}
=
_
(
"Created"
)
%span
.table-mobile-content
=
time_ago_with_tooltip
(
deployment
.
created_at
)
.table-section.section-20.table-button-footer
{
role:
'gridcell'
}
...
...
app/views/projects/deployments/_rollback.haml
View file @
ba404d55
-
if
can?
(
current_user
,
:create_deployment
,
deployment
)
&&
deployment
.
deployable
=
link_to
[
:retry
,
@project
.
namespace
.
becomes
(
Namespace
),
@project
,
deployment
.
deployable
],
method: :post
,
class:
'btn btn-build'
do
-
if
deployment
.
last?
Re-deploy
=
_
(
"Re-deploy"
)
-
else
Rollback
=
_
(
"Rollback"
)
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