summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/views/ci/status/_graph_badge.haml (renamed from app/views/ci/status/_badge_graph_icon_with_name_and_action.html.haml)2
-rw-r--r--app/views/projects/stage/_graph.html.haml2
-rw-r--r--app/views/projects/stage/_in_stage_group.html.haml2
3 files changed, 4 insertions, 2 deletions
diff --git a/app/views/ci/status/_badge_graph_icon_with_name_and_action.html.haml b/app/views/ci/status/_graph_badge.haml
index 12a55735559..7c6d36217f0 100644
--- a/app/views/ci/status/_badge_graph_icon_with_name_and_action.html.haml
+++ b/app/views/ci/status/_graph_badge.haml
@@ -1,3 +1,5 @@
+-# Renders the graph node with both the status icon, status name and action icon
+
- detailed_status = subject.detailed_status(current_user)
- details_path = detailed_status.details_path if detailed_status.has_details?
- klass = "ci-status-icon ci-status-icon-#{detailed_status}"
diff --git a/app/views/projects/stage/_graph.html.haml b/app/views/projects/stage/_graph.html.haml
index ff86d93f354..b70b574e687 100644
--- a/app/views/projects/stage/_graph.html.haml
+++ b/app/views/projects/stage/_graph.html.haml
@@ -13,7 +13,7 @@
%li.build
.curve
.build-content
- = render 'ci/status/bagde_graph_icon_with_name_and_action', subject: status
+ = render 'ci/status/graph_badge', subject: status
- else
%li.build
.curve
diff --git a/app/views/projects/stage/_in_stage_group.html.haml b/app/views/projects/stage/_in_stage_group.html.haml
index e4a7613998d..b03837d1211 100644
--- a/app/views/projects/stage/_in_stage_group.html.haml
+++ b/app/views/projects/stage/_in_stage_group.html.haml
@@ -10,4 +10,4 @@
%ul
- subject.each do |status|
%li.dropdown-build
- = render 'ci/status/bagde_graph_icon_with_name_and_action', subject: status
+ = render 'ci/status/graph_badge', subject: status