Update CSS selector and play icon
This commit is contained in:
parent
4e66551a66
commit
bfe2259bb7
3 changed files with 4 additions and 4 deletions
|
@ -298,7 +298,7 @@
|
|||
width: 150px;
|
||||
margin-bottom: 10px;
|
||||
|
||||
&.deployable {
|
||||
&.playable {
|
||||
background-color: $gray-light;
|
||||
}
|
||||
|
||||
|
|
|
@ -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')
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue