css: ensure dtext is always wrapped in .prose container.

Ensure dtext is always wrapped in a `<div class="prose">` or
`<span class="prose">` (for inline dtext) container so that dtext css is
properly applied.
This commit is contained in:
evazion
2019-09-17 00:28:41 -05:00
parent a5ef86bbe8
commit 73a4d675c0
18 changed files with 77 additions and 19 deletions

View File

@@ -28,7 +28,11 @@
</td>
<td><%= time_ago_in_words_tagged(ban.created_at) %></td>
<td><%= humanized_duration(ban.created_at, ban.expires_at) %></td>
<td class="col-expand"><%= format_text ban.reason %></td>
<td class="col-expand">
<div class="prose">
<%= format_text ban.reason %>
</div>
</td>
<td>
<% if CurrentUser.is_moderator? %>
<%= link_to "Edit", edit_ban_path(ban) %>

View File

@@ -4,7 +4,12 @@
<ul style="margin-bottom: 1em;">
<li><strong>User</strong>: <%= link_to_user(@ban.user) %></li>
<li><strong>Expires</strong>: <%= compact_time @ban.expires_at %></li>
<li><strong>Reason</strong>: <%= format_text @ban.reason %></li>
<li>
<strong>Reason</strong>:
<div class="prose">
<%= format_text @ban.reason %>
</div>
</li>
</ul>
<%= form_tag(ban_path(@ban), :method => :delete) do %>