BURs: rename AliasAndImplicationImporter to BulkUpdateRequestProcessor.

The name AliasAndImplicationImporter is a holdover from the time before
bulk update requests existed. This was a bad name because it doesn't do
any actual importing, instead it's used for parsing and executing bulk
update requests.
This commit is contained in:
evazion
2020-05-10 22:07:27 -05:00
parent 54bae4017d
commit 49383d393a
8 changed files with 105 additions and 129 deletions

View File

@@ -1,4 +1,4 @@
<% dtext_data = DText.preprocess(bulk_update_requests.map(&:script_with_links)) %>
<% dtext_data = DText.preprocess(bulk_update_requests.map(&:processor).map(&:to_dtext)) %>
<%= table_for bulk_update_requests, width: "100%" do |t| %>
<% t.column "Request" do |request| %>
@@ -9,7 +9,7 @@
<% end %>
<div class="prose">
<%= format_text(request.script_with_links, data: dtext_data) %>
<%= format_text(request.processor.to_dtext, data: dtext_data) %>
</div>
<% end %>
<% t.column "Votes" do |request| %>

View File

@@ -14,7 +14,7 @@
<div style="margin: 1em 0;">
<h2>Script</h2>
<div class="prose">
<%= format_text @bulk_update_request.script_with_links %>
<%= format_text @bulk_update_request.processor.to_dtext %>
</div>
<%= render "bur_edit_links", bur: @bulk_update_request %>