Description:
[web] more info on grader queues
git-svn-id: http://theory.cpe.ku.ac.th/grader/web/trunk@257 6386c4cd-e34a-4fa8-8920-d93eb39b512e
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
r127:9f136d243b9c - - 2 files changed: 14 inserted, 0 deleted
@@ -13,6 +13,11 | |||
|
13 | 13 | @grader_processes = GraderProcess.find(:all, |
|
14 | 14 | :order => 'updated_at desc') |
|
15 | 15 | @stalled_processes = GraderProcess.find_stalled_process |
|
16 | + | |
|
17 | + @last_task = Task.find(:first, | |
|
18 | + :order => 'created_at DESC') | |
|
19 | + @last_test_request = TestRequest.find(:first, | |
|
20 | + :order => 'created_at DESC') | |
|
16 | 21 | end |
|
17 | 22 | |
|
18 | 23 | def clear |
@@ -6,6 +6,15 | |||
|
6 | 6 | - form_for :clear, nil, :url => {:action => 'clear_all'} do |f| |
|
7 | 7 | = submit_tag 'Clear all data' |
|
8 | 8 | |
|
9 | + Last task: | |
|
10 | + = link_to "#{@last_task.id}", :action => 'view', :id => @last_task.id, :type => 'Task' | |
|
11 | + | |
|
12 | + %br/ | |
|
13 | + | |
|
14 | + Last test_request: | |
|
15 | + = link_to "#{@last_test_request.id}", :action => 'view', :id => @last_test_request.id, :type => 'TestRequest' | |
|
16 | + | |
|
17 | + | |
|
9 | 18 | %h3 Current graders |
|
10 | 19 | |
|
11 | 20 | = render :partial => 'grader_list', :locals => {:grader_list => @grader_processes} |
You need to be logged in to leave comments.
Login now