Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions endorsement/notifications/shared_drive.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,13 @@ def _create_notification_expiration_notice(notice_level, drive, policy):
}

if notice_level < 4:
subject = ("Action Required: Shared Drive "
"service will expire soon")
subject = ("Action Required: Google Shared Drive(s) "
"will be deleted soon")
text_template = _email_template("notice_warning.txt")
html_template = _email_template("notice_warning.html")
else:
subject = "Action Required: Shared Drive services have expired"
subject = ("Action Required: Google Shared Drive(s) "
"will be deleted")
text_template = _email_template("notice_warning_final.txt")
html_template = _email_template("notice_warning_final.html")

Expand Down
16 changes: 7 additions & 9 deletions endorsement/templates/email/shared_drive/notice_warning.html
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
Hello,
<p>
You are receiving this email because you are identified as
{%if drive.shared_drive.members.all.count > 1 %}
one of {{ drive.shared_drive.members.all.count }}
{% else %}
the
{% endif %}
UW manager{{drive.shared_drive.members.all.count|pluralize}} of the Google Shared Drive named "{{drive.shared_drive.drive_name}}".
{%if drive.shared_drive.members.all.count > 1 %}a {% else %}the {% endif %}
UW manager of the Google Shared Drive named "{{drive.shared_drive.drive_name}}".
</p>
<p>
<a href="https://provision.uw.edu/drives" target="_blank">To maintain service, renew this shared drive within {{notice_time}} days</a> in the Provisioning Request Tool (PRT).<br />
Google Shared Drives services last for {{lifetime}} days and must be renewed annually or removed.
{%if notice_time <= 31 %}Non-renewed (expired) drives will be deleted. Managers are responsible for retaining a copy of any material subject to any applicable record retention schedules prior to deletion.{%endif%}
To maintain this Google Shared Drive, renew it within {{notice_time}} days using the Provisioning Request Tool (PRT) at:
</p>
<a href="https://provision.uw.edu/drives" target="_blank" style="padding-left: 4em;">https://provision.uw.edu/drives</a>
<p>
Google Shared Drives must be renewed once every {{lifetime}} days. If a Google Shared Drive is not renewed within {{lifetime}} days, the Google Shared Drive and all data contained within it will be permanently deleted.
</p>
<p>
If you have any questions, please contact <a href="mailto:[email protected]" target="_blank">[email protected]</a> or 206-221-5000.
Expand Down
11 changes: 5 additions & 6 deletions endorsement/templates/email/shared_drive/notice_warning.txt
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
Hello,

You are receiving this email because you are identified as {%if drive.shared_drive.members.all.count > 1 %}one of {{ drive.shared_drive.members.all.count }}{% else %}the{% endif %} UW manager{{drive.shared_drive.members.all.count|pluralize}}
You are receiving this email because you are identified as {%if drive.shared_drive.members.all.count > 1 %}a{% else %}the{% endif %} UW manager
of the Google Shared Drive named "{{drive.shared_drive.drive_name}}".

To maintain service, renew this shared drive within {{notice_time}} days</a> in
To maintain this Google Shared Drive, renew it within {{notice_time}} days using
the Provisioning Request Tool (PRT) at:

https://provision.uw.edu/drives

Google Shared Drives services last for {{lifetime}} days and must be renewed
annually or removed. {%if notice_time <= 31 %}Non-renewed (expired) drives will be deleted.
Managers are responsible for retaining a copy of any material subject to
ny applicable record retention schedules prior to deletion.{%endif%}
Google Shared Drives must be renewed once every {{lifetime}} days. If a Google
Shared Drive is not renewed within {{lifetime}} days, the Google Shared Drive and
all data contained within it will be permanently deleted.

If you have any questions, please contact [email protected] or 206-221-5000.

Expand Down