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 |
/- 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
.panel.panel-info
.panel-heading
Select Task
.panel-body
.form-inline
= select 'report',
'problem_id',
@problems.collect {|p| ["[#{p.name}] #{p.full_name}", problem_hof_report_path(p)]},
{:selected => problem_hof_report_path(@problem)},
{ class: 'select2 form-control' }
%button.btn.btn-primary.btn-sm.go-button#problem_go{data: {source: "#report_problem_id"}} Go
- unless params[:id]
/=render partial: 'all_time_hof'
Please select a problem.
- else
%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)
=render partial: 'task_hof'