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
c9806b47
Commit
c9806b47
authored
Apr 04, 2017
by
Rydkin Maxim
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
extract build.pipeline as variable
parent
25756618
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
app/views/projects/ci/builds/_build.html.haml
app/views/projects/ci/builds/_build.html.haml
+6
-5
No files found.
app/views/projects/ci/builds/_build.html.haml
View file @
c9806b47
...
@@ -6,10 +6,11 @@
...
@@ -6,10 +6,11 @@
-
stage
=
local_assigns
.
fetch
(
:stage
,
false
)
-
stage
=
local_assigns
.
fetch
(
:stage
,
false
)
-
coverage
=
local_assigns
.
fetch
(
:coverage
,
false
)
-
coverage
=
local_assigns
.
fetch
(
:coverage
,
false
)
-
allow_retry
=
local_assigns
.
fetch
(
:allow_retry
,
false
)
-
allow_retry
=
local_assigns
.
fetch
(
:allow_retry
,
false
)
-
pipeline
=
build
.
pipeline
.
present
(
current_user:
current_user
)
%tr
.build.commit
{
class:
(
'retried'
if
retried
)
}
%tr
.build.commit
{
class:
(
'retried'
if
retried
)
}
%td
.status
%td
.status
=
render
"ci/status/badge"
,
status:
build
.
detailed_status
(
current_user
),
title:
status_title
(
build
.
pipeline
)
=
render
"ci/status/badge"
,
status:
build
.
detailed_status
(
current_user
),
title:
pipeline
.
status_title
%td
.branch-commit
%td
.branch-commit
-
if
can?
(
current_user
,
:read_build
,
build
)
-
if
can?
(
current_user
,
:read_build
,
build
)
...
@@ -51,11 +52,11 @@
...
@@ -51,11 +52,11 @@
-
if
pipeline_link
-
if
pipeline_link
%td
%td
=
link_to
pipeline_path
(
build
.
pipeline
)
do
=
link_to
pipeline_path
(
pipeline
)
do
%span
.pipeline-id
##{
build.
pipeline.id}
%span
.pipeline-id
##{pipeline.id}
%span
by
%span
by
-
if
build
.
pipeline
.
user
-
if
pipeline
.
user
=
user_avatar
(
user:
build
.
pipeline
.
user
,
size:
20
)
=
user_avatar
(
user:
pipeline
.
user
,
size:
20
)
-
else
-
else
%span
.monospace
API
%span
.monospace
API
...
...
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