Skip to content

Commit

Permalink
Merge pull request #520 from CityOfNewYork/develop
Browse files Browse the repository at this point in the history
OpenRecords v3.4.2
  • Loading branch information
johnyu95 authored Apr 2, 2020
2 parents 360c6b5 + 0a9e4a7 commit 949c846
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ def is_authenticated(self):

@property
def is_active(self):
return self.email_validated and self.terms_of_use_accepted
return self.email_validated

@property
def is_public(self):
Expand Down
3 changes: 3 additions & 0 deletions app/templates/email_templates/email_confirmation.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
</p>
<!-- Contact and Request Information -->
<p>
{% if current_request.custom_metadata %}
Request Type: {{ current_request.description }}
{% endif %}
{% if file_link %}
Attached File: {{ file_link['title'] }}:
<a href="{{ file_link['link'] }}">{{ file_link['filename'] }}</a>
Expand Down
12 changes: 12 additions & 0 deletions app/templates/email_templates/email_request_status_changed.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
<li>
<a href="{{ request.url }}">{{ request.id }}</a>
<ul>
{% if request.custom_metadata %}
<li>Request Type: {{ request.description }}</li>
{% endif %}
<li>Requester Last Name: {{ request.requester.last_name }}</li>
<li>Request Opened: {{ request.date_submitted.strftime('%m/%d/%y') }}</li>
</ul>
Expand All @@ -23,6 +26,9 @@
<li>
<a href="{{ request.url }}">{{ request.id }}</a>
<ul>
{% if request.custom_metadata %}
<li>Request Type: {{ request.description }}</li>
{% endif %}
<li>Requester Last Name: {{ request.requester.last_name }}</li>
<li>Request Opened: {{ request.date_submitted.strftime('%m/%d/%y') }}</li>
</ul>
Expand All @@ -46,6 +52,9 @@
{% endif %}
</strong>
<ul>
{% if request.custom_metadata %}
<li>Request Type: {{ request.description }}</li>
{% endif %}
<li>Requester Last Name: {{ request.requester.last_name }}</li>
<li>Request Opened: {{ request.date_submitted.strftime('%m/%d/%y') }}</li>
</ul>
Expand All @@ -69,6 +78,9 @@
{% endif %}
</strong>
<ul>
{% if request.custom_metadata %}
<li>Request Type: {{ request.description }}</li>
{% endif %}
<li>Requester Last Name: {{ request.requester.last_name }}</li>
<li>Request Opened: {{ request.date_submitted.strftime('%m/%d/%y') }}</li>
</ul>
Expand Down

0 comments on commit 949c846

Please sign in to comment.