diff options
author | Bryce Johnson <bryce@gitlab.com> | 2017-05-05 16:52:33 -0400 |
---|---|---|
committer | Bryce Johnson <bryce@gitlab.com> | 2017-05-05 16:52:33 -0400 |
commit | c090e261e1cd2096e4d5ab185c486f5c61a407e7 (patch) | |
tree | d009796428e4c7e1561371145bc191a3b8f9fa82 | |
parent | 349e1425fab7d710989266d11336ca590e8d37fd (diff) | |
download | gitlab-ce-bj-better-view-pipeline-schedule-frontend.tar.gz |
Improve button styles.bj-better-view-pipeline-schedule-frontend
-rw-r--r-- | app/views/projects/pipeline_schedules/_pipeline_schedule.html.haml | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/app/views/projects/pipeline_schedules/_pipeline_schedule.html.haml b/app/views/projects/pipeline_schedules/_pipeline_schedule.html.haml index 049e64b8885..ed93c2c865c 100644 --- a/app/views/projects/pipeline_schedules/_pipeline_schedule.html.haml +++ b/app/views/projects/pipeline_schedules/_pipeline_schedule.html.haml @@ -23,12 +23,13 @@ = link_to user_path(pipeline_schedule.owner) do = pipeline_schedule.owner&.name %td - - if pipeline_schedule.can_take_ownership?(current_user) - = link_to take_ownership_pipeline_schedule_path(pipeline_schedule), method: :post, title: 'Take Ownership', class: 'btn' do - Take ownership - - if can?(current_user, :update_pipeline_schedule, pipeline_schedule) - = link_to edit_pipeline_schedule_path(pipeline_schedule), title: 'Edit', class: 'btn' do - = icon('pencil') - - if can?(current_user, :admin_pipeline_schedule, pipeline_schedule) - = link_to pipeline_schedule_path(pipeline_schedule), title: 'Delete', method: :delete, class: 'btn btn-remove', data: { confirm: "Are you sure you want to cancel this pipeline?" } do - = icon('trash') + .pull-right.btn-group + - if pipeline_schedule.can_take_ownership?(current_user) + = link_to take_ownership_pipeline_schedule_path(pipeline_schedule), method: :post, title: 'Take Ownership', class: 'btn' do + Take ownership + - if can?(current_user, :update_pipeline_schedule, pipeline_schedule) + = link_to edit_pipeline_schedule_path(pipeline_schedule), title: 'Edit', class: 'btn' do + = icon('pencil') + - if can?(current_user, :admin_pipeline_schedule, pipeline_schedule) + = link_to pipeline_schedule_path(pipeline_schedule), title: 'Delete', method: :delete, class: 'btn btn-remove', data: { confirm: "Are you sure you want to cancel this pipeline?" } do + = icon('trash') |