-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Display the 404 and 500 custom error pages
- Loading branch information
Showing
6 changed files
with
102 additions
and
5 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{% extends 'base.html.twig' %} | ||
|
||
{% block title %}{{ 'Error - ' ~ title }}{% endblock %} | ||
|
||
{% block content %} | ||
<p class="error-description">{{ description }}</p> | ||
|
||
<table class="table table-bordered"> | ||
<tr> | ||
<th>{{ 'stepup.error.timestamp'|trans }}</th> | ||
<td>{{ timestamp }}</td> | ||
</tr> | ||
<tr> | ||
<th>{{ 'stepup.error.hostname'|trans }}</th> | ||
<td>{{ hostname }}</td> | ||
</tr> | ||
<tr> | ||
<th>{{ 'stepup.error.request_id'|trans }}</th> | ||
<td>{{ request_id }}</td> | ||
</tr> | ||
<tr> | ||
<th>{{ 'stepup.error.error_code'|trans }}</th> | ||
<td>{{ error_code }}</td> | ||
</tr> | ||
{% if user_agent %} | ||
<tr> | ||
<th>{{ 'stepup.error.user_agent'|trans }}</th> | ||
<td>{{ user_agent }}</td> | ||
</tr> | ||
{% endif %} | ||
<tr> | ||
<th>{{ 'stepup.error.ip_address'|trans }}</th> | ||
<td>{{ ip_address }}</td> | ||
</tr> | ||
</table> | ||
|
||
<p class="error-description">{{ 'stepup.error.support_page.text'|trans({'%support_url%': global_view_parameters.supportUrl })|raw }}</p> | ||
|
||
{# For now the back button is not shown on the error page until a more intelligent solution is thought of #} | ||
{% block back_button %}{% endblock %} | ||
|
||
{% endblock %} |
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{% extends 'base.html.twig' %} | ||
|
||
{% block title %}{{ 'stepup.error.page_not_found.title'|trans }}{% endblock %} | ||
|
||
{% block content %} | ||
<p>{{ 'stepup.error.page_not_found.text'|trans }}</p> | ||
|
||
<hr> | ||
|
||
<p>{{ 'stepup.error.support_page.text'|trans({'%support_url%': global_view_parameters.supportUrl })|raw }}</p> | ||
|
||
{# For now the back button is not shown on the error page until a more intelligent solution is thought of #} | ||
{% block back_button %}{% endblock %} | ||
|
||
{% endblock %} |