From 268a201cce4da7225841b651336835876be43fc2 Mon Sep 17 00:00:00 2001 From: Filipa Lacerda Date: Wed, 14 Dec 2016 14:24:25 +0000 Subject: [PATCH] Rename file according to review --- ...ph_icon_with_name_and_action.html.haml => _graph_badge.haml} | 2 ++ app/views/projects/stage/_graph.html.haml | 2 +- app/views/projects/stage/_in_stage_group.html.haml | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) rename app/views/ci/status/{_badge_graph_icon_with_name_and_action.html.haml => _graph_badge.haml} (91%) diff --git a/app/views/ci/status/_badge_graph_icon_with_name_and_action.html.haml b/app/views/ci/status/_graph_badge.haml similarity index 91% rename from app/views/ci/status/_badge_graph_icon_with_name_and_action.html.haml rename to 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