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
41d57080
Commit
41d57080
authored
Sep 12, 2016
by
Katarzyna Kobierska
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unnecessary variables
parent
93742a43
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
app/views/admin/builds/index.html.haml
app/views/admin/builds/index.html.haml
+1
-1
app/views/projects/ci/builds/_build.html.haml
app/views/projects/ci/builds/_build.html.haml
+7
-7
No files found.
app/views/admin/builds/index.html.haml
View file @
41d57080
...
@@ -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/table"
,
builds:
@builds
,
project:
nil
,
admin:
true
=
render
"projects/builds/table"
,
builds:
@builds
,
admin:
true
app/views/projects/ci/builds/_build.html.haml
View file @
41d57080
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
-
else
-
else
%span
.build-link
##{build.id}
%span
.build-link
##{build.id}
-
if
defined?
(
ref
)
&&
ref
-
if
ref
-
if
build
.
ref
-
if
build
.
ref
.icon-container
.icon-container
=
build
.
tag?
?
icon
(
'tag'
)
:
icon
(
'code-fork'
)
=
build
.
tag?
?
icon
(
'tag'
)
:
icon
(
'code-fork'
)
...
@@ -31,12 +31,12 @@
...
@@ -31,12 +31,12 @@
.icon-container
.icon-container
=
custom_icon
(
"icon_commit"
)
=
custom_icon
(
"icon_commit"
)
-
if
defined?
(
commit_sha
)
&&
commit_sha
-
if
commit_sha
=
link_to
build
.
short_sha
,
namespace_project_commit_path
(
build
.
project
.
namespace
,
build
.
project
,
build
.
sha
),
class:
"commit-id monospace"
=
link_to
build
.
short_sha
,
namespace_project_commit_path
(
build
.
project
.
namespace
,
build
.
project
,
build
.
sha
),
class:
"commit-id monospace"
-
if
build
.
stuck?
-
if
build
.
stuck?
=
icon
(
'warning'
,
class:
'text-warning has-tooltip'
,
title:
'Build is stuck. Check runners.'
)
=
icon
(
'warning'
,
class:
'text-warning has-tooltip'
,
title:
'Build is stuck. Check runners.'
)
-
if
defined?
(
retried
)
&&
retried
-
if
retried
=
icon
(
'warning'
,
class:
'text-warning has-tooltip'
,
title:
'Build was retried.'
)
=
icon
(
'warning'
,
class:
'text-warning has-tooltip'
,
title:
'Build was retried.'
)
.label-container
.label-container
...
@@ -48,7 +48,7 @@
...
@@ -48,7 +48,7 @@
%span
.label.label-info
triggered
%span
.label.label-info
triggered
-
if
build
.
try
(
:allow_failure
)
-
if
build
.
try
(
:allow_failure
)
%span
.label.label-danger
allowed to fail
%span
.label.label-danger
allowed to fail
-
if
defined?
(
retried
)
&&
retried
-
if
retried
%span
.label.label-warning
retried
%span
.label.label-warning
retried
-
if
build
.
manual?
-
if
build
.
manual?
%span
.label.label-info
manual
%span
.label.label-info
manual
...
@@ -65,7 +65,7 @@
...
@@ -65,7 +65,7 @@
-
else
-
else
.light
none
.light
none
-
if
defined?
(
stage
)
&&
stage
-
if
stage
%td
%td
=
build
.
stage
=
build
.
stage
...
@@ -84,7 +84,7 @@
...
@@ -84,7 +84,7 @@
%span
#{
time_ago_with_tooltip
(
build
.
finished_at
)
}
%span
#{
time_ago_with_tooltip
(
build
.
finished_at
)
}
%td
.coverage
%td
.coverage
-
if
defined?
(
coverage
)
&&
coverage
-
if
coverage
-
if
build
.
try
(
:coverage
)
-
if
build
.
try
(
:coverage
)
#{
build
.
coverage
}
%
#{
build
.
coverage
}
%
...
@@ -97,7 +97,7 @@
...
@@ -97,7 +97,7 @@
-
if
build
.
active?
-
if
build
.
active?
=
link_to
cancel_namespace_project_build_path
(
build
.
project
.
namespace
,
build
.
project
,
build
,
return_to:
request
.
original_url
),
method: :post
,
title:
'Cancel'
,
class:
'btn btn-build'
do
=
link_to
cancel_namespace_project_build_path
(
build
.
project
.
namespace
,
build
.
project
,
build
,
return_to:
request
.
original_url
),
method: :post
,
title:
'Cancel'
,
class:
'btn btn-build'
do
=
icon
(
'remove'
,
class:
'cred'
)
=
icon
(
'remove'
,
class:
'cred'
)
-
elsif
defined?
(
allow_retry
)
&&
allow_retry
-
elsif
allow_retry
-
if
build
.
retryable?
-
if
build
.
retryable?
=
link_to
retry_namespace_project_build_path
(
build
.
project
.
namespace
,
build
.
project
,
build
,
return_to:
request
.
original_url
),
method: :post
,
title:
'Retry'
,
class:
'btn btn-build'
do
=
link_to
retry_namespace_project_build_path
(
build
.
project
.
namespace
,
build
.
project
,
build
,
return_to:
request
.
original_url
),
method: :post
,
title:
'Retry'
,
class:
'btn btn-build'
do
=
icon
(
'repeat'
)
=
icon
(
'repeat'
)
...
...
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