Commit bfe2259b authored by Annabel Dunstone's avatar Annabel Dunstone

Update CSS selector and play icon

parent 4e66551a
...@@ -298,7 +298,7 @@ ...@@ -298,7 +298,7 @@
width: 150px; width: 150px;
margin-bottom: 10px; margin-bottom: 10px;
&.deployable { &.playable {
background-color: $gray-light; background-color: $gray-light;
} }
......
...@@ -39,14 +39,14 @@ module CiStatusHelper ...@@ -39,14 +39,14 @@ module CiStatusHelper
when 'running' when 'running'
'icon_status_running' 'icon_status_running'
when 'play' when 'play'
'play' return icon('play fw')
when 'created' when 'created'
'icon_status_pending' 'icon_status_pending'
else else
'icon_status_cancel' 'icon_status_cancel'
end end
status == 'play' ? icon(icon_name + ' fw') : custom_icon(icon_name) custom_icon(icon_name)
end end
def render_commit_status(commit, tooltip_placement: 'auto left') def render_commit_status(commit, tooltip_placement: 'auto left')
......
%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 .build-content
- if subject.playable? && can?(current_user, :update_build, @project) - 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 = link_to play_namespace_project_build_path(subject.project.namespace, subject.project, subject, return_to: request.original_url), method: :post, title: 'Play' do
......
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