Remove unneeded partial

This commit is contained in:
Filipa Lacerda 2016-12-13 11:38:34 +00:00
parent 0b9df1bd93
commit a06016d00c
4 changed files with 2 additions and 22 deletions

View file

@ -1,12 +0,0 @@
- 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

View file

@ -1,8 +0,0 @@
= 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)

View file

@ -13,7 +13,7 @@
%li.build
.curve
.build-content
= render 'ci/status/graph_icon_with_name_and_action', subject: status
= render 'ci/status/icon_with_name_and_action', subject: status
- else
%li.build
.curve

View file

@ -10,4 +10,4 @@
%ul
- subject.each do |status|
%li.dropdown-build
= render 'ci/status/graph_icon_with_name_and_action', subject: status
= render 'ci/status/icon_with_name_and_action', subject: status