Skip to content

Commit 67174e6

Browse files
committed
minor cleanup of the mod_warning/log view
1 parent 324b5f8 commit 67174e6

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

app/views/mod_warning/log.html.erb

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,15 @@
1414
<span title="<%= w.created_at.iso8601 %>"><%= time_ago_in_words(w.created_at) %> ago</span>
1515
</td>
1616
<td>
17-
<% if w.is_suspension %>
17+
<% if w.suspension? %>
1818
<% diff = ((w.suspension_end - w.created_at) / (3600 * 24)).to_i %>
1919
<span class="badge is-tag is-red is-filled nowrap">Suspension</span> (<%= diff %>d)
2020
<% else %>
2121
<span class="badge is-tag is-muted nowrap">Warning</span>
2222
<% end %>
2323
</td>
24-
<td>
25-
<%= user_link w.author %>
26-
</td>
27-
<td>
28-
<%= raw(sanitize(render_markdown(w.body), scrubber: scrubber)) %>
29-
</td>
24+
<td><%= user_link w.author %></td>
25+
<td><%= raw(sanitize(render_markdown(w.body), scrubber: scrubber)) %></td>
3026
<td class="wrap-word">
3127
<% if w.suspension_active? %>
3228
<strong>Current</strong>

0 commit comments

Comments
 (0)