Update CSS selector and play icon

This commit is contained in:
Annabel Dunstone 2016-08-17 10:20:46 -05:00
parent 4e66551a66
commit bfe2259bb7
3 changed files with 4 additions and 4 deletions

View File

@ -298,7 +298,7 @@
width: 150px;
margin-bottom: 10px;
&.deployable {
&.playable {
background-color: $gray-light;
}

View File

@ -39,14 +39,14 @@ module CiStatusHelper
when 'running'
'icon_status_running'
when 'play'
'play'
return icon('play fw')
when 'created'
'icon_status_pending'
else
'icon_status_cancel'
end
status == 'play' ? icon(icon_name + ' fw') : custom_icon(icon_name)
custom_icon(icon_name)
end
def render_commit_status(commit, tooltip_placement: 'auto left')

View File

@ -1,4 +1,4 @@
%li.build{class: ("deployable" if subject.playable? && can?(current_user, :update_build, @project))}
%li.build{class: ("playable" if subject.playable? && can?(current_user, :update_build, @project))}
.build-content
- if subject.playable? && can?(current_user, :update_build, @project)
= link_to play_namespace_project_build_path(subject.project.namespace, subject.project, subject, return_to: request.original_url), method: :post, title: 'Play' do