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/helpers/main_helper.rb | 19 lines | 505 B | text/x-ruby | RubyLexer |
module MainHelper
def link_to_description_if_any(name, problem, options={})
if !problem.url.blank?
return link_to name, problem.url, options
elsif !problem.description_filename.blank?
basename, ext = problem.description_filename.split('.')
options[:controller] = 'tasks'
options[:action] = 'download'
options[:id] = problem.id
options[:file] = basename
options[:ext] = ext
return link_to name, options
else
return ''
end
end
end