Show More
Commit Description:
add feature check maximum score in submission ranges...
Commit Description:
add feature check maximum score in submission ranges available in the [result] admin menu. A user can enter a range of submissions id and the maximum score per each user,problem among the submission ranges will be reported (grafted from a9d427f3be11871c9948750e94ba5ae988f24eb7)
File last commit:
Show/Diff file:
Action:
app/models/announcement.rb | 21 lines | 678 B | text/x-ruby | RubyLexer |
jittat
[web] added announcement...
r97 class Announcement < ActiveRecord::Base
jittat
added announcement to frontpage...
r151
jittat
MERGED 308:HEAD from http://theory.cpe.ku.ac.th/grader/web/branches/ytopc08-2/, removed some registration info...
r162 def self.find_published(contest_started=false)
if contest_started
Announcement.find(:all,
:conditions => "(published = 1) AND (frontpage = 0)",
:order => "created_at DESC")
else
Announcement.find(:all,
:conditions => "(published = 1) AND (frontpage = 0) AND (contest_only = 0)",
:order => "created_at DESC")
end
jittat
added announcement to frontpage...
r151 end
def self.find_for_frontpage
Announcement.find(:all,
:conditions => "(published = 1) AND (frontpage = 1)",
:order => "created_at DESC")
end
jittat
[web] added announcement...
r97 end