enable ragel parser for remaining dtext endpoints
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
</div>
|
||||
<div class="content">
|
||||
<div class="prose">
|
||||
<%= format_text(forum_post.body) %>
|
||||
<%= format_text(forum_post.body, :ragel => true) %>
|
||||
</div>
|
||||
<% if forum_post.updated_at - forum_post.created_at > 5.minutes %>
|
||||
<p class="info">Updated by <%= link_to_user forum_post.updater %> <%= time_ago_in_words_tagged(forum_post.updated_at) %></p>
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
</h1>
|
||||
|
||||
<div id="description" class="prose">
|
||||
<%= format_text(@pool.description) %>
|
||||
<%= format_text(@pool.description, :ragel => true) %>
|
||||
</div>
|
||||
|
||||
<%= render "posts/partials/common/inline_blacklist" %>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<%= format_text(WikiPage.titled(Danbooru.config.appeal_notice_wiki_page).first.try(&:body)) %>
|
||||
<%= format_text(WikiPage.titled(Danbooru.config.appeal_notice_wiki_page).first.try(&:body), :ragel => true) %>
|
||||
|
||||
<%= form_tag(post_appeals_path(:format => :js), :remote => true) do %>
|
||||
<%= hidden_field_tag "post_appeal[post_id]", @post_appeal.post_id %>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<%= format_text(WikiPage.titled(Danbooru.config.flag_notice_wiki_page).first.try(&:body)) %>
|
||||
<%= format_text(WikiPage.titled(Danbooru.config.flag_notice_wiki_page).first.try(&:body), :ragel => true) %>
|
||||
|
||||
<p>Enter a reason:</p>
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<% if post_set.artist.visible? %>
|
||||
<% unless post_set.artist.notes.blank? %>
|
||||
<div class="prose">
|
||||
<%= format_text(post_set.artist.notes) %>
|
||||
<%= format_text(post_set.artist.notes, :ragel => true) %>
|
||||
</div>
|
||||
|
||||
<p><%= link_to "View wiki page", post_set.artist.wiki_page %></p>
|
||||
@@ -49,7 +49,7 @@
|
||||
<p><%= wiki_page_other_names_list(post_set.wiki_page) %></p>
|
||||
<% end %>
|
||||
|
||||
<%= format_text(post_set.wiki_page.presenter.excerpt) %>
|
||||
<%= format_text(post_set.wiki_page.presenter.excerpt, :ragel => true) %>
|
||||
|
||||
<% if post_set.wiki_page.artist %>
|
||||
<p><%= link_to "View artist", post_set.wiki_page.artist %></p>
|
||||
@@ -69,7 +69,7 @@
|
||||
</h4>
|
||||
|
||||
<div id="description" class="prose">
|
||||
<%= format_text(post_set.pool.description) %>
|
||||
<%= format_text(post_set.pool.description, :ragel => true) %>
|
||||
</div>
|
||||
|
||||
<p><%= link_to "View pool", pool_path(post_set.pool.id) %></p>
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
<li><strong>Creator</strong> <%= link_to_user @tag_alias.creator %></li>
|
||||
<li><strong>Date</strong> <%= @tag_alias.created_at %></li>
|
||||
<% if @tag_alias.respond_to?(:reason) && @tag_alias.reason.present? %>
|
||||
<li><strong>Reason</strong> <%= format_text @tag_alias.reason %></li>
|
||||
<li><strong>Reason</strong> <%= format_text @tag_alias.reason, :ragel => true %></li>
|
||||
<% end %>
|
||||
</ul>
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
<li><strong>Creator</strong> <%= link_to_user @tag_implication.creator %></li>
|
||||
<li><strong>Date</strong> <%= @tag_implication.created_at %></li>
|
||||
<% if @tag_implication.respond_to?(:reason) && @tag_implication.reason.present? %>
|
||||
<li><strong>Reason</strong> <%= format_text @tag_implication.reason %></li>
|
||||
<li><strong>Reason</strong> <%= format_text @tag_implication.reason, :ragel => true %></li>
|
||||
<% end %>
|
||||
</ul>
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
<% if CurrentUser.can_upload? %>
|
||||
<div id="upload-guide-notice">
|
||||
<%= format_text(@upload_notice_wiki.try(&:body)) %>
|
||||
<%= format_text(@upload_notice_wiki.try(&:body), :ragel => true) %>
|
||||
</div>
|
||||
|
||||
<% unless CurrentUser.can_upload_free? %>
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
<td><%= link_to_user feedback.user %></td>
|
||||
<td><%= link_to_user feedback.creator %></td>
|
||||
<td><%= compact_time(feedback.created_at) %></td>
|
||||
<td><%= format_text(feedback.body) %></td>
|
||||
<td><%= format_text(feedback.body, :ragel => true) %></td>
|
||||
<td>
|
||||
<% if feedback.editable_by?(CurrentUser.user) %>
|
||||
<%= link_to "edit", edit_user_feedback_path(feedback) %>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
<li><strong>Creator</strong> <%= link_to_user @user_feedback.creator %></li>
|
||||
<li><strong>Date</strong> <%= @user_feedback.created_at %></li>
|
||||
<li><strong>Category</strong> <%= @user_feedback.category %></li>
|
||||
<li><strong>Message</strong> <%= format_text @user_feedback.body %></li>
|
||||
<li><strong>Message</strong> <%= format_text @user_feedback.body, :ragel => true %></li>
|
||||
</ul>
|
||||
|
||||
<% if @user_feedback.editable_by?(CurrentUser.user) %>
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<p>
|
||||
<strong><%= forum_post.creator_name %> said:</strong>
|
||||
</p>
|
||||
<%= format_text(forum_post.body) %>
|
||||
<%= format_text(forum_post.body, :ragel => true) %>
|
||||
<br>
|
||||
<hr>
|
||||
<br>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<div class="ui-corner-all ui-state-error" id="ban-notice">
|
||||
<h1>Your account has been temporarily banned</h1>
|
||||
<p>Reason: <%= format_text CurrentUser.user.recent_ban.reason %></p>
|
||||
<p>Reason: <%= format_text CurrentUser.user.recent_ban.reason, :ragel => true %></p>
|
||||
<p>Your ban will expire in <%= time_ago_in_words(CurrentUser.user.recent_ban.expires_at) %></p>
|
||||
</div>
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
<% if user.is_banned? && user.recent_ban %>
|
||||
<tr>
|
||||
<th>Ban reason</th>
|
||||
<td><%= format_text presenter.ban_reason %></td>
|
||||
<td><%= format_text presenter.ban_reason, :ragel => true %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
<p><%= wiki_page_other_names_list(@wiki_page_version) %></p>
|
||||
<% end %>
|
||||
|
||||
<%= format_text(@wiki_page_version.body) %>
|
||||
<%= format_text(@wiki_page_version.body, :ragel => true) %>
|
||||
<% else %>
|
||||
<p>The artist has requested removal of this page.</p>
|
||||
<% end %>
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
<p><%= wiki_page_other_names_list(@wiki_page) %></p>
|
||||
<% end %>
|
||||
|
||||
<%= format_text(@wiki_page.body) %>
|
||||
<%= format_text(@wiki_page.body, :ragel => true) %>
|
||||
|
||||
<% if @wiki_page.artist %>
|
||||
<p><%= link_to "View artist", @wiki_page.artist %></p>
|
||||
|
||||
Reference in New Issue
Block a user