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
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
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
4 deletions
+9
-4
app/helpers/ci_status_helper.rb
app/helpers/ci_status_helper.rb
+5
-0
app/views/projects/branches/_branch.html.haml
app/views/projects/branches/_branch.html.haml
+1
-1
app/views/projects/buttons/_download.html.haml
app/views/projects/buttons/_download.html.haml
+1
-1
app/views/projects/repositories/_download_archive.html.haml
app/views/projects/repositories/_download_archive.html.haml
+1
-1
app/views/projects/tags/_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
...
@@ -25,6 +25,11 @@ module CiStatusHelper
end
end
end
end
def
ci_status_for_statuseable
(
subject
)
status
=
subject
.
try
(
:status
)
||
'not found'
status
.
humanize
end
def
ci_icon_for_status
(
status
)
def
ci_icon_for_status
(
status
)
icon_name
=
icon_name
=
case
status
case
status
...
...
app/views/projects/branches/_branch.html.haml
View file @
1501b1ab
...
@@ -42,7 +42,7 @@
...
@@ -42,7 +42,7 @@
-
unless
pipeline
.
latest?
-
unless
pipeline
.
latest?
-
latest_pipeline
=
@project
.
pipeline_for
(
branch
.
name
)
-
latest_pipeline
=
@project
.
pipeline_for
(
branch
.
name
)
%li
%li
%span
=
latest_pipeline
.
status
.
humanize
%span
=
ci_status_for_statuseable
(
latest_pipeline
)
%li
.dropdown-header
Previous Artifacts
%li
.dropdown-header
Previous Artifacts
-
artifacts
.
each
do
|
job
|
-
artifacts
.
each
do
|
job
|
%li
%li
...
...
app/views/projects/buttons/_download.html.haml
View file @
1501b1ab
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
-
unless
pipeline
.
latest?
-
unless
pipeline
.
latest?
-
latest_pipeline
=
@project
.
pipeline_for
(
@ref
)
-
latest_pipeline
=
@project
.
pipeline_for
(
@ref
)
%li
%li
%span
=
latest_pipeline
.
status
.
humanize
%span
=
ci_status_for_statuseable
(
latest_pipeline
)
%li
.dropdown-header
Previous Artifacts
%li
.dropdown-header
Previous Artifacts
-
artifacts
.
each
do
|
job
|
-
artifacts
.
each
do
|
job
|
%li
%li
...
...
app/views/projects/repositories/_download_archive.html.haml
View file @
1501b1ab
...
@@ -33,7 +33,7 @@
...
@@ -33,7 +33,7 @@
-
unless
pipeline
.
latest?
-
unless
pipeline
.
latest?
-
latest_pipeline
=
@project
.
pipeline_for
(
ref
)
-
latest_pipeline
=
@project
.
pipeline_for
(
ref
)
%li
%li
%span
=
latest_pipeline
.
status
.
humanize
%span
=
ci_status_for_statuseable
(
latest_pipeline
)
%li
.dropdown-header
Previous Artifacts
%li
.dropdown-header
Previous Artifacts
-
artifacts
.
each
do
|
job
|
-
artifacts
.
each
do
|
job
|
%li
%li
...
...
app/views/projects/tags/_download.html.haml
View file @
1501b1ab
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
-
unless
pipeline
.
latest?
-
unless
pipeline
.
latest?
-
latest_pipeline
=
project
.
pipeline_for
(
ref
)
-
latest_pipeline
=
project
.
pipeline_for
(
ref
)
%li
%li
%span
=
latest_pipeline
.
status
.
humanize
%span
=
ci_status_for_statuseable
(
latest_pipeline
)
%li
.dropdown-header
Previous Artifacts
%li
.dropdown-header
Previous Artifacts
-
artifacts
.
each
do
|
job
|
-
artifacts
.
each
do
|
job
|
%li
%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