Skip to content

Commit

Permalink
Merge pull request #1871 from mysociety/1870-add-request-to-excel-ana…
Browse files Browse the repository at this point in the history
…lyzer-emails

[ExcelAnalyzer] Add admin request link to email notifications
  • Loading branch information
gbp authored May 15, 2024
2 parents a925ff7 + 77cdf9a commit fe43756
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/excel_analyzer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ class ExcelAnalyzerNotifier < ApplicationMailer

def report(foi_attachment, metadata)
@foi_attachment = foi_attachment
@incoming_message = foi_attachment.incoming_message
@metadata = metadata

from = email_address_with_name(
Expand Down
3 changes: 2 additions & 1 deletion lib/views/excel_analyzer_notifier/report.text.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
ExcelAnalyzer has flagged and automatically set hidden prominence of a received
spreadsheet due to the detection of potentially suspect hidden data.

Admin URL: <%= edit_admin_foi_attachment_url(@foi_attachment) %>
Admin request URL: <%= admin_request_url(@incoming_message.info_request_id) %>
Admin attachment URL: <%= edit_admin_foi_attachment_url(@foi_attachment) %>

The following was detected:
<% @metadata.each do |key, value| %>
Expand Down

0 comments on commit fe43756

Please sign in to comment.