Show More
Commit Description:
add announcement controller test
Commit Description:
add announcement controller test
References:
File last commit:
Show/Diff file:
Action:
app/views/main/_problem.html.haml
| 18 lines
| 781 B
| text/x-haml
| HamlLexer
|
r565 | %tr | |||
%td | ||||
= "#{problem.name}" | ||||
%td | ||||
= "#{problem.full_name}" | ||||
r587 | %br | |||
r565 | = link_to_description_if_any "[#{t 'main.problem_desc'}] <span class='glyphicon glyphicon-file'></span>".html_safe, problem | |||
r567 | %td | |||
r565 | = @prob_submissions[problem.id][:count] | |||
r573 | = link_to "[subs]", main_submission_path(problem.id) | |||
r565 | %td | |||
= render :partial => 'submission_short', | ||||
r596 | :locals => {:submission => @prob_submissions[problem.id][:submission], :problem_name => problem.name, :problem_id => problem.id } | |||
r567 | %td | |||
r578 | - if @prob_submissions[problem.id][:submission] | |||
r597 | = link_to 'Edit', edit_submission_path(@prob_submissions[problem.id][:submission]), class: 'btn btn-success' | |||
r578 | - else | |||
r597 | = link_to 'New', direct_edit_problem_submissions_path(problem.id), class: 'btn btn-success' | |||