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
File last commit:
Show/Diff file:
Action:
app/views/graders/_grader_list.html.haml | 16 lines | 352 B | text/x-haml | HamlLexer |
%table.graders
%tr
%th ip
%th pid
%th last updated
%th task
- grader_list.each do |grader|
- if grader.active
- c = 'active'
- else
- c = 'inactive'
%tr{:class => c}
= render :partial => 'grader', :locals => {:grader => grader}
%td= link_to 'clear', {:action => 'clear', :id => grader}