Remove unneeded partial
This commit is contained in:
parent
0b9df1bd93
commit
a06016d00c
4 changed files with 2 additions and 22 deletions
|
@ -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
|
|
@ -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)
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue