+ | <%= event.created_at.strftime("%Y-%m-%d %H:%M:%S") %> |
+ <%= event.event_type %> |
+
<% case event.event_type %>
<% when "list_item.created" %>
Created: <%= event.event_data["title"] %>
@@ -75,13 +75,13 @@
<% else %>
-
- Select User
+
+ Select User
<% @users.each do |user| %>
- <%= link_to activity_log_admin_audit_index_path(user_id: user.id), class: "block p-4 border border-gray-200 rounded-lg hover:border-indigo-500 hover:bg-indigo-50 transition-colors" do %>
- <%= user.name %>
- <%= user.email %>
+ <%= link_to activity_log_admin_audit_index_path(user_id: user.id), class: "block p-4 card hover:border-accent transition-colors" do %>
+ <%= user.name %>
+ <%= user.email %>
<% end %>
<% end %>
diff --git a/app/views/admin/audit/audit_trail.html.erb b/app/views/admin/audit/audit_trail.html.erb
index 5cb78e31..ef4fdcef 100644
--- a/app/views/admin/audit/audit_trail.html.erb
+++ b/app/views/admin/audit/audit_trail.html.erb
@@ -1,66 +1,66 @@
-
+
- Resource Audit Trail
- Complete history of changes to a specific resource
+ Resource Audit Trail
+ Complete history of changes to a specific resource
- <%= link_to "← Back to Audit", admin_audit_index_path, class: "px-4 py-2 bg-gray-100 hover:bg-gray-200 rounded-lg text-sm font-medium transition-colors" %>
+ <%= link_to "← Back to Audit", admin_audit_index_path, class: "px-4 py-2 bg-surface-raised hover:bg-surface-raised rounded-lg text-sm font-medium transition-colors" %>
-
- Organization
- <%= @organization.name %>
+
+ Organization
+ <%= @organization.name %>
<% if @resource %>
-
+
- Resource
- <%= @resource.class.name %> #<%= @resource.id %>
+ Resource
+ <%= @resource.class.name %> #<%= @resource.id %>
- Created
- <%= @resource.created_at.strftime("%Y-%m-%d %H:%M:%S") %>
+ Created
+ <%= @resource.created_at.strftime("%Y-%m-%d %H:%M:%S") %>
- Last Modified
- <%= @resource.updated_at.strftime("%Y-%m-%d %H:%M:%S") %>
+ Last Modified
+ <%= @resource.updated_at.strftime("%Y-%m-%d %H:%M:%S") %>
-
-
- Change History
+
+
+ Change History
-
+
<% @entries.each do |entry| %>
-
+
- <%= entry[:actor] || "System" %>
- <%= entry[:timestamp]&.strftime("%Y-%m-%d %H:%M:%S") %>
+ <%= entry[:actor] || "System" %>
+ <%= entry[:timestamp]&.strftime("%Y-%m-%d %H:%M:%S") %>
- v<%= entry[:version] %>
+ v<%= entry[:version] %>
<% if entry[:changes].present? %>
<% entry[:changes].each do |field, (old_val, new_val)| %>
-
- <%= field %>
- <%= old_val %> → <%= new_val %>
+
+ <%= field %>
+ <%= old_val %> → <%= new_val %>
<% end %>
<% else %>
- No changes recorded
+ No changes recorded
<% end %>
<% end %>
@@ -68,12 +68,12 @@
<% else %>
- |