Commit 2d1b88c1 authored by Marin Jankovski's avatar Marin Jankovski

Paginate audit events page and add time column.

parent 4734c3a7
......@@ -6,7 +6,7 @@ class AuditEventsController < ApplicationController
layout "project_settings"
def project_log
@events = AuditEvent.where(entity_type: "Project", entity_id: project.id)
@events = AuditEvent.where(entity_type: "Project", entity_id: project.id).page(params[:page]).per(30)
end
private
......
......@@ -12,7 +12,8 @@
%th Action
%th
%th Target
%th
%th At
%tbody
- @events.each do |event|
......@@ -25,6 +26,6 @@
%td #{raw human_text(event.details)}
%td
%td #{event.details['target_details']}
%td
%td #{event.created_at}
= paginate @events
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