enable ragel parser in more places

This commit is contained in:
r888888888
2016-06-22 16:31:25 -07:00
parent 945a451ca2
commit a8812beae8
4 changed files with 5 additions and 5 deletions

View File

@@ -1,5 +1,5 @@
class DtextPreviewsController < ApplicationController
def create
render :inline => "<%= format_text(params[:body]) %>"
render :inline => "<%= format_text(params[:body], :ragel => true) %>"
end
end

View File

@@ -33,7 +33,7 @@
<% if artist_commentary.translated_description.present? %>
<%= format_text(artist_commentary.translated_description, :ragel => true) %>
<% else %>
<span class="disabled"><%= format_text(artist_commentary.original_description) %></span>
<span class="disabled"><%= format_text(artist_commentary.original_description, :ragel => true) %></span>
<% end %>
</div>
</section>

View File

@@ -17,13 +17,13 @@
<td>
<h3><%= h(commentary.original_title) %></h3>
<div class="prose">
<%= format_text(commentary.original_description) %>
<%= format_text(commentary.original_description, :ragel => true) %>
</div>
</td>
<td>
<h3><%= h(commentary.translated_title) %></h3>
<div class="prose">
<%= format_text(commentary.translated_description) %>
<%= format_text(commentary.translated_description, :ragel => true) %>
</div>
</td>
</tr>

View File

@@ -4,7 +4,7 @@
<% if @artist.notes.present? && @artist.visible? %>
<div class="prose">
<%= format_text(@artist.notes) %>
<%= format_text(@artist.notes, :ragel => true) %>
</div>
<p><%= link_to "View wiki page", @artist.wiki_page %></p>