Commit 9694b992 authored by Annabel Dunstone's avatar Annabel Dunstone

Add margin between buttons if both retry and cancel are present

parent 94a08ec1
...@@ -128,6 +128,12 @@ ...@@ -128,6 +128,12 @@
color: $table-text-gray; color: $table-text-gray;
} }
.cancel-retry-btns {
.btn:not(:first-child) {
margin-left: 8px;
}
}
.dropdown-toggle, .dropdown-toggle,
.dropdown-menu { .dropdown-menu {
color: $table-text-gray; color: $table-text-gray;
......
...@@ -80,9 +80,10 @@ ...@@ -80,9 +80,10 @@
%span Download '#{build.name}' artifacts %span Download '#{build.name}' artifacts
- if can?(current_user, :update_pipeline, @project) - if can?(current_user, :update_pipeline, @project)
- if pipeline.retryable? .cancel-retry-btns
= link_to retry_namespace_project_pipeline_path(@project.namespace, @project, pipeline.id), class: 'btn has-tooltip', title: "Retry", method: :post do - if pipeline.retryable?
= icon("repeat") = link_to retry_namespace_project_pipeline_path(@project.namespace, @project, pipeline.id), class: 'btn has-tooltip', title: "Retry", method: :post do
- if pipeline.cancelable? = icon("repeat")
= link_to cancel_namespace_project_pipeline_path(@project.namespace, @project, pipeline.id), class: 'btn btn-remove has-tooltip', title: "Cancel", method: :post do - if pipeline.cancelable?
= icon("remove") = link_to cancel_namespace_project_pipeline_path(@project.namespace, @project, pipeline.id), class: 'btn btn-remove has-tooltip', title: "Cancel", method: :post do
= icon("remove")
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