Show More
Commit Description:
refactor to partials...
Commit Description:
refactor to partials
git-svn-id: http://theory.cpe.ku.ac.th/grader/web/trunk@62 6386c4cd-e34a-4fa8-8920-d93eb39b512e
References:
File last commit:
Show/Diff file:
Action:
app/views/main/_submission.html.haml
| 16 lines
| 516 B
| text/x-haml
| HamlLexer
|
|
r33 | |||
- if count==0 | ||||
0 submission | ||||
- else | ||||
= count | ||||
submission(s). | ||||
Last on | ||||
= format_short_time(submission.submitted_at) | ||||
= link_to('[source]',{:action => 'get_source', :id => submission.id}) | ||||
%br/ | ||||
- if submission!=nil and submission.graded_at!=nil | ||||
= "Graded at #{format_short_time(submission.graded_at)}, " | ||||
= "score: #{submission.points} " | ||||
= " [" + submission.grader_comment + "]" | ||||
%br/ | ||||
= render :partial => 'compiler_message', :locals => {:compiler_message => submission.compiler_message } | ||||