Commit 2f5bf885 authored by Cool Fire's avatar Cool Fire

Test for later integration of pagination

parent 751c9b4d
...@@ -35,6 +35,14 @@ class ServersController < ApplicationController ...@@ -35,6 +35,14 @@ class ServersController < ApplicationController
rescue => e rescue => e
@jobrequstcount = 0 @jobrequstcount = 0
end end
begin
if @jobcount > 0
@jobs = @server.jobs.reverse.each
end
rescue => e
flash[:error] = "Could not retrieve server jobs".
end
end end
......
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
<td>Arguments</td> <td>Arguments</td>
<td>Result</td> <td>Result</td>
</tr> </tr>
<% @server.jobs.reverse.each do |job| %> <% @jobs do |job| %>
<tr class='jobstatus<%= job.state %>'> <tr class='jobstatus<%= job.state %>'>
<td><%= job.id %></td> <td><%= job.id %></td>
<td><%= showtime(job.timestampstarted) %></td> <td><%= showtime(job.timestampstarted) %></td>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment