enable ragel parser in more places

This commit is contained in:
r888888888
2016-07-25 13:42:04 -07:00
parent d46c6f67b8
commit 4cd6dfe884
10 changed files with 10 additions and 10 deletions

View File

@@ -16,7 +16,7 @@
<tr id="ban-<%= ban.id %>">
<td><%= link_to_user(ban.user) %></td>
<td><%= ban.expires_at %></td>
<td><%= format_text ban.reason %></td>
<td><%= format_text ban.reason, :ragel => true %></td>
<td>
<% if CurrentUser.is_moderator? %>
<%= link_to "Edit", edit_ban_path(ban) %>

View File

@@ -4,7 +4,7 @@
<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>: <%= format_text @ban.reason, :ragel => true %></li>
</ul>
<%= form_tag(ban_path(@ban), :method => :delete) do %>

View File

@@ -15,7 +15,7 @@
<h3>Body</h3>
<div class="prose">
<%= format_text(@dmail.body) %>
<%= format_text(@dmail.body, :ragel => true) %>
</div>
<p>

View File

@@ -16,7 +16,7 @@
<h3>Body</h3>
<div class="prose">
<%= format_text(@dmail.body) %>
<%= format_text(@dmail.body, :ragel => true) %>
</div>
</div>

View File

@@ -14,7 +14,7 @@
<tr>
<td><%= compact_time mod_action.created_at %></td>
<td><%= link_to_user mod_action.creator %></td>
<td><%= format_text(mod_action.description) %></td>
<td><%= format_text(mod_action.description, :ragel => true) %></td>
</tr>
<% end %>
</tbody>

View File

@@ -10,7 +10,7 @@
<% @dashboard.mod_actions.each do |mod_action| %>
<tr>
<td><%= link_to_user mod_action.creator %></td>
<td><%= format_text(mod_action.description) %></td>
<td><%= format_text(mod_action.description, :ragel => true) %></td>
</tr>
<% end %>
</tbody>

View File

@@ -11,7 +11,7 @@
<% @dashboard.user_feedbacks.each do |record| %>
<tr class="feedback-category-<%= record.category %>">
<td><%= link_to_user(record.user) %></td>
<td><%= format_text(record.body) %></td>
<td><%= format_text(record.body, :ragel => true) %></td>
<td><%= time_ago_in_words_tagged(record.created_at) %></td>
</tr>
<% end %>

View File

@@ -18,7 +18,7 @@
<tr>
<td><%= PostPresenter.preview(post_appeal.post, :tags => "status:any") %></td>
<td><%= link_to_user post_appeal.creator %></td>
<td><%= format_text post_appeal.reason %></td>
<td><%= format_text post_appeal.reason, :ragel => true %></td>
<td><%= compact_time post_appeal.updated_at %></td>
<td><%= post_appeal.resolved? %></td>
</tr>

View File

@@ -23,7 +23,7 @@
<%= link_to_user event.creator %>
</td>
<% end %>
<td><%= format_text event.reason %></td>
<td><%= format_text event.reason, :ragel => true %></td>
<td>
<% if event.is_resolved %>
yes

View File

@@ -23,7 +23,7 @@
<%= link_to_user post_flag.creator %>
</td>
<% end %>
<td><%= format_text post_flag.reason %></td>
<td><%= format_text post_flag.reason, :ragel => true %></td>
<td><%= compact_time post_flag.updated_at %></td>
</tr>
<% end %>