summaryrefslogtreecommitdiff
path: root/app/views/projects/buttons
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-08-15 23:48:43 +0200
committerKamil Trzcinski <ayufan@ayufan.eu>2016-08-15 23:48:43 +0200
commit1501b1abc4be78eaa4cb4c28969d9bc59bcf284c (patch)
treedc82b4b9e0436651e1804c7e0e76d99234c85752 /app/views/projects/buttons
parentd8dfa56e95c794a91c0a1185e5e6c0017e144b25 (diff)
downloadgitlab-ce-1501b1abc4be78eaa4cb4c28969d9bc59bcf284c.tar.gz
Fixed bug when a pipeline for latest SHA does not exist
Diffstat (limited to 'app/views/projects/buttons')
-rw-r--r--app/views/projects/buttons/_download.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/projects/buttons/_download.html.haml b/app/views/projects/buttons/_download.html.haml
index 84135a6d049..a86561ca90b 100644
--- a/app/views/projects/buttons/_download.html.haml
+++ b/app/views/projects/buttons/_download.html.haml
@@ -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