Skip to content

Commit 898f5e5

Browse files
authored
Merge pull request #583 from CityOfNewYork/johnyu95-file-email-updates
Updated file email langauge
2 parents f805e3a + 2e34633 commit 898f5e5

File tree

9 files changed

+26
-24
lines changed

9 files changed

+26
-24
lines changed

app/response/utils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2459,7 +2459,7 @@ def send_file_email(request_id, release_public_links, release_private_links, pri
24592459
).options(
24602460
joinedload(Requests.agency)
24612461
).filter_by(id=request_id).one()
2462-
subject = 'Response Added to {} - File'.format(request_id)
2462+
subject = 'Response Added to {} - Record'.format(request_id)
24632463
bcc = get_assigned_users_emails(request_id)
24642464
if release_public_links or release_private_links:
24652465
release_date = get_release_date(datetime.utcnow(), RELEASE_PUBLIC_DAYS, tz_name).strftime("%A, %B %d, %Y")
@@ -2472,7 +2472,7 @@ def send_file_email(request_id, release_public_links, release_private_links, pri
24722472
))
24732473
safely_send_and_add_email(request_id,
24742474
email_content_requester,
2475-
'Response Added to {} - File'.format(request_id),
2475+
'Response Added to {} - Record'.format(request_id),
24762476
to=[request.requester.email],
24772477
bcc=bcc,
24782478
reply_to=request.agency.default_email)
@@ -2485,7 +2485,7 @@ def send_file_email(request_id, release_public_links, release_private_links, pri
24852485
page=page)
24862486
safely_send_and_add_email(request_id,
24872487
email_content_agency,
2488-
'File(s) Added to {}'.format(request_id),
2488+
'Record(s) Added to {}'.format(request_id),
24892489
bcc=bcc)
24902490
elif private_links:
24912491
email_content_agency = email_content.replace(replace_string,

app/templates/email_templates/edit_response_file_links.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{% if not agency and response_data.response.request.requester.is_anonymous_requester %}
22
<p>
3-
Link to file: <a href="{{ response_data.file_link_for_user['requester'] }}">
3+
Link to record: <a href="{{ response_data.file_link_for_user['requester'] }}">
44
{% if response_data.data_new['name'] %}
55
{{ response_data.data_new['name'] }}
66
{% else %}
@@ -12,7 +12,7 @@
1212

1313
{% if agency or not response_data.response.request.requester.is_anonymous_requester %}
1414
<p>
15-
Link to file: <a href="{{ response_data.file_link_for_user['agency'] }}">
15+
Link to record: <a href="{{ response_data.file_link_for_user['agency'] }}">
1616
{% if response_data.data_new['name'] %}
1717
{{ response_data.data_new['name'] }}
1818
{% else %}

app/templates/email_templates/email_edit_file.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,20 @@
44
{% if response_data.data_old['privacy'] != response_privacy.PRIVATE %}
55
<p>
66
<span class="mceNonEditable">
7-
A file in request <a href="{{ page }}">{{ request_id }}</a> has been edited.
7+
A record in request <a href="{{ page }}">{{ request_id }}</a> has been edited.
88
</span>
99
</p>
1010
{% else %}
1111
<p>
1212
<span class="mceNonEditable">
13-
A file in request <a href="{{ page }}">{{ request_id }}</a> is available for you to view.
13+
A record in request <a href="{{ page }}">{{ request_id }}</a> is available for you to view.
1414
</span>
1515
</p>
1616
<div class="file-links">
1717
{% if response_data.response.request.requester.is_anonymous_requester %}
1818
<p>
1919
<span class="mceNonEditable">
20-
Link to file: <a href="{{ response_data.file_link_for_user['requester'] }}">
20+
Link to record: <a href="{{ response_data.file_link_for_user['requester'] }}">
2121
{% if response_data.data_new['name'] %}
2222
{{ response_data.data_new['name'] }}
2323
{% else %}
@@ -37,7 +37,7 @@
3737
{% if response_data.data_old['name'] %}
3838
<p>
3939
<span class="mceNonEditable">
40-
The <strong>file</strong>:
40+
The <strong>record</strong>:
4141
</span>
4242
</p>
4343
<p style="padding-left: 30px;">
@@ -62,7 +62,7 @@
6262
{% if response_data.data_old['name'] %}
6363
<p>
6464
<span class="mceNonEditable">
65-
The file's <strong>name</strong> was changed from:
65+
The record's <strong>name</strong> was changed from:
6666
</span>
6767
</p>
6868
<p style="padding-left: 30px;">
@@ -121,7 +121,7 @@
121121
{% if not agency and response_data.response.request.requester.is_anonymous_requester %}
122122
<p>
123123
<span class="mceNonEditable">
124-
Link to file: <a href="{{ response_data.file_link_for_user['requester'] }}">
124+
Link to record: <a href="{{ response_data.file_link_for_user['requester'] }}">
125125
{% if response_data.data_new['name'] %}
126126
{{ response_data.data_new['name'] }}
127127
{% else %}
@@ -135,7 +135,7 @@
135135
{% if agency or not response_data.response.request.requester.is_anonymous_requester %}
136136
<p>
137137
<span class="mceNonEditable">
138-
Link to file: <a href="{{ response_data.file_link_for_user['agency'] }}">
138+
Link to record: <a href="{{ response_data.file_link_for_user['agency'] }}">
139139
{% if response_data.data_new['name'] %}
140140
{{ response_data.data_new['name'] }}
141141
{% else %}

app/templates/email_templates/email_private_file_upload.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
</p>
55
<p>
66
<span class="mceNonEditable">
7-
The following file(s) were added to <a href='{{ page }}'>{{ request_id }}</a> and are private:
7+
The following record(s) were added to <a href='{{ page }}'>{{ request_id }}</a> and are private:
88
</span>
99
</p>
1010
<div class="file-links">

app/templates/email_templates/email_response_closing.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212
href="mailto:{{ agency_appeals_email }}?subject={{ request.id }}%20-%20Appeal">{{ agency_appeals_email }}</a>
1313
within 30 days.
1414
</span>
15+
<br><br>
1516
{% endif %}
17+
<span class="mceNonEditable"><strong>Please check your email inbox's spam folder to ensure you received all records provided by the agency.</strong></span>
1618
{% else %}
1719
{{ content | safe }}
1820
{% endif %}

app/templates/email_templates/email_response_file.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
{% if default_content %}
22
<p>
33
The {{ agency_name }} has responded to your FOIL request <a href='{{ page }}'>{{ request_id }}</a> with
4-
the following file(s).
4+
the following record(s).
55
</p>
66

77
{% if public_requester %}
88
<p>
99
<span class="mceNonEditable">
10-
<strong>NOTE</strong>: You must be logged in to your OpenRecords account to access the file(s).
10+
<strong>NOTE</strong>: You must be logged in to your OpenRecords account to access the record(s).
1111
If you are not logged in, you will be prompted to do so when the link is selected.
1212
</span>
1313
</p>
1414
{% endif %}
1515

1616
{% if release_public_links %}
1717
<p>
18-
<span class="mceNonEditable">The file(s) listed below will be accessible to the public on the OpenRecords portal in 20 business days
18+
<span class="mceNonEditable">The record(s) listed below will be accessible to the public on the OpenRecords portal in 20 business days
1919
({{ moment(release_date).format('dddd, MMMM D, YYYY') }}).</span>
2020
</p>
2121
<div class="file-links">
@@ -29,7 +29,7 @@
2929
{% if release_private_links %}
3030
<p>
3131
<span class="mceNonEditable">
32-
The file(s) listed below will not be publicly available on the OpenRecords portal.
32+
The record(s) listed below will not be publicly available on the OpenRecords portal.
3333
</span>
3434
</p>
3535
<ul>
@@ -46,7 +46,7 @@
4646
{% if release_private_links and not release_public_links %}
4747
<p>
4848
<span class="mceNonEditable">
49-
The file(s) listed below will not be publicly available on the OpenRecords portal.
49+
The record(s) listed below will not be publicly available on the OpenRecords portal.
5050
</span>
5151
</p>
5252
<div class="file-links">

app/templates/email_templates/response_file_links.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
</ul>
1010
{% if release_private_links %}
1111
<p>
12-
The file(s) listed below will not be publicly available on the OpenRecords portal.
12+
The record(s) listed below will not be publicly available on the OpenRecords portal.
1313
</p>
1414
<ul>
1515
{% for file in release_private_links %}

app/templates/request/events/modal_body/file_edited.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,25 @@
22
<ul>
33
{% if event.new_value.get('name') %}
44
<li>
5-
The file "{{ event.previous_value['name'] }}" was changed to
5+
The record "{{ event.previous_value['name'] }}" was changed to
66
"{{ event.new_value['name'] }}".
77
</li>
88
{% elif event.new_value.get('hash') %}
99
<li>
10-
The <strong>content</strong> of the file "{{ event.response.name }}" was changed.
10+
The <strong>content</strong> of the record "{{ event.response.name }}" was changed.
1111
</li>
1212
{% endif %}
1313

1414
{% if event.new_value.get('title') %}
1515
<li>
16-
The file response <strong>title</strong> was changed from "{{ event.previous_value['title'] }}" to
16+
The record response <strong>title</strong> was changed from "{{ event.previous_value['title'] }}" to
1717
"{{ event.new_value['title'] }}".
1818
</li>
1919
{% endif %}
2020

2121
{% if event.new_value.get('privacy') %}
2222
<li>
23-
The file response <strong>privacy</strong> was changed from
23+
The record response <strong>privacy</strong> was changed from
2424
{% include "request/events/modal_body/base/privacy_change.html" %}
2525
</li>
2626
{% endif %}

data/reasons.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"closing","Closed - Fulfilled via Walk In","Your request under the Freedom of Information Law (FOIL) has been fulfilled via walk in.","0056","True"
1212
"closing","Closed - CIS Case","Because you and/or your client have demonstrated that you have an interest in the subject accident, §66-a of the Public Officers Law, rather than FOIL, governs the extent of disclosure that is available to you, and affords you greater access than could be obtained under FOIL.","0056","True"
1313
"closing","Closed - CIS Case (Redacted)","Because you and/or your client have demonstrated that you have an interest in the subject accident, §66-a of the Public Officers Law, rather than FOIL, governs the extent of disclosure that is available to you, and affords you greater access than could be obtained under FOIL. Please note that if the case folder contained records that did not directly pertain to the accident, such records are not included in the provided document(s).","0056","True"
14-
"closing","Closed - Requested Documents Provided","The requested documents were previously sent to you via email.","0056","True"
14+
"closing","Closed - Requested Documents Provided","The requested documents were sent to you via email.","0056","True"
1515
"closing","Closed - Document List","Responsive to your request, the following document(s) have been accessed:<p class=""mceEditable""></p>","0056","True"
1616
"closing","Closed - Personal Privacy - Redacted","Redactions have been made to the document(s) in that release of information would represent an unwarranted invasion of personal privacy {§ 87.2 (b)}.","0056","True"
1717
"closing","Closed - Endanger - Redacted","Redactions have been made to the document(s) in that release of information would endanger the life and safety of any person {§ 87.2 (f)}.","0056","True"

0 commit comments

Comments
 (0)