summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnnabel Dunstone Gray <annabel.dunstone@gmail.com>2016-10-28 13:35:29 -0500
committerAnnabel Dunstone Gray <annabel.dunstone@gmail.com>2016-10-28 13:35:29 -0500
commit19b36862426f64ff1b362df4b3790e0a8880084b (patch)
tree93c20dadbe5944937054c0764ff1032753430da3
parent7c977e10d2b180906136e93cd939e4af0314452d (diff)
downloadgitlab-ce-23273-retry-build-btn.tar.gz
Change retry button color23273-retry-build-btn
-rw-r--r--app/assets/stylesheets/pages/builds.scss6
-rw-r--r--app/views/projects/builds/_header.html.haml2
2 files changed, 6 insertions, 2 deletions
diff --git a/app/assets/stylesheets/pages/builds.scss b/app/assets/stylesheets/pages/builds.scss
index a73b8908f60..6300ac9662f 100644
--- a/app/assets/stylesheets/pages/builds.scss
+++ b/app/assets/stylesheets/pages/builds.scss
@@ -57,10 +57,14 @@
min-height: 58px;
align-items: center;
+ .btn-inverted {
+ @include btn-outline($white-light, $blue-normal, $blue-normal, $blue-light, $white-light, $blue-light);
+ }
+
@media (max-width: $screen-sm-max) {
padding-right: 40px;
- .btn-primary {
+ .btn-inverted {
display: none;
}
}
diff --git a/app/views/projects/builds/_header.html.haml b/app/views/projects/builds/_header.html.haml
index ec20d1876d1..3f2ce7377fd 100644
--- a/app/views/projects/builds/_header.html.haml
+++ b/app/views/projects/builds/_header.html.haml
@@ -14,6 +14,6 @@
= render "user"
= time_ago_with_tooltip(@build.created_at)
- if can?(current_user, :update_build, @build) && @build.retryable?
- = link_to "Retry build", retry_namespace_project_build_path(@project.namespace, @project, @build), class: 'btn btn-primary pull-right', method: :post
+ = link_to "Retry build", retry_namespace_project_build_path(@project.namespace, @project, @build), class: 'btn btn-inverted pull-right', method: :post
%button.btn.btn-default.pull-right.visible-xs-block.visible-sm-block.build-gutter-toggle.js-sidebar-build-toggle{ role: "button", type: "button" }
= icon('angle-double-left')