summaryrefslogtreecommitdiff
path: root/app/views/ci
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-12-08 17:52:24 +0100
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-12-12 12:59:01 +0100
commit980009e6e85562c9ee8026878929d09905b2a0a9 (patch)
tree2388b1dd60a96e21e39c718bea20480ebca0dc67 /app/views/ci
parentf0cd73bfadbe9fa27b25473dab61d8c566292392 (diff)
downloadgitlab-ce-980009e6e85562c9ee8026878929d09905b2a0a9.tar.gz
Fix auto loading of constants for Ci Statuses
Diffstat (limited to 'app/views/ci')
-rw-r--r--app/views/ci/status/_icon_with_label.html.haml13
1 files changed, 7 insertions, 6 deletions
diff --git a/app/views/ci/status/_icon_with_label.html.haml b/app/views/ci/status/_icon_with_label.html.haml
index 65a74e88444..d3fe332cc78 100644
--- a/app/views/ci/status/_icon_with_label.html.haml
+++ b/app/views/ci/status/_icon_with_label.html.haml
@@ -1,10 +1,11 @@
-- details_path = subject.details_path if subject.has_details?(current_user)
-- klass = "ci-status ci-#{subject.status}"
+- detailed_status = subject.detailed_status(current_user)
+- details_path = detailed_status.details_path if detailed_status.has_details?
+- klass = "ci-status ci-#{detailed_status}"
- if details_path
= link_to details_path, class: klass do
- = custom_icon(status.icon)
- = status.text
+ = custom_icon(detailed_status.icon)
+ = detailed_status.text
- else
%span{ class: klass }
- = custom_icon(status.icon)
- = status.text
+ = custom_icon(detailed_status.icon)
+ = detailed_status.text