We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 324b5f8 commit 67174e6Copy full SHA for 67174e6
1 file changed
app/views/mod_warning/log.html.erb
@@ -14,19 +14,15 @@
14
<span title="<%= w.created_at.iso8601 %>"><%= time_ago_in_words(w.created_at) %> ago</span>
15
</td>
16
<td>
17
- <% if w.is_suspension %>
+ <% if w.suspension? %>
18
<% diff = ((w.suspension_end - w.created_at) / (3600 * 24)).to_i %>
19
<span class="badge is-tag is-red is-filled nowrap">Suspension</span> (<%= diff %>d)
20
<% else %>
21
<span class="badge is-tag is-muted nowrap">Warning</span>
22
<% end %>
23
24
- <td>
25
- <%= user_link w.author %>
26
- </td>
27
28
- <%= raw(sanitize(render_markdown(w.body), scrubber: scrubber)) %>
29
+ <td><%= user_link w.author %></td>
+ <td><%= raw(sanitize(render_markdown(w.body), scrubber: scrubber)) %></td>
30
<td class="wrap-word">
31
<% if w.suspension_active? %>
32
<strong>Current</strong>
0 commit comments