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
Léo-Paul Géneau
gitlab-ce
Commits
93742a43
Commit
93742a43
authored
Sep 12, 2016
by
Katarzyna Kobierska
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Code refactoring
parent
d39e314c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
11 deletions
+14
-11
app/views/projects/builds/_table.html.haml
app/views/projects/builds/_table.html.haml
+2
-5
app/views/projects/ci/builds/_build.html.haml
app/views/projects/ci/builds/_build.html.haml
+8
-2
app/views/shared/builds/_tabs.html.haml
app/views/shared/builds/_tabs.html.haml
+4
-4
No files found.
app/views/projects/builds/_table.html.haml
View file @
93742a43
-
admin
=
false
unless
defined?
(
admin
)
-
admin
=
local_assigns
.
fetch
(
:admin
,
false
)
-
if
builds
.
blank?
%li
...
...
@@ -19,9 +19,6 @@
%th
Coverage
%th
-
if
admin
=
render
partial:
"projects/ci/builds/build"
,
collection:
builds
,
as: :build
,
locals:
{
commit_sha:
true
,
ref:
true
,
stage:
true
,
allow_retry:
true
,
runner:
true
,
coverage:
true
,
admin:
true
}
-
else
=
render
partial:
"projects/ci/builds/build"
,
collection:
builds
,
as: :build
,
locals:
{
commit_sha:
true
,
ref:
true
,
stage:
true
,
allow_retry:
true
,
coverage:
project
.
build_coverage_enabled?
}
=
render
partial:
"projects/ci/builds/build"
,
collection:
builds
,
as: :build
,
locals:
{
commit_sha:
true
,
ref:
true
,
stage:
true
,
allow_retry:
true
,
coverage:
admin
||
project
.
build_coverage_enabled?
,
admin:
admin
}
=
paginate
builds
,
theme:
'gitlab'
app/views/projects/ci/builds/_build.html.haml
View file @
93742a43
-
admin
=
false
unless
defined?
(
admin
)
-
admin
=
local_assigns
.
fetch
(
:admin
,
false
)
-
ref
=
local_assigns
.
fetch
(
:ref
,
nil
)
-
commit_sha
=
local_assigns
.
fetch
(
:commit_sha
,
nil
)
-
retried
=
local_assigns
.
fetch
(
:retried
,
false
)
-
stage
=
local_assigns
.
fetch
(
:stage
,
false
)
-
coverage
=
local_assigns
.
fetch
(
:coverage
,
false
)
-
allow_retry
=
local_assigns
.
fetch
(
:allow_retry
,
false
)
%tr
.build.commit
%td
.status
...
...
@@ -52,7 +58,7 @@
-
if
build
.
project
=
link_to
build
.
project
.
name_with_namespace
,
admin_namespace_project_path
(
build
.
project
.
namespace
,
build
.
project
)
-
if
defined?
(
runner
)
&&
runner
-
if
admin
%td
-
if
build
.
try
(
:runner
)
=
runner_link
(
build
.
runner
)
...
...
app/views/shared/builds/_tabs.html.haml
View file @
93742a43
%ul
.nav-links
%li
{
class:
(
'active'
if
scope
.
nil?
)
}
%li
{
class:
(
'active'
if
scope
.
nil?
)
}
=
link_to
build_path_proc
.
call
(
nil
)
do
All
%span
.badge.js-totalbuilds-count
=
number_with_delimiter
(
all_builds
.
count
(
:id
))
%li
{
class:
(
'active'
if
scope
==
'pending'
)
}
%li
{
class:
(
'active'
if
scope
==
'pending'
)
}
=
link_to
build_path_proc
.
call
(
'pending'
)
do
Pending
%span
.badge
=
number_with_delimiter
(
all_builds
.
pending
.
count
(
:id
))
%li
{
class:
(
'active'
if
scope
==
'running'
)
}
%li
{
class:
(
'active'
if
scope
==
'running'
)
}
=
link_to
build_path_proc
.
call
(
'running'
)
do
Running
%span
.badge
=
number_with_delimiter
(
all_builds
.
running
.
count
(
:id
))
%li
{
class:
(
'active'
if
scope
==
'finished'
)
}
%li
{
class:
(
'active'
if
scope
==
'finished'
)
}
=
link_to
build_path_proc
.
call
(
'finished'
)
do
Finished
%span
.badge
...
...
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