Commit 36dbec3d authored by Cool Fire's avatar Cool Fire

Pagination test

parent 2604e646
......@@ -41,3 +41,6 @@ gem 'bunny', '~> 1.3.1'
# Use debugger
# gem 'debugger', group: [:development, :test]
# Pagination gem
gem 'kaminari'
\ No newline at end of file
......@@ -38,7 +38,7 @@ class ServersController < ApplicationController
begin
if @jobcount > 0
@jobs = @server.jobs.reverse
@jobs = @server.jobs.reverse.page(params[:page])
end
rescue => e
flash[:error] = "Could not retrieve server jobs".
......
......@@ -95,6 +95,7 @@
</tr>
<% end %>
</table>
<%= paginate @jobs %>
</div>
<% else %>
No jobs on this server.
......
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