-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(templates): http status codes for flask;
- Fixed status codes in error templates.
- Loading branch information
1 parent
211d50b
commit 668d608
Showing
2 changed files
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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. | ||
|
@@ -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> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters