Commit a06016d0 authored by Filipa Lacerda's avatar Filipa Lacerda

Remove unneeded partial

parent 0b9df1bd
- 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}"
- graph_status_icon = "#{detailed_status.icon}_graph"
- if details_path
= link_to details_path, class: klass, data: { toggle: 'tooltip', title: "#{subject.name} - #{detailed_status}" } do
%span{ class: klass }= custom_icon(graph_status_icon)
.ci-status-text= subject.name
- else
%span{ class: klass }= custom_icon(graph_status_icon)
.ci-status-text= subject.name
= render "ci/status/graph_icon_with_name", subject: subject
- detailed_status = subject.detailed_status(current_user)
- if detailed_status.has_action?
= link_to detailed_status.action_path, method: detailed_status.action_method,
title: "#{subject.name}: #{detailed_status.action_title}", class: 'ci-action-icon-container' do
%i.ci-action-icon-wrapper
= icon(detailed_status.action_icon, class: detailed_status.action_class)
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
%li.build %li.build
.curve .curve
.build-content .build-content
= render 'ci/status/graph_icon_with_name_and_action', subject: status = render 'ci/status/icon_with_name_and_action', subject: status
- else - else
%li.build %li.build
.curve .curve
......
...@@ -10,4 +10,4 @@ ...@@ -10,4 +10,4 @@
%ul %ul
- subject.each do |status| - subject.each do |status|
%li.dropdown-build %li.dropdown-build
= render 'ci/status/graph_icon_with_name_and_action', subject: status = render 'ci/status/icon_with_name_and_action', subject: status
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment