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
4fa69410
Commit
4fa69410
authored
Sep 01, 2016
by
Katarzyna Kobierska
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve code
parent
0c14eaa6
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
10 deletions
+11
-10
app/views/admin/builds/_build.html.haml
app/views/admin/builds/_build.html.haml
+2
-2
app/views/admin/builds/index.html.haml
app/views/admin/builds/index.html.haml
+1
-1
app/views/projects/builds/_table.html.haml
app/views/projects/builds/_table.html.haml
+4
-4
app/views/projects/builds/index.html.haml
app/views/projects/builds/index.html.haml
+1
-1
app/views/projects/ci/builds/_build.html.haml
app/views/projects/ci/builds/_build.html.haml
+3
-2
No files found.
app/views/admin/builds/_build.html.haml
View file @
4fa69410
...
@@ -45,10 +45,10 @@
...
@@ -45,10 +45,10 @@
.light
none
.light
none
%td
%td
#{
build
.
stage
}
=
build
.
stage
%td
%td
#{
build
.
name
}
=
build
.
name
%td
%td
-
if
build
.
duration
-
if
build
.
duration
...
...
app/views/admin/builds/index.html.haml
View file @
4fa69410
...
@@ -15,4 +15,4 @@
...
@@ -15,4 +15,4 @@
#{
(
@scope
||
'all'
).
capitalize
}
builds
#{
(
@scope
||
'all'
).
capitalize
}
builds
%ul
.content-list.builds-content-list
%ul
.content-list.builds-content-list
=
render
"projects/builds/
content_list"
,
builds:
@builds
,
project:
nil
=
render
"projects/builds/
table"
,
builds:
@builds
,
project:
nil
,
admin:
true
app/views/projects/builds/_
content_list
.html.haml
→
app/views/projects/builds/_
table
.html.haml
View file @
4fa69410
...
@@ -8,19 +8,19 @@
...
@@ -8,19 +8,19 @@
%tr
%tr
%th
Status
%th
Status
%th
Commit
%th
Commit
-
if
project
.
nil?
-
if
admin
%th
Project
%th
Project
%th
Runner
%th
Runner
%th
Stage
%th
Stage
%th
Name
%th
Name
%th
%th
%th
%th
-
if
project
.
present?
-
unless
admin
-
if
@
project
.
build_coverage_enabled?
-
if
project
.
build_coverage_enabled?
%th
Coverage
%th
Coverage
-
if
project
.
nil?
-
if
admin
-
builds
.
each
do
|
build
|
-
builds
.
each
do
|
build
|
=
render
"admin/builds/build"
,
build:
build
=
render
"admin/builds/build"
,
build:
build
-
else
-
else
...
...
app/views/projects/builds/index.html.haml
View file @
4fa69410
...
@@ -20,4 +20,4 @@
...
@@ -20,4 +20,4 @@
%span
CI Lint
%span
CI Lint
%ul
.content-list.builds-content-list
%ul
.content-list.builds-content-list
=
render
"
content_list"
,
builds:
@builds
,
project:
@project
=
render
"
table"
,
builds:
@builds
,
project:
@project
,
admin:
false
app/views/projects/ci/builds/_build.html.haml
View file @
4fa69410
...
@@ -53,10 +53,11 @@
...
@@ -53,10 +53,11 @@
.light
none
.light
none
%td
%td
#{
build
.
stage
}
-
if
defined?
(
stage
)
&&
stage
=
build
.
stage
%td
%td
#{
build
.
name
}
=
build
.
name
%td
%td
-
if
build
.
duration
-
if
build
.
duration
...
...
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