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')}