Skip to content

Commit

Permalink
fix(templates): rebuild error templates with error_base.html
Browse files Browse the repository at this point in the history
  • Loading branch information
zluuba committed May 23, 2024
1 parent 27713eb commit 8a18d17
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 40 deletions.
27 changes: 7 additions & 20 deletions zluuba_art/templates/errors/internal_server_error.html
Original file line number Diff line number Diff line change
@@ -1,24 +1,11 @@
{% extends "layout.html" %}
{% extends "errors/error_base.html" %}

{% block body %}
{% block error_body %}

<div class="container">
<div class="logo-container">
<a href="{{ url_for('main_page') }}">
<img src="{{ url_for('static', filename='images/logo-grey.png') }}" alt="Logo">
</a>
</div>
<div class="content-main">
<main class="intro error-page-intro">
<h1>Oops, something went wrong</h1>
<p>
Brace yourself till we get the error fixed. <br>
You may also refresh the page or try again later.
</p>
<a href="{{ url_for('main_page') }}">Go Home</a>
</main>
</div>
{% include 'footer.html' %}
</div>
<h1>Oops, something went wrong</h1>
<p>
Brace yourself till we get the error fixed. <br>
You may also refresh the page or try again later.
</p>

{% endblock %}
27 changes: 7 additions & 20 deletions zluuba_art/templates/errors/page_not_found.html
Original file line number Diff line number Diff line change
@@ -1,24 +1,11 @@
{% extends "layout.html" %}
{% extends "errors/error_base.html" %}

{% block body %}
{% block error_body %}

<div class="container">
<div class="logo-container">
<a href="{{ url_for('main_page') }}">
<img src="{{ url_for('static', filename='images/logo-grey.png') }}" alt="Logo">
</a>
</div>
<div class="content-main">
<main class="intro error-page-intro">
<h1>Page Not Found</h1>
<p>
I've searched everywhere for this page,<br/>
but it seems there's no match for the URL you've entered.
</p>
<a href="{{ url_for('main_page') }}">Go Home</a>
</main>
</div>
{% include 'footer.html' %}
</div>
<h1>Page Not Found</h1>
<p>
I've searched everywhere for this page,<br/>
but it seems there's no match for the URL you've entered.
</p>

{% endblock %}

0 comments on commit 8a18d17

Please sign in to comment.