2014-10-15 01:07:40 +03:00
|
|
|
- content_for :title
|
2016-10-09 00:23:17 +03:00
|
|
|
= t '.summary'
|
|
|
|
|
2014-10-15 01:07:40 +03:00
|
|
|
.row
|
|
|
|
.col-lg-12
|
|
|
|
h1.page-header
|
|
|
|
= @conference.title
|
2016-07-05 18:03:48 +03:00
|
|
|
.pull-right
|
2016-10-11 03:14:36 +03:00
|
|
|
- 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'
|
2016-10-11 03:13:04 +03:00
|
|
|
.btn-group.btn-group-sm<
|
|
|
|
= 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
|
|
|
|
|
2014-10-15 01:07:40 +03:00
|
|
|
.row
|
|
|
|
.col-lg-3.col-md-6
|
|
|
|
.panel.panel-primary
|
|
|
|
.panel-heading
|
|
|
|
.row
|
|
|
|
.col-xs-3
|
2015-04-09 00:10:04 +03:00
|
|
|
= icon 'files-o', '', class: 'fa-5x'
|
2014-10-15 01:07:40 +03:00
|
|
|
.col-xs-9.text-right
|
|
|
|
.huge
|
|
|
|
= @conference.events.count
|
|
|
|
div
|
|
|
|
= t Event.model_name.human(count: @conference.events.count)
|
2015-05-30 17:07:57 +03:00
|
|
|
|
2015-07-19 11:44:44 +03:00
|
|
|
= link_to [:management, @conference, :events] do
|
2014-10-15 01:07:40 +03:00
|
|
|
.panel-footer.text-primary
|
|
|
|
span.pull-left = t 'views.conference.see_details'
|
2015-04-09 00:10:04 +03:00
|
|
|
span.pull-right = icon 'arrow-circle-right'
|
2014-10-15 01:07:40 +03:00
|
|
|
span.clearfix
|
2015-05-30 17:07:57 +03:00
|
|
|
|
2014-10-15 01:07:40 +03:00
|
|
|
.col-lg-3.col-md-6
|
|
|
|
.panel.panel-danger
|
|
|
|
.panel-heading
|
|
|
|
.row
|
|
|
|
.col-xs-3
|
2015-04-09 00:10:04 +03:00
|
|
|
= icon 'thumbs-down', '', class: 'fa-5x'
|
2014-10-15 01:07:40 +03:00
|
|
|
.col-xs-9.text-right
|
|
|
|
.huge
|
2015-10-22 00:04:38 +03:00
|
|
|
= @conference.events.joins(:proposition).rejected.count
|
2014-10-15 01:07:40 +03:00
|
|
|
div
|
2015-10-22 00:04:38 +03:00
|
|
|
= t 'event_states.rejected', count: @conference.events.joins(:proposition).rejected.count
|
2016-10-11 04:33:22 +03:00
|
|
|
= link_to management_conference_events_path(@conference, filters: {status: 2})
|
2014-10-15 01:07:40 +03:00
|
|
|
.panel-footer.text-danger
|
|
|
|
span.pull-left = t 'views.conference.see_details'
|
2015-04-09 00:10:04 +03:00
|
|
|
span.pull-right = icon 'arrow-circle-right'
|
2014-10-15 01:07:40 +03:00
|
|
|
span.clearfix
|
2015-05-30 17:07:57 +03:00
|
|
|
|
2014-10-15 01:07:40 +03:00
|
|
|
.col-lg-3.col-md-6
|
|
|
|
.panel.panel-info
|
|
|
|
.panel-heading
|
|
|
|
.row
|
|
|
|
.col-xs-3
|
2015-04-09 00:10:04 +03:00
|
|
|
= icon 'thumbs-up', class: 'fa-5x'
|
2014-10-15 01:07:40 +03:00
|
|
|
.col-xs-9.text-right
|
|
|
|
.huge
|
2015-10-22 00:04:38 +03:00
|
|
|
= @conference.events.joins(:proposition).approved.count
|
2014-10-15 01:07:40 +03:00
|
|
|
div
|
2015-10-22 00:04:38 +03:00
|
|
|
= t 'event_states.approved', count: @conference.events.joins(:proposition).approved.count
|
2016-10-11 04:33:22 +03:00
|
|
|
= link_to management_conference_events_path(@conference, filters: {status: 1})
|
2014-10-15 01:07:40 +03:00
|
|
|
.panel-footer.text-info
|
|
|
|
span.pull-left = t 'views.conference.see_details'
|
2015-04-09 00:10:04 +03:00
|
|
|
span.pull-right = icon 'arrow-circle-right'
|
2014-10-15 01:07:40 +03:00
|
|
|
span.clearfix
|
|
|
|
.col-lg-3.col-md-6
|
|
|
|
.panel.panel-success
|
|
|
|
.panel-heading
|
|
|
|
.row
|
|
|
|
.col-xs-3
|
2015-04-09 00:10:04 +03:00
|
|
|
= icon 'check', '', class: 'fa-5x'
|
2014-10-15 01:07:40 +03:00
|
|
|
.col-xs-9.text-right
|
|
|
|
.huge
|
2015-10-22 00:04:38 +03:00
|
|
|
= @conference.events.joins(:proposition).approved.confirmed.count
|
2014-10-15 01:07:40 +03:00
|
|
|
div
|
2015-10-22 00:04:38 +03:00
|
|
|
= t 'event_states.confirmed', count: @conference.events.joins(:proposition).approved.confirmed.count
|
2016-10-11 04:33:22 +03:00
|
|
|
= link_to '#'
|
2014-10-15 01:07:40 +03:00
|
|
|
.panel-footer.text-success
|
|
|
|
span.pull-left = t 'views.conference.see_details'
|
2015-04-09 00:10:04 +03:00
|
|
|
span.pull-right = icon 'arrow-circle-right'
|
2014-10-15 01:07:40 +03:00
|
|
|
span.clearfix
|
2014-10-15 12:58:00 +03:00
|
|
|
.row
|
|
|
|
.col-lg-12
|
2015-04-20 19:11:39 +03:00
|
|
|
.submissions-chart#submissions-chart data-submissions="#{submissions_chart_data(@conference).to_json}"
|
2016-10-11 05:16:31 +03:00
|
|
|
- if @conference.has_voting_endpoint?
|
2016-10-11 01:52:19 +03:00
|
|
|
hr
|
|
|
|
.row
|
|
|
|
.col-lg-12
|
|
|
|
h2
|
|
|
|
=> t '.voting_results'
|
|
|
|
small
|
2016-10-11 02:33:39 +03:00
|
|
|
- if @conference.has_vote_results?
|
2016-10-11 01:52:19 +03:00
|
|
|
= t '.vote_data_updated_at', updated_at: l(@conference.vote_data_updated_at, format: :long)
|
|
|
|
.panel.panel-default
|
|
|
|
table.table.table-striped.table-hover.record-table
|
2016-10-11 02:33:39 +03:00
|
|
|
- if @conference.has_vote_results?
|
2016-10-11 01:52:19 +03:00
|
|
|
thead
|
|
|
|
tr
|
|
|
|
th.text-right = t('.rank')
|
|
|
|
th = Event.model_name.human.mb_chars.capitalize
|
2016-10-15 20:28:09 +03:00
|
|
|
th = Event.human_attribute_name :status
|
2016-10-11 01:52:19 +03:00
|
|
|
th
|
|
|
|
tbody
|
2016-10-11 02:33:39 +03:00
|
|
|
- if @conference.has_vote_results?
|
2016-10-11 05:16:31 +03:00
|
|
|
- current_conference.events.order(rank: :asc).group_by(&:rank).select { |rank, _| rank.nil? or rank <= 10 }.each do |rank, events|
|
2016-10-11 01:52:19 +03:00
|
|
|
- events.each.with_index do |event, index|
|
|
|
|
tr
|
|
|
|
- if index == 0
|
2016-10-11 05:16:31 +03:00
|
|
|
- if event.ranked?
|
2016-10-15 20:28:09 +03:00
|
|
|
td.text-center rowspan="#{events.count}"
|
2016-10-11 05:16:31 +03:00
|
|
|
.large
|
|
|
|
span.label.label-info = event.rank
|
|
|
|
span title="#{t('.vote_ratio', votes: event.number_of_votes, total_votes: @conference.number_of_ballots_cast)}"
|
|
|
|
= number_to_percentage(event.per_cent_of_votes, strip_insignificant_zeros: true, precision: 2)
|
|
|
|
- else
|
2016-10-15 20:31:29 +03:00
|
|
|
td.text-center rowspan="#{events.count}"
|
2016-10-11 05:16:31 +03:00
|
|
|
.large
|
|
|
|
span.label.label-danger ×
|
|
|
|
= t('.unranked')
|
2016-10-15 20:28:09 +03:00
|
|
|
td
|
|
|
|
h4 = event.title
|
|
|
|
h5 = event.subtitle
|
|
|
|
= links_to_event_participants_for(event)
|
|
|
|
td
|
|
|
|
span class="label label-lg label-#{proposition_status_class(event.status)}"
|
|
|
|
= icon(proposition_status_glyph(event.status), t("activerecord.attributes.proposition.statuses.#{event.status}"))
|
2016-10-11 01:52:19 +03:00
|
|
|
td.actions = action_buttons(@conference, event, [:show])
|
|
|
|
- else
|
|
|
|
tr
|
|
|
|
td.text-center colspan="20"
|
|
|
|
p.large
|
|
|
|
= t '.vote_data_never_updated'
|
|
|
|
p
|
|
|
|
=< link_to update_vote_data_management_conference_path, method: :patch, class: ['btn', 'btn-primary'] do
|
|
|
|
= icon :refresh, t('.fetch_vote_results')
|
2016-10-11 02:33:39 +03:00
|
|
|
- if @conference.has_vote_results?
|
2016-10-11 01:52:19 +03:00
|
|
|
.panel-footer.text-right
|
|
|
|
.btn-group
|
|
|
|
= link_to vote_results_management_conference_path, class: ['btn', 'btn-info'] do
|
|
|
|
= icon 'list-ol', t('.full_vote_results')
|
|
|
|
= link_to update_vote_data_management_conference_path, method: :patch, class: ['btn', 'btn-primary'] do
|
|
|
|
= icon :refresh, t('.fetch_vote_results')
|