2014-06-03 16:27:10 +02:00
|
|
|
%h1
|
2014-08-15 18:15:13 -07:00
|
|
|
%span.fa.fa-tachometer
|
2017-07-13 04:02:13 +05:30
|
|
|
Dashboard for #{@conference.title} ( by #{@conference.organization.name} )
|
2014-06-03 16:27:10 +02:00
|
|
|
%hr
|
2014-03-17 16:36:32 +01:00
|
|
|
.row
|
2014-08-15 18:19:56 -07:00
|
|
|
.col-sm-4.col-xs-4
|
2014-06-16 13:51:43 +02:00
|
|
|
.dashbox.text-center
|
2014-08-15 18:19:56 -07:00
|
|
|
%span.fa.fa-user.fa-lg
|
|
|
|
|
%span.fa.fa-lg
|
2014-10-04 09:34:57 +02:00
|
|
|
= @total_reg
|
2014-08-15 18:19:56 -07:00
|
|
|
%p
|
|
|
|
|
%small
|
2014-10-04 09:34:57 +02:00
|
|
|
#{'Registration'.pluralize(@total_reg)}
|
|
|
|
|
- if @new_reg
|
2017-03-11 13:25:39 +05:30
|
|
|
%span.label.label-success{ title: "+#{@new_reg} since you last logged in!" }
|
2014-10-04 09:34:57 +02:00
|
|
|
+
|
|
|
|
|
= @new_reg
|
2014-08-15 18:19:56 -07:00
|
|
|
|
|
|
|
|
.col-sm-4.col-xs-4
|
2014-06-16 13:51:43 +02:00
|
|
|
.dashbox.text-center
|
2014-08-15 18:19:56 -07:00
|
|
|
%span.fa.fa-check-square.fa-lg
|
|
|
|
|
%span.fa.fa-lg
|
2014-10-04 09:34:57 +02:00
|
|
|
= @total_submissions
|
2014-08-15 18:19:56 -07:00
|
|
|
%p
|
|
|
|
|
%small
|
2014-10-04 09:34:57 +02:00
|
|
|
#{'Submission'.pluralize(@total_submissions)}
|
|
|
|
|
- if @new_submissions
|
2017-03-11 13:25:39 +05:30
|
|
|
%span.label.label-success{ title: "+#{@new_submissions} since you last logged in!" }
|
2014-10-04 09:34:57 +02:00
|
|
|
+
|
|
|
|
|
= @new_submissions
|
2014-08-15 18:19:56 -07:00
|
|
|
|
|
|
|
|
.col-sm-4.col-xs-4
|
2014-06-16 13:51:43 +02:00
|
|
|
.dashbox.text-center
|
2014-08-15 18:19:56 -07:00
|
|
|
%span.fa.fa-file-text.fa-lg
|
|
|
|
|
%span.fa.fa-lg
|
2014-10-04 09:34:57 +02:00
|
|
|
= @program_length
|
2014-08-15 18:19:56 -07:00
|
|
|
%p
|
|
|
|
|
%small
|
2014-10-04 09:34:57 +02:00
|
|
|
#{'Hour'.pluralize(@program_length)}
|
|
|
|
|
- if @new_reg
|
2017-03-11 13:25:39 +05:30
|
|
|
%span.label.label-success{ title: "+#{@new_program_length} since you last logged in!" }
|
2014-10-04 09:34:57 +02:00
|
|
|
+
|
|
|
|
|
= @new_program_length
|
2014-08-15 18:19:56 -07:00
|
|
|
|
2014-06-16 13:51:43 +02:00
|
|
|
.row
|
|
|
|
|
.col-md-12
|
|
|
|
|
.row
|
|
|
|
|
.col-md-8
|
|
|
|
|
.row#registrations
|
|
|
|
|
.col-md-12
|
|
|
|
|
= render partial: 'line_chart', locals: { title: 'Registrations over time',
|
|
|
|
|
name: 'registrations',
|
|
|
|
|
conferences: [@conference],
|
|
|
|
|
active_conferences: [@conference],
|
|
|
|
|
deactive_conferences: [],
|
|
|
|
|
y: @registrations,
|
|
|
|
|
x: @registration_weeks,
|
|
|
|
|
unit: 'weeks' }
|
|
|
|
|
.row#submissions
|
|
|
|
|
.col-md-12
|
|
|
|
|
= render partial: 'line_chart', locals: { title: 'Submissions over time',
|
|
|
|
|
name: 'submissions',
|
|
|
|
|
conferences: @submissions,
|
|
|
|
|
active_conferences: @submissions,
|
|
|
|
|
deactive_conferences: [],
|
|
|
|
|
y: @submissions_data,
|
|
|
|
|
x: @cfp_weeks,
|
|
|
|
|
unit: 'weeks' }
|
|
|
|
|
.col-md-4
|
2014-10-04 09:30:56 +02:00
|
|
|
= render partial: 'todo_list', locals: { conference_progress: @conference_progress,
|
|
|
|
|
conference: @conference }
|
2017-04-25 18:22:39 +03:00
|
|
|
.row#tickets
|
|
|
|
|
.col-md-8
|
2017-06-12 18:37:50 +05:30
|
|
|
= render partial: 'line_chart', locals: { title: 'Tickets sold over time',
|
2017-04-25 18:22:39 +03:00
|
|
|
name: 'tickets',
|
|
|
|
|
conferences: @tickets,
|
|
|
|
|
active_conferences: @tickets,
|
|
|
|
|
deactive_conferences: [],
|
|
|
|
|
y: @tickets_data,
|
|
|
|
|
x: @ticket_weeks,
|
|
|
|
|
unit: 'weeks' }
|
|
|
|
|
%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' }
|
2014-08-15 18:15:13 -07:00
|
|
|
%span.fa.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' }
|
2014-08-15 18:15:13 -07:00
|
|
|
%span.fa.fa-comment
|
2014-06-16 13:51:43 +02:00
|
|
|
Confirmed
|
|
|
|
|
.tab-content
|
|
|
|
|
.tab-pane.active#distribution_all
|
|
|
|
|
.row
|
|
|
|
|
.col-md-4
|
|
|
|
|
= render partial: 'doughnut_chart', locals: {title: 'Event types', data: @event_type_distribution}
|
|
|
|
|
.col-md-4
|
|
|
|
|
= render partial: 'doughnut_chart', locals: {title: 'Difficulty levels', data: @difficulty_levels_distribution}
|
|
|
|
|
.col-md-4
|
|
|
|
|
= render partial: 'doughnut_chart', locals: {title: 'Tracks', data: @tracks_distribution}
|
|
|
|
|
.tab-pane#distribution_confirmed
|
|
|
|
|
.row
|
|
|
|
|
.col-md-4
|
|
|
|
|
= render partial: 'doughnut_chart', locals: {title: 'Event types', data: @event_type_distribution_confirmed}
|
|
|
|
|
.col-md-4
|
|
|
|
|
= render partial: 'doughnut_chart', locals: {title: 'Difficulty levels', data: @difficulty_levels_distribution_confirmed}
|
|
|
|
|
.col-md-4
|
|
|
|
|
= render partial: 'doughnut_chart', locals: {title: 'Tracks', data: @tracks_distribution_confirmed}
|
|
|
|
|
|
|
|
|
|
.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' }
|
2014-08-15 18:15:13 -07:00
|
|
|
%span.fa.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' }
|
2014-08-15 18:15:13 -07:00
|
|
|
%span.fa.fa-file-text
|
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-26 09:08:26 +02:00
|
|
|
.row
|
|
|
|
|
.col-md-12
|
|
|
|
|
%h3
|
|
|
|
|
%span
|
2014-08-15 18:15:13 -07:00
|
|
|
%i.fa.fa-flag
|
2014-06-26 09:08:26 +02:00
|
|
|
Campaigns
|
|
|
|
|
= render partial: 'campaigns', locals: {campaigns: @campaigns, name: 'campaigns'}
|
2014-06-16 13:51:43 +02:00
|
|
|
|
|
|
|
|
:javascript
|
|
|
|
|
$('#recentTable a').click(function (e) {
|
|
|
|
|
e.preventDefault();
|
|
|
|
|
$(this).tab('show');
|
|
|
|
|
})
|