From 4161e796ab9a020329fa80cdd47c43f1aa7aad06 Mon Sep 17 00:00:00 2001 From: Petko Bordjukov Date: Tue, 11 Oct 2016 03:14:36 +0300 Subject: [PATCH] Leave space between the CFP button and the actions --- app/views/management/conferences/show.html.slim | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/views/management/conferences/show.html.slim b/app/views/management/conferences/show.html.slim index b982460..0b4d8f6 100644 --- a/app/views/management/conferences/show.html.slim +++ b/app/views/management/conferences/show.html.slim @@ -6,13 +6,13 @@ h1.page-header = @conference.title .pull-right + - if @conference.call_for_participation.in_progress? + = link_to management_conference_call_for_participation_path(@conference), method: :delete, class: 'btn btn-sm btn-success' + = icon 'dot-circle-o', t('.cfp_status'), class: 'fa-fw' + - else + = link_to management_conference_call_for_participation_path(@conference), method: :post, class: 'btn btn-sm btn-primary' + = icon 'circle-o', t('.cfp_status'), class: 'fa-fw' .btn-group.btn-group-sm< - - if @conference.call_for_participation.in_progress? - = link_to management_conference_call_for_participation_path(@conference), method: :delete, class: 'btn btn-success' - = icon 'dot-circle-o', t('.cfp_status'), class: 'fa-fw' - - else - = link_to management_conference_call_for_participation_path(@conference), method: :post, class: 'btn btn-primary' - = icon 'circle-o', t('.cfp_status'), class: 'fa-fw' = link_to edit_management_conference_path(@conference), title: t('actions.edit.button', model: Conference.model_name.human), class: 'btn btn-warning' = icon :edit = link_to management_conference_path(@conference), title: t('actions.destroy.button', model: Conference.model_name.human), class: ['btn', 'btn-danger', @conference.events.any? ? 'disabled' : nil], method: :delete, data: {confirm: t('actions.are_you_sure')}