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 class DtextPreviewsController < ApplicationController
def create def create
render :inline => "<%= format_text(params[:body]) %>" render :inline => "<%= format_text(params[:body], :ragel => true) %>"
end end
end end

View File

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

View File

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

View File

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