enable ragel parser in more places
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user