mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-15 20:54:03 +00:00
Merge pull request #173 from ChrisBr/new_dashboard
Implements event submissions over time chart
This commit is contained in:
commit
fa129de063
12 changed files with 215 additions and 9 deletions
|
|
@ -1,7 +1,22 @@
|
|||
.row
|
||||
%h1 Global Dashboard
|
||||
%hr
|
||||
.row
|
||||
%ul
|
||||
- @conferences.each do |conference|
|
||||
%li= link_to conference.title, admin_conference_path(conference.short_title)
|
||||
.col-md-12
|
||||
.well
|
||||
.row
|
||||
.text-center
|
||||
%h4 Event submissions over time
|
||||
.row
|
||||
.submissionsChart{"data-chart"=>"#{@result.to_json}", "data-conferences"=>"#{@conferences.to_json}", "data-weeks"=>"#{@weeks.to_json}"}
|
||||
%canvas#chart
|
||||
.row
|
||||
.text-center
|
||||
weeks
|
||||
.row
|
||||
.conferenceCheckboxes
|
||||
- @conferences.each do |conference|
|
||||
%div
|
||||
%span{"style"=>"border-bottom: 3px solid #{conference.color};"}
|
||||
- if conference.pending?
|
||||
%input{"type"=>"checkbox", "name"=>"#{conference.short_title}", "checked"=>"checked"}
|
||||
- else
|
||||
%input{"type"=>"checkbox", "name"=>"#{conference.short_title}"}
|
||||
#{conference.short_title}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue