Implements user and event state distribution
This commit is contained in:
parent
069cc0eb4c
commit
b25ae50908
12 changed files with 344 additions and 14 deletions
8
app/views/admin/conference/_event_distribution.html.haml
Normal file
8
app/views/admin/conference/_event_distribution.html.haml
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
.well
|
||||
.text-center
|
||||
%h4 Event distribution
|
||||
%canvas.doughnut_chart{"data-chart"=>@event_distribution.to_json}
|
||||
.row
|
||||
- if @event_distribution
|
||||
- @event_distribution.each do |key, value|
|
||||
%span{"style"=>"border-bottom: 3px solid #{value['color']}"} #{key}: #{value['value']}
|
||||
|
|
@ -4,7 +4,7 @@
|
|||
%h4 Conference registrations over time
|
||||
.row
|
||||
.registrationsChart{"data-chart"=>"#{registrations.to_json}", "data-conferences"=>"#{conferences.to_json}", "data-weeks"=>"#{registration_weeks.to_json}"}
|
||||
%canvas#registrationsChart{"data-name"=>"registrations"}
|
||||
%canvas.line_chart#registrationsChart{"data-name"=>"registrations"}
|
||||
.row
|
||||
.text-center
|
||||
weeks
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
%h4 Event submissions over time
|
||||
.row
|
||||
.submissionsChart{"data-chart"=>"#{submissions.to_json}", "data-conferences"=>"#{conferences.to_json}", "data-weeks"=>"#{cfp_weeks.to_json}"}
|
||||
%canvas#submissionsChart{"data-name"=>"submissions"}
|
||||
%canvas.line_chart#submissionsChart{"data-name"=>"submissions"}
|
||||
.row
|
||||
.text-center
|
||||
weeks
|
||||
|
|
|
|||
8
app/views/admin/conference/_user_distribution.html.haml
Normal file
8
app/views/admin/conference/_user_distribution.html.haml
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
.well
|
||||
.text-center
|
||||
%h4 User distribution
|
||||
%canvas.doughnut_chart{"data-chart"=>user_distribution.to_json}
|
||||
.row
|
||||
- if user_distribution
|
||||
- user_distribution.each do |key, value|
|
||||
%span{"style"=>"border-bottom: 3px solid #{value['color']}"} #{key}: #{value['value']}
|
||||
|
|
@ -6,11 +6,13 @@
|
|||
= render partial: 'submissions', locals: { conferences: @conferences, submissions: @submissions,
|
||||
cfp_weeks: @cfp_weeks }
|
||||
.col-md-4
|
||||
= render partial: 'event_distribution', locals: { event_distribution: @event_distribution }
|
||||
.row
|
||||
.col-md-8
|
||||
= render partial: 'registrations', locals: { conferences: @conferences, registrations: @registrations,
|
||||
registration_weeks: @registration_weeks }
|
||||
.col-md-4
|
||||
= render partial: 'user_distribution', locals: { user_distribution: @user_distribution }
|
||||
.col-md-8
|
||||
.row
|
||||
%ul.nav.nav-tabs#recentTable
|
||||
|
|
|
|||
|
|
@ -6,4 +6,6 @@
|
|||
.col-md-4
|
||||
= render partial: 'todo_list', locals: { conference_progress: @conference_progress }
|
||||
.col-md-4
|
||||
= render partial: 'top_submitter', locals: {top_submitter: @top_submitter}
|
||||
= render partial: 'top_submitter', locals: {top_submitter: @top_submitter}
|
||||
.col-md-4
|
||||
= render partial: 'event_distribution', locals: { event_distribution: @event_distribution }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue