Skip to content

Commit

Permalink
fix(templates): http status codes for flask;
Browse files Browse the repository at this point in the history
- Fixed status codes in error templates.
  • Loading branch information
JVickery-TBS committed Jul 27, 2023
1 parent 211d50b commit 668d608
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<div class="row">
<div class="col-md-12">
<p class="mrgn-tp-lg"><strong>{{ content }}</strong></p>
{% if code[0] == '403' %}
{% if code == 403 %}
{% if not c.userobj %}
<p class="mrgn-tp-lg">{{ _('You are not logged in to the Open Government Registry.
Note that your login expires after 1 hour of inactivity.
Expand All @@ -19,9 +19,9 @@
<span class="fa fa-sign-in"></span><span class="text">{{ _('Log in') }}</span>
</a></p>
{% endif %}
{% elif code[0] == '404' %}
{% elif code == 404 %}
<p class="mrgn-tp-lg">{{ _('We couldn\'t find that Web page') }}</p>
{% elif code[0] == '500' %}
{% elif code == 500 %}
<p class="mrgn-tp-lg">{{ _('We encountered an error and are unable to serve your request. Please try again in short time or contact <a href="mailto:[email protected]">[email protected]</a> if you need immediate assistance or if this issue persists. Note that your login expires after 1 hour of inactivity.') | safe }}</p>
{% else %}
<p class="mrgn-tp-lg">{{ _('We encountered an error') }}</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

{% block page_heading %}
{% block subtitle %}
{% if code[0] == '404' %}
{% if code == 404 or code == 403 %}
{{ _('We couldn\'t find that Web page') }}
{% else %}
{{ _('We encountered an error') }}
Expand Down

0 comments on commit 668d608

Please sign in to comment.