Skip to content

Commit

Permalink
index table
Browse files Browse the repository at this point in the history
  • Loading branch information
qinmingyuan committed Oct 27, 2023
1 parent a208f7f commit 51bfbc3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions app/views/auditor/panel/audits/_index_tbody.html.erb
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<td>
<p><%= model.operator&.name %></p>
<p><time data-controller="time"><%= model.created_at.to_formatted_s(:iso8601) %></time></p>
<p><time data-controller="time" data-format="human"><%= model.created_at.to_formatted_s(:iso8601) %></time></p>
<p><%= model.action %></p>
<p><%= model.controller_path %>/<%= model.action_name %></p>
<p><%= model.remote_ip %></p>
<p><%= model.note %></p>
</td>
<td><%= model.note %></td>
<td>
<% max_width = model.audited_changes_i18n.keys.map(&:length).max %>
<% model.audited_changes_i18n.each do |key, value| %>
Expand Down
8 changes: 5 additions & 3 deletions app/views/auditor/panel/audits/_index_thead.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<th><%= Auditor::Audit.human_attribute_name(:operator) %></th>
<th><%= Auditor::Audit.human_attribute_name(:note) %></th>
<th><%= Auditor::Audit.human_attribute_name(:audited_changes) %></th>
<th>
<p><%= Auditor::Audit.human_attribute_name(:operator) %></p>
<p><%= Auditor::Audit.human_attribute_name(:note) %></p>
</th>
<th class="has-text-centered"><%= Auditor::Audit.human_attribute_name(:audited_changes) %></th>
<th><%= Auditor::Audit.human_attribute_name(:related_changes) %></th>

0 comments on commit 51bfbc3

Please sign in to comment.