Tweak ConferencesController#show action buttons
This commit is contained in:
parent
fa879dcb5e
commit
ed16969ea1
|
@ -6,14 +6,18 @@
|
||||||
h1.page-header
|
h1.page-header
|
||||||
= @conference.title
|
= @conference.title
|
||||||
.pull-right
|
.pull-right
|
||||||
.small
|
.btn-group.btn-group-sm<
|
||||||
=> t '.cfp_status'
|
|
||||||
- if @conference.call_for_participation.in_progress?
|
- 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'
|
= link_to management_conference_call_for_participation_path(@conference), method: :delete, class: 'btn btn-success'
|
||||||
= icon 'dot-circle-o', '', class: 'fa-fw'
|
= icon 'dot-circle-o', t('.cfp_status'), class: 'fa-fw'
|
||||||
- else
|
- else
|
||||||
= link_to management_conference_call_for_participation_path(@conference), method: :post, class: 'btn btn-sm btn-warning cfp-toggle'
|
= link_to management_conference_call_for_participation_path(@conference), method: :post, class: 'btn btn-primary'
|
||||||
= icon 'circle-o', class: 'fa-fw'
|
= 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
|
.row
|
||||||
.col-lg-3.col-md-6
|
.col-lg-3.col-md-6
|
||||||
.panel.panel-primary
|
.panel.panel-primary
|
||||||
|
|
|
@ -36,7 +36,7 @@ bg:
|
||||||
vote_data_updated_at: "последно обновяване %{updated_at}"
|
vote_data_updated_at: "последно обновяване %{updated_at}"
|
||||||
vote_ratio: "%{votes} от общо %{total_votes} гласа"
|
vote_ratio: "%{votes} от общо %{total_votes} гласа"
|
||||||
summary: 'Обобщение'
|
summary: 'Обобщение'
|
||||||
cfp_status: 'Състояние на CFP:'
|
cfp_status: 'Състояние на CFP'
|
||||||
fetch_vote_results: "Изтегли резултатите от гласуването"
|
fetch_vote_results: "Изтегли резултатите от гласуването"
|
||||||
percent: "%"
|
percent: "%"
|
||||||
rank: "Позиция"
|
rank: "Позиция"
|
||||||
|
|
Loading…
Reference in New Issue