Add stats about submissions

This commit is contained in:
Stella Rouzi 2013-06-30 10:30:25 +00:00
parent dc0560b848
commit 030272b28e
2 changed files with 95 additions and 0 deletions

View file

@ -12,6 +12,7 @@ class Admin::EventsController < ApplicationController
def index
@events = @conference.events
@tracks = @conference.tracks
@event_states = @events.state_machine.states.map
respond_to do |format|
format.html
format.json { render :json => Event.where(:state => :confirmed) }