Commit cf386084 authored by Grzegorz Bizon's avatar Grzegorz Bizon
Browse files

Use button groups in build summary for consistency

parent 73fadded
...@@ -113,18 +113,19 @@ ...@@ -113,18 +113,19 @@
%h4.title %h4.title
Build ##{@build.id} Build ##{@build.id}
- if can?(current_user, :update_build, @project) - if can?(current_user, :update_build, @project)
.pull-right .center
- if @build.cancel_url .btn-group{ role: :group }
= link_to "Cancel", @build.cancel_url, class: 'btn btn-sm btn-danger', method: :post - if @build.cancel_url
- elsif @build.retry_url = link_to "Cancel", @build.cancel_url, class: 'btn btn-sm btn-danger', method: :post
= link_to "Retry", @build.retry_url, class: 'btn btn-sm btn-primary', method: :post - elsif @build.retry_url
= link_to "Retry", @build.retry_url, class: 'btn btn-sm btn-primary', method: :post
- if @build.erasable?
= link_to erase_namespace_project_build_path(@project.namespace, @project, @build), - if @build.erasable?
class: 'btn btn-sm btn-warning', method: :delete, = link_to erase_namespace_project_build_path(@project.namespace, @project, @build),
data: { confirm: 'Are you sure you want to erase this build?' } do class: 'btn btn-sm btn-warning', method: :delete,
= icon('eraser') data: { confirm: 'Are you sure you want to erase this build?' } do
Erase = icon('eraser')
Erase
.clearfix .clearfix
- if @build.duration - if @build.duration
......
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