Show More
Commit Description:
Merge pull request #17 from nattee/master...
Commit Description:
Merge pull request #17 from nattee/master
upgrade to current working snapshot
References:
File last commit:
Show/Diff file:
Action:
app/views/graders/_grader_list.html.haml
| 26 lines
| 758 B
| text/x-haml
| HamlLexer
|
|
r175 | - if grader_list.length!=0 | ||
r578 | %table.table.table-striped.table-condensed | |||
|
r175 | %tr | ||
%th host | ||||
%th pid | ||||
%th mode | ||||
%th last updated | ||||
%th type | ||||
%th task | ||||
r578 | %th | |||
|
r175 | - grader_list.each do |grader| | ||
- if grader.active | ||||
- c = 'active' | ||||
- else | ||||
- c = 'inactive' | ||||
%tr{:class => c} | ||||
= render :partial => 'grader', :locals => {:grader => grader} | ||||
- if not grader.terminated | ||||
|
r203 | - if GraderScript.grader_control_enabled? | ||
r578 | %td= link_to 'stop', {:action => 'stop', :id => grader}, class: 'btn btn-danger btn-xs btn-block' | |||
|
r175 | - else | ||
r578 | %td= link_to 'clear', {:action => 'clear', :id => grader}, class: 'btn btn-danger btn-xs btn-block' | |||
|
r175 | - else | ||
%ul | ||||
%li None | ||||
|
r32 | |||