BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
1501b1ab
Commit
1501b1ab
authored
Aug 15, 2016
by
Kamil Trzcinski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed bug when a pipeline for latest SHA does not exist
parent
d8dfa56e
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
4 deletions
+9
-4
ci_status_helper.rb
app/helpers/ci_status_helper.rb
+5
-0
_branch.html.haml
app/views/projects/branches/_branch.html.haml
+1
-1
_download.html.haml
app/views/projects/buttons/_download.html.haml
+1
-1
_download_archive.html.haml
app/views/projects/repositories/_download_archive.html.haml
+1
-1
_download.html.haml
app/views/projects/tags/_download.html.haml
+1
-1
No files found.
app/helpers/ci_status_helper.rb
View file @
1501b1ab
...
...
@@ -25,6 +25,11 @@ module CiStatusHelper
end
end
def
ci_status_for_statuseable
(
subject
)
status
=
subject
.
try
(
:status
)
||
'not found'
status
.
humanize
end
def
ci_icon_for_status
(
status
)
icon_name
=
case
status
...
...
app/views/projects/branches/_branch.html.haml
View file @
1501b1ab
...
...
@@ -42,7 +42,7 @@
-
unless
pipeline
.
latest?
-
latest_pipeline
=
@project
.
pipeline_for
(
branch
.
name
)
%li
%span
=
latest_pipeline
.
status
.
humanize
%span
=
ci_status_for_statuseable
(
latest_pipeline
)
%li
.dropdown-header
Previous Artifacts
-
artifacts
.
each
do
|
job
|
%li
...
...
app/views/projects/buttons/_download.html.haml
View file @
1501b1ab
...
...
@@ -22,7 +22,7 @@
-
unless
pipeline
.
latest?
-
latest_pipeline
=
@project
.
pipeline_for
(
@ref
)
%li
%span
=
latest_pipeline
.
status
.
humanize
%span
=
ci_status_for_statuseable
(
latest_pipeline
)
%li
.dropdown-header
Previous Artifacts
-
artifacts
.
each
do
|
job
|
%li
...
...
app/views/projects/repositories/_download_archive.html.haml
View file @
1501b1ab
...
...
@@ -33,7 +33,7 @@
-
unless
pipeline
.
latest?
-
latest_pipeline
=
@project
.
pipeline_for
(
ref
)
%li
%span
=
latest_pipeline
.
status
.
humanize
%span
=
ci_status_for_statuseable
(
latest_pipeline
)
%li
.dropdown-header
Previous Artifacts
-
artifacts
.
each
do
|
job
|
%li
...
...
app/views/projects/tags/_download.html.haml
View file @
1501b1ab
...
...
@@ -20,7 +20,7 @@
-
unless
pipeline
.
latest?
-
latest_pipeline
=
project
.
pipeline_for
(
ref
)
%li
%span
=
latest_pipeline
.
status
.
humanize
%span
=
ci_status_for_statuseable
(
latest_pipeline
)
%li
.dropdown-header
Previous Artifacts
-
artifacts
.
each
do
|
job
|
%li
...
...
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