Please enable JavaScript to use RhodeCode Enterprise
Commit Description:
added contest model
Commit Description:
added contest model
class ContestManagementController < ApplicationController
before_filter :admin_authorization
def index
end
def user_stat
if not Configuration . indv_contest_mode?
redirect_to :action => 'index' and return
end
@users = User . find ( :all )
@start_times = {}
UserContestStat . find ( :all ) . each do | stat |
@start_times [ stat . user_id ] = stat . started_at
end
end
def clear_stat
user = User . find ( params [ :id ] )
if user . contest_stat! = nil
user . contest_stat . destroy
end
redirect_to :action => 'user_stat'
end
def clear_all_stat
if not Configuration . indv_contest_mode?
redirect_to :action => 'index' and return
end
UserContestStat . delete_all ()
flash [ :notice ] = 'All start time statistic cleared.'
redirect_to :action => 'index'
end
end
Site-wide shortcuts
/
Use quick search box
g h
Goto home page
g g
Goto my private gists page
g G
Goto my public gists page
n r
New repository page
n g
New gist page
Repositories
g s
Goto summary page
g c
Goto changelog page
g f
Goto files page
g F
Goto files page with file search activated
g p
Goto pull requests page
g o
Goto repository settings
g O
Goto repository permissions settings