From ed16969ea1909ee124b2cbb3b09599f9118b387c Mon Sep 17 00:00:00 2001 From: Petko Bordjukov Date: Tue, 11 Oct 2016 03:13:04 +0300 Subject: [PATCH] Tweak ConferencesController#show action buttons --- app/views/management/conferences/show.html.slim | 16 ++++++++++------ config/locales/bg.yml | 2 +- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/app/views/management/conferences/show.html.slim b/app/views/management/conferences/show.html.slim index 14cb163..b982460 100644 --- a/app/views/management/conferences/show.html.slim +++ b/app/views/management/conferences/show.html.slim @@ -6,14 +6,18 @@ h1.page-header = @conference.title .pull-right - .small - => t '.cfp_status' + .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-sm btn-success cfp-toggle' - = icon 'dot-circle-o', '', class: 'fa-fw' + = 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-sm btn-warning cfp-toggle' - = icon 'circle-o', class: 'fa-fw' + = 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')} + = icon :trash + .row .col-lg-3.col-md-6 .panel.panel-primary diff --git a/config/locales/bg.yml b/config/locales/bg.yml index 912a75e..da0e0fe 100644 --- a/config/locales/bg.yml +++ b/config/locales/bg.yml @@ -36,7 +36,7 @@ bg: vote_data_updated_at: "последно обновяване %{updated_at}" vote_ratio: "%{votes} от общо %{total_votes} гласа" summary: 'Обобщение' - cfp_status: 'Състояние на CFP:' + cfp_status: 'Състояние на CFP' fetch_vote_results: "Изтегли резултатите от гласуването" percent: "%" rank: "Позиция"