Skip to content

Commit

Permalink
layout: improve error page
Browse files Browse the repository at this point in the history
* Closes #30.

Co-Authored-by: Pascal Repond <[email protected]>
  • Loading branch information
PascalRepond committed Nov 17, 2022
1 parent 4845909 commit c8d5904
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 9 deletions.
8 changes: 6 additions & 2 deletions flask_wiki/templates/wiki/403.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
{% endblock %}

{% block content %}
<h1>{{ _('Forbidden') }}</h1>
<p>{{ _('You are not allowed to see this page.') }}</p>
<main class="row mt-4 wiki-page">
<div class="col-md-7 offset-md-2">
<h1>{{ _('Forbidden') }}</h1>
<p>{{ _('You are not allowed to see this page.') }}</p>
</div>
</main>
{% endblock %}
18 changes: 11 additions & 7 deletions flask_wiki/templates/wiki/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,15 @@
{% endblock %}

{% block content %}
<h1>{{ _('Page does not exist.') }}</h1>
<p>{{ _('You did not create any content for this page yet.') }}</p>
<p>
<a href="{{ url_for('wiki.edit', url=request.path | prune_url) }}" class="btn btn-outline-primary btn-sm">
{{ _('Create a new page') }}
</a>
</p>
<main class="row mt-4 wiki-page">
<div class="col-md-7 offset-md-2">
<h1>{{ _('Page does not exist.') }}</h1>
<p>{{ _('You did not create any content for this page yet.') }}</p>
<p>
<a href="{{ url_for('wiki.edit', url=request.path | prune_url) }}" class="btn btn-outline-primary btn-sm">
{{ _('Create a new page') }}
</a>
</p>
</div>
</main>
{% endblock %}

0 comments on commit c8d5904

Please sign in to comment.