burs/index: format update scripts as dtext, same as forum.
Format scripts on the BUR index page as dtext, the same way they're formatted in forum posts. This means that tags have colors and underlines, but they don't have post counts. Gathering post counts was too slow.
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
<% dtext_data = DText.preprocess(bulk_update_requests.map(&:script_with_links)) %>
|
||||
|
||||
<%= table_for bulk_update_requests, width: "100%" do |t| %>
|
||||
<% t.column "Request" do |request| %>
|
||||
<% if request.forum_post.present? %>
|
||||
@@ -6,7 +8,9 @@
|
||||
<p><%= link_to "Topic ##{request.forum_topic_id}: #{request.forum_topic.title}", request.forum_topic %></p>
|
||||
<% end %>
|
||||
|
||||
<%= script_with_line_breaks(request.script) %>
|
||||
<div class="prose">
|
||||
<%= format_text(request.script_with_links, data: dtext_data) %>
|
||||
</div>
|
||||
<% end %>
|
||||
<% t.column "Votes" do |request| %>
|
||||
<% if request.forum_post.present? %>
|
||||
|
||||
Reference in New Issue
Block a user