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
Jérome Perrin
gitlab-ce
Commits
21976091
Commit
21976091
authored
Aug 11, 2016
by
Katarzyna Kobierska
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move builds content list to partial
parent
e9dbcd8a
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
45 additions
and
40 deletions
+45
-40
app/views/admin/builds/index.html.haml
app/views/admin/builds/index.html.haml
+1
-20
app/views/projects/builds/_content_list.html.haml
app/views/projects/builds/_content_list.html.haml
+43
-0
app/views/projects/builds/index.html.haml
app/views/projects/builds/index.html.haml
+1
-20
No files found.
app/views/admin/builds/index.html.haml
View file @
21976091
...
...
@@ -15,23 +15,4 @@
#{
(
@scope
||
'all'
).
capitalize
}
builds
%ul
.content-list.builds-content-list
-
if
@builds
.
blank?
%li
.nothing-here-block
No builds to show
-
else
.table-holder
%table
.table.builds
%thead
%tr
%th
Status
%th
Commit
%th
Project
%th
Runner
%th
Name
%th
%th
-
@builds
.
each
do
|
build
|
=
render
"admin/builds/build"
,
build:
build
=
paginate
@builds
,
theme:
'gitlab'
=
render
"projects/builds/content_list"
,
builds:
@builds
,
project:
nil
app/views/projects/builds/_content_list.html.haml
0 → 100644
View file @
21976091
-
if
project
.
nil?
-
if
builds
.
blank?
%li
.nothing-here-block
No builds to show
-
else
.table-holder
%table
.table.builds
%thead
%tr
%th
Status
%th
Commit
%th
Project
%th
Runner
%th
Name
%th
%th
-
builds
.
each
do
|
build
|
=
render
"admin/builds/build"
,
build:
build
=
paginate
builds
,
theme:
'gitlab'
-
if
project
.
present?
-
if
builds
.
blank?
%li
.nothing-here-block
No builds to show
-
else
.table-holder
%table
.table.builds
%thead
%tr
%th
Status
%th
Commit
%th
Stage
%th
Name
%th
-
if
project
.
build_coverage_enabled?
%th
Coverage
%th
=
render
builds
,
commit_sha:
true
,
ref:
true
,
stage:
true
,
allow_retry:
true
,
coverage:
project
.
build_coverage_enabled?
=
paginate
builds
,
theme:
'gitlab'
app/views/projects/builds/index.html.haml
View file @
21976091
...
...
@@ -20,23 +20,4 @@
%span
CI Lint
%ul
.content-list.builds-content-list
-
if
@builds
.
blank?
%li
.nothing-here-block
No builds to show
-
else
.table-holder
%table
.table.builds
%thead
%tr
%th
Status
%th
Commit
%th
Stage
%th
Name
%th
-
if
@project
.
build_coverage_enabled?
%th
Coverage
%th
=
render
@builds
,
commit_sha:
true
,
ref:
true
,
stage:
true
,
allow_retry:
true
,
coverage:
@project
.
build_coverage_enabled?
=
paginate
@builds
,
theme:
'gitlab'
=
render
"content_list"
,
builds:
@builds
,
project:
@project
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