Skip to content

Commit ece8019

Browse files
committed
minor fix for audit log table wrapping
1 parent 7f107ed commit ece8019

1 file changed

Lines changed: 27 additions & 25 deletions

File tree

Lines changed: 27 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,33 @@
11
<table class="table is-full-width is-with-hover">
22
<thead>
3-
<tr>
4-
<th><%= t('g.type').capitalize %></th>
5-
<th><%= t('g.event').capitalize %></th>
6-
<th><%= t('g.user').capitalize %></th>
7-
<th><%= t('g.related').capitalize %></th>
8-
<th><%= t('g.comment').capitalize %></th>
9-
<th><%= t('g.created').capitalize %></th>
10-
</tr>
3+
<tr>
4+
<th><%= t('g.type').capitalize %></th>
5+
<th><%= t('g.event').capitalize %></th>
6+
<th><%= t('g.user').capitalize %></th>
7+
<th><%= t('g.related').capitalize %></th>
8+
<th><%= t('g.comment').capitalize %></th>
9+
<th><%= t('g.created').capitalize %></th>
10+
</tr>
1111
</thead>
1212
<tbody>
13-
<% @logs.each do |log| %>
14-
<tr>
15-
<td><%= log.log_type.humanize %></td>
16-
<td><%= log.event_type.humanize %></td>
17-
<td><%= user_link log.user %></td>
18-
<td>
19-
<% if log.related.present? %>
20-
<%= log.related_type %> #<%= log.related_id %>
21-
<% if log.related.respond_to? :name %>
22-
(<%= log.related.name %>)
13+
<% @logs.each do |log| %>
14+
<tr>
15+
<td class="wrap-word"><%= log.log_type.humanize %></td>
16+
<td class="wrap-word"><%= log.event_type.humanize %></td>
17+
<td><%= user_link log.user %></td>
18+
<td class="wrap-word">
19+
<% if log.related.present? %>
20+
<%= log.related_type %> #<%= log.related_id %>
21+
<% if log.related.respond_to? :name %>
22+
(<%= log.related.name %>)
23+
<% end %>
2324
<% end %>
24-
<% end %>
25-
</td>
26-
<td><pre class="pre-wrap"><%= log.comment %></pre></td>
27-
<td title="<%= log.created_at.iso8601 %>"><%= time_ago_in_words(log.created_at) %> ago</td>
28-
</tr>
29-
<% end %>
25+
</td>
26+
<td>
27+
<pre class="pre-wrap"><%= log.comment %></pre>
28+
</td>
29+
<td title="<%= log.created_at.iso8601 %>"><%= time_ago_in_words(log.created_at) %> ago</td>
30+
</tr>
31+
<% end %>
3032
</tbody>
31-
</table>
33+
</table>

0 commit comments

Comments
 (0)