2014-06-03 16:27:10 +02:00
|
|
|
%h1
|
2022-05-18 06:31:12 +02:00
|
|
|
%span.fa-solid.fa-gauge-high
|
2017-07-25 08:16:44 +05:30
|
|
|
Dashboard for #{@conference.title}
|
2014-06-03 16:27:10 +02:00
|
|
|
%hr
|
2014-03-17 16:36:32 +01:00
|
|
|
.row
|
2018-02-18 16:17:29 -03:00
|
|
|
.col-sm-3.col-xs-3
|
2018-12-19 12:59:52 -08:00
|
|
|
= render "big_statistic",
|
2018-09-26 12:23:59 -07:00
|
|
|
icon: "user", subtitle: "Registration", value: @total_reg, delta: @new_reg
|
2018-02-18 16:17:29 -03:00
|
|
|
.col-sm-3.col-xs-3
|
2018-12-19 12:59:52 -08:00
|
|
|
= render "big_statistic",
|
2022-05-18 06:31:12 +02:00
|
|
|
icon: "square-check", subtitle: "Submission", value: @total_submissions, delta: @new_submissions
|
2018-02-18 16:17:29 -03:00
|
|
|
.col-sm-3.col-xs-3
|
2018-12-19 12:59:52 -08:00
|
|
|
= render "big_statistic",
|
2022-05-18 06:31:12 +02:00
|
|
|
icon: "file-lines", subtitle: "Hour", value: @program_length, delta: @new_program_length
|
2018-02-18 16:17:29 -03:00
|
|
|
.col-sm-3.col-xs-3
|
2018-12-19 12:59:52 -08:00
|
|
|
= render "big_statistic",
|
2022-05-18 06:31:12 +02:00
|
|
|
icon: "box-archive", subtitle: "Withdrawn", value: @total_withdrawn, delta: @new_withdrawn
|
2018-02-18 16:17:29 -03:00
|
|
|
|
2014-06-16 13:51:43 +02:00
|
|
|
.row
|
|
|
|
|
.col-md-12
|
|
|
|
|
.row
|
|
|
|
|
.col-md-8
|
|
|
|
|
.row#registrations
|
|
|
|
|
.col-md-12
|
2018-12-19 12:59:52 -08:00
|
|
|
= render 'line_chart',
|
|
|
|
|
title: 'Registrations per week', data: @registrations
|
2014-06-16 13:51:43 +02:00
|
|
|
.row#submissions
|
|
|
|
|
.col-md-12
|
2018-12-19 12:59:52 -08:00
|
|
|
= render 'line_chart',
|
|
|
|
|
title: 'Submissions per week', data: @submissions
|
2014-06-16 13:51:43 +02:00
|
|
|
.col-md-4
|
2018-12-19 12:59:52 -08:00
|
|
|
= render 'todo_list',
|
|
|
|
|
conference_progress: @conference_progress, conference: @conference
|
2017-04-25 18:22:39 +03:00
|
|
|
.row#tickets
|
|
|
|
|
.col-md-8
|
2018-12-19 12:59:52 -08:00
|
|
|
= render 'line_chart',
|
|
|
|
|
title: 'Tickets sold per week', data: @tickets
|
2017-04-25 18:22:39 +03:00
|
|
|
%br
|
2014-06-16 13:51:43 +02:00
|
|
|
.row
|
|
|
|
|
.col-md-12#doughnut
|
|
|
|
|
%ul.nav.nav-tabs#doughnut_tabs
|
|
|
|
|
%li.active
|
2017-03-11 13:25:39 +05:30
|
|
|
%a{ href: '#distribution_all', 'data-toggle' => 'tab' }
|
2022-05-18 06:31:12 +02:00
|
|
|
%span.fa-solid.fa-star
|
2014-06-16 13:51:43 +02:00
|
|
|
All
|
|
|
|
|
%li
|
2017-03-11 13:25:39 +05:30
|
|
|
%a{ href: '#distribution_confirmed', 'data-toggle' => 'tab' }
|
2022-05-18 06:31:12 +02:00
|
|
|
%span.fa-solid.fa-comment
|
2014-06-16 13:51:43 +02:00
|
|
|
Confirmed
|
2018-02-18 16:17:29 -03:00
|
|
|
%li
|
|
|
|
|
%a{ href: '#distribution_withdrawn', 'data-toggle' => 'tab' }
|
2022-05-18 06:31:12 +02:00
|
|
|
%span.fa-solid.fa-box-archive
|
2018-02-18 16:17:29 -03:00
|
|
|
Withdrawn
|
2014-06-16 13:51:43 +02:00
|
|
|
.tab-content
|
|
|
|
|
.tab-pane.active#distribution_all
|
|
|
|
|
.row
|
|
|
|
|
.col-md-4
|
2018-12-19 12:59:52 -08:00
|
|
|
= render 'donut_chart', title: 'Event types',
|
|
|
|
|
combined_data: @event_type_distribution
|
2014-06-16 13:51:43 +02:00
|
|
|
.col-md-4
|
2018-12-19 12:59:52 -08:00
|
|
|
= render 'donut_chart', title: 'Difficulty levels',
|
|
|
|
|
combined_data: @difficulty_levels_distribution
|
2014-06-16 13:51:43 +02:00
|
|
|
.col-md-4
|
2018-12-19 12:59:52 -08:00
|
|
|
= render 'donut_chart', title: 'Tracks',
|
|
|
|
|
combined_data: @tracks_distribution
|
2014-06-16 13:51:43 +02:00
|
|
|
.tab-pane#distribution_confirmed
|
|
|
|
|
.row
|
|
|
|
|
.col-md-4
|
2018-12-19 12:59:52 -08:00
|
|
|
= render 'donut_chart', title: 'Event types',
|
|
|
|
|
combined_data: @event_type_distribution_confirmed
|
2014-06-16 13:51:43 +02:00
|
|
|
.col-md-4
|
2018-12-19 12:59:52 -08:00
|
|
|
= render 'donut_chart', title: 'Difficulty levels',
|
|
|
|
|
combined_data: @difficulty_levels_distribution_confirmed
|
2014-06-16 13:51:43 +02:00
|
|
|
.col-md-4
|
2018-12-19 12:59:52 -08:00
|
|
|
= render 'donut_chart', title: 'Tracks',
|
|
|
|
|
combined_data: @tracks_distribution_confirmed
|
2018-02-18 16:17:29 -03:00
|
|
|
.tab-pane#distribution_withdrawn
|
|
|
|
|
.row
|
|
|
|
|
.col-md-4
|
2018-12-19 12:59:52 -08:00
|
|
|
= render 'donut_chart', title: 'Event types',
|
|
|
|
|
combined_data: @event_type_distribution_withdrawn
|
2018-02-18 16:17:29 -03:00
|
|
|
.col-md-4
|
2018-12-19 12:59:52 -08:00
|
|
|
= render 'donut_chart', title: 'Difficulty levels',
|
|
|
|
|
combined_data: @difficulty_levels_distribution_withdrawn
|
2018-02-18 16:17:29 -03:00
|
|
|
.col-md-4
|
2018-12-19 12:59:52 -08:00
|
|
|
= render 'donut_chart', title: 'Tracks',
|
|
|
|
|
combined_data: @tracks_distribution_withdrawn
|
2014-06-16 13:51:43 +02:00
|
|
|
|
|
|
|
|
.row
|
|
|
|
|
.col-md-8
|
|
|
|
|
%ul.nav.nav-tabs#recentTable
|
2017-03-21 21:08:53 +02:00
|
|
|
%li{ 'class' => "active #{hidden_if_conference_over(@conference)}" }
|
2017-03-11 13:25:39 +05:30
|
|
|
%a{ href: '#recent_reg', 'data-toggle' => 'tab' }
|
2022-05-18 06:31:12 +02:00
|
|
|
%span.fa-solid.fa-user
|
2014-06-16 13:51:43 +02:00
|
|
|
Recent Registrations
|
2017-03-21 21:08:53 +02:00
|
|
|
%li{ 'class' => "#{hidden_if_conference_over(@conference)}" }
|
2017-03-11 13:25:39 +05:30
|
|
|
%a{ href: '#recent_submissions', 'data-toggle' => 'tab' }
|
2022-05-18 06:31:12 +02:00
|
|
|
%span.fa-solid.fa-file-lines
|
2014-06-16 13:51:43 +02:00
|
|
|
Recent Submissions
|
|
|
|
|
.tab-content
|
|
|
|
|
.tab-pane.active#recent_reg
|
|
|
|
|
= render partial: 'recent_registrations', locals: {recent_registrations: @recent_registrations}
|
|
|
|
|
.tab-pane#recent_submissions
|
|
|
|
|
= render partial: 'recent_submissions', locals: {recent_events: @recent_events}
|
2014-06-04 16:11:33 +02:00
|
|
|
.col-md-4
|
2014-06-11 09:31:13 +02:00
|
|
|
= render partial: 'top_submitter', locals: {top_submitter: @top_submitter}
|
2014-06-16 13:51:43 +02:00
|
|
|
|
|
|
|
|
:javascript
|
|
|
|
|
$('#recentTable a').click(function (e) {
|
|
|
|
|
e.preventDefault();
|
|
|
|
|
$(this).tab('show');
|
|
|
|
|
})
|