Show More
Commit Description:
allow ta to set model submission
Commit Description:
allow ta to set model submission
References:
File last commit:
Show/Diff file:
Action:
app/views/report/problem_hof.html.haml
| 30 lines
| 882 B
| text/x-haml
| HamlLexer
|
r425 | ||||
/- if params[:id] | ||||
/ %h1 Tasks Hall of Fame | ||||
/ = link_to('[back to All-Time Hall of Fame]', action: 'problem_hof', id: nil ) | ||||
/- else | ||||
/ %h1 All-Time Hall of Fame | ||||
r560 | .panel.panel-info | |||
.panel-heading | ||||
Select Task | ||||
.panel-body | ||||
.form-inline | ||||
= select 'report', | ||||
'problem_id', | ||||
r765 | @problems.collect {|p| ["[#{p.name}] #{p.full_name}", problem_hof_report_path(p)]}, | |||
r763 | {:selected => problem_hof_report_path(@problem)}, | |||
r560 | { class: 'select2 form-control' } | |||
%button.btn.btn-primary.btn-sm.go-button#problem_go{data: {source: "#report_problem_id"}} Go | ||||
r425 | ||||
r400 | ||||
r425 | - unless params[:id] | |||
/=render partial: 'all_time_hof' | ||||
Please select a problem. | ||||
- else | ||||
r856 | %h1 | |||
[#{Problem.find(params[:id]).name}] #{Problem.find(params[:id]).full_name} | ||||
- if @current_user.has_role?('ta') | ||||
%a{href:stat_problem_path(@problem)} (stat) | ||||
r560 | =render partial: 'task_hof' | |||
r400 | ||||