-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add priority to catch traefik rules and pages to errors
- Loading branch information
1 parent
f4b4aae
commit 4ce1f6e
Showing
7 changed files
with
88 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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{% extends "votepeloclima/base.html" %} | ||
{% load static %} | ||
|
||
{% block content %} | ||
<section class="container grid"> | ||
<div class="bg-screenside d-none d-lg-flex g-col-4"> | ||
<div class="screenside" style="background-image:url({% static 'imgs/bg-steps.svg' %});"> | ||
</div> | ||
</div> | ||
<div class="d-flex align-items-center g-col-12 g-col-lg-8" style="padding: 115px 0;"> | ||
<div class="d-flex flex-column align-items-md-start gap-3"> | ||
{% block main %} | ||
<i class="ds-icon-warning"></i> | ||
<h3 class="text-uppercase fw-bold m-0">Página não <br/> encontrada</h3> | ||
<p class="pb-1">Não conseguimos encontrar esta página. Confira se o link está correto. Se o erro persistir, entre em contato com a gente em <a href="mailto:[email protected]" target="_blank" rel="noopener noreferrer">[email protected]</a></p> | ||
<button class="btn btn-secondary text-uppercase" type="button" onclick="window.location.href='/'">Voltar ao início</button> | ||
{% endblock %} | ||
</div> | ||
</div> | ||
</section> | ||
{% 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,7 @@ | ||
{% extends "errors/404.html" %} | ||
|
||
{% block main %} | ||
<h1 class="text-uppercase">Erro interno do Servidor</h1> | ||
<p class="pb-3">Houve algum problema no servidor, se o erro persistir entre em contato com [email protected]</p> | ||
<button class="btn btn-secondary text-uppercase" type="button" onclick="window.location.href='/'">Voltar ao início</button> | ||
{% endblock %} |
21 changes: 21 additions & 0 deletions
21
app/org_eleicoes/eleicaodoano/eleicao/templates/errors/404.html
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,21 @@ | ||
{% extends "votepeloclima/base.html" %} | ||
{% load static %} | ||
|
||
{% block content %} | ||
<section class="container grid"> | ||
<div class="bg-screenside d-none d-lg-flex g-col-4"> | ||
<div class="screenside" style="background-image:url({% static 'imgs/bg-steps.svg' %});"> | ||
</div> | ||
</div> | ||
<div class="d-flex align-items-center g-col-12 g-col-lg-8" style="padding: 115px 0;"> | ||
<div class="d-flex flex-column align-items-md-start gap-3"> | ||
{% block main %} | ||
<i class="ds-icon-warning"></i> | ||
<h3 class="text-uppercase fw-bold m-0">Página não <br/> encontrada</h3> | ||
<p class="pb-1">Não conseguimos encontrar esta página. Confira se o link está correto. Se o erro persistir, entre em contato com a gente em <a href="mailto:[email protected]" target="_blank" rel="noopener noreferrer">[email protected]</a></p> | ||
<button class="btn btn-secondary text-uppercase" type="button" onclick="window.location.href='/'">Voltar ao início</button> | ||
{% endblock %} | ||
</div> | ||
</div> | ||
</section> | ||
{% endblock %} |
7 changes: 7 additions & 0 deletions
7
app/org_eleicoes/eleicaodoano/eleicao/templates/errors/500.html
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,7 @@ | ||
{% extends "errors/404.html" %} | ||
|
||
{% block main %} | ||
<h1 class="text-uppercase">Erro interno do Servidor</h1> | ||
<p class="pb-3">Houve algum problema no servidor, se o erro persistir entre em contato com [email protected]</p> | ||
<button class="btn btn-secondary text-uppercase" type="button" onclick="window.location.href='/'">Voltar ao início</button> | ||
{% 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,21 @@ | ||
{% extends "votepeloclima/base.html" %} | ||
{% load static %} | ||
|
||
{% block content %} | ||
<section class="container grid"> | ||
<div class="bg-screenside d-none d-lg-flex g-col-4"> | ||
<div class="screenside" style="background-image:url({% static 'imgs/bg-steps.svg' %});"> | ||
</div> | ||
</div> | ||
<div class="d-flex align-items-center g-col-12 g-col-lg-8" style="padding: 115px 0;"> | ||
<div class="d-flex flex-column align-items-md-start gap-3"> | ||
{% block main %} | ||
<i class="ds-icon-warning"></i> | ||
<h3 class="text-uppercase fw-bold m-0">Página não <br/> encontrada</h3> | ||
<p class="pb-1">Não conseguimos encontrar esta página. Confira se o link está correto. Se o erro persistir, entre em contato com a gente em <a href="mailto:[email protected]" target="_blank" rel="noopener noreferrer">[email protected]</a></p> | ||
<button class="btn btn-secondary text-uppercase" type="button" onclick="window.location.href='/'">Voltar ao início</button> | ||
{% endblock %} | ||
</div> | ||
</div> | ||
</section> | ||
{% 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,7 @@ | ||
{% extends "errors/404.html" %} | ||
|
||
{% block main %} | ||
<h1 class="text-uppercase">Erro interno do Servidor</h1> | ||
<p class="pb-3">Houve algum problema no servidor, se o erro persistir entre em contato com [email protected]</p> | ||
<button class="btn btn-secondary text-uppercase" type="button" onclick="window.location.href='/'">Voltar ao início</button> | ||
{% 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