Show More
Commit Description:
added codejom admin menu
Commit Description:
added codejom admin menu
References:
File last commit:
Show/Diff file:
Action:
app/views/codejom/index.html.haml
| 23 lines
| 618 B
| text/x-haml
| HamlLexer
|
|
r254 | %h1 Code Jom Control Panel | ||
|
r255 | %h2 Available problems | ||
%table{:class => "codejom-problems"} | ||||
%tr | ||||
- @levels.each do |level| | ||||
%th= "Level #{level} (#{@available_problems[level].length})" | ||||
%tr | ||||
- @levels.each do |level| | ||||
%td | ||||
- @available_problems[level].each do |problem| | ||||
= problem.name | ||||
%br/ | ||||
%tr | ||||
- @levels.each do |level| | ||||
%td{:class => 'random-button'} | ||||
- form_tag :action => 'random_problem', :id => level do | ||||
= submit_tag 'Random' | ||||
|
r254 | |||
%h2= "Activated problems (#{@activated_problems.length})" | ||||
- @activated_problems.each do |problem| | ||||
= problem.name | ||||