Commit 3aa038dc authored by ancoats's avatar ancoats
Browse files

Add 404 page template

parent 8a2d1f72
{% extends '_layouts/default.twig' %}
{% set templateClass = 'template-404' %}
{% block content %}
<div class="c-panel u-background-color-red u-color-white">
<div class="container u-text-align-center">
{% include '_partials/components/shared/page-title.twig' with {
text: 'Page not found'|t
} %}
<p class="h4 u-width-max-none">{{ "Sorry, that page does not exist."|t }}</p>
<a class="c-button u-margin-top-2" href="{{ currentSite.baseUrl }}">
<span class="c-button__label">{{ 'To the homepage'|t }}</span>
</a>
</div>
</div>
{% endblock %}
{% block prefooter %}
{{ parent() }}
{% block b %}
{% include '_partials/components/shared/tile.twig' with {
tileTheme: 'shockface'
} %}
{% endblock %}
{% endblock %}
{% if entry is defined %}
{% set blockHeading = entry.blockHeadingOpenCollective ? entry.blockHeadingOpenCollective : blocks.blockHeadingOpenCollective %}
{% set blockDescription = entry.blockDescriptionOpenCollective ? entry.blockDescriptionOpenCollective : blocks.blockDescriptionOpenCollective %}
{% set blockButtonURL = entry.blockButtonURLOpenCollective ? entry.blockButtonURLOpenCollective : services.serviceURLOpenCollective %}
{% elseif category is defined %}
{% set blockHeading = category.blockHeadingOpenCollective ? category.blockHeadingOpenCollective : blocks.blockHeadingOpenCollective %}
{% set blockDescription = category.blockDescriptionOpenCollective ? category.blockDescriptionOpenCollective : blocks.blockDescriptionOpenCollective %}
{% set blockButtonURL = category.blockButtonURLOpenCollective ? category.blockButtonURLOpenCollective : services.serviceURLOpenCollective %}
{% elseif user is defined %}
{% set blockHeading = blocks.blockHeadingOpenCollective %}
{% set blockDescription = blocks.blockDescriptionOpenCollective %}
{% set blockButtonURL = services.serviceURLOpenCollective %}
{% endif %}
<div class="c-box{% if (class is defined and class) %} {{ class }}{% endif %}">
<h2 class="c-box__heading">{{ blockHeading }}</h2>
<p class="lead">{{ blockDescription }}</p>
<a class="c-button" href="{{ blockButtonURL }}">
<h2 class="c-box__heading">{{ entry.blockHeadingOpenCollective | default(blocks.blockHeadingOpenCollective) }}</h2>
<p class="lead">{{ entry.blockDescriptionOpenCollective | default(blocks.blockDescriptionOpenCollective) }}</p>
<a class="c-button" href="{{ entry.blockButtonURLOpenCollective | default(services.serviceURLOpenCollective) }}">
<span class="c-button__label">{{ blocks.blockButtonLabelOpenCollective }}</span>
</a>
</div>
<h1 class="c-page-title">
{%- if entry is defined -%}
{%- if (text is defined) -%}
{{ text }}
{%- elseif (entry is defined) -%}
{{ entry.title }}
{%- elseif category is defined -%}
{%- elseif (category is defined) -%}
{{ category.title }}
{%- elseif user is defined -%}
{%- elseif (user is defined) -%}
{{ user.userNamePublic | default(user.name) }}
{%- endif -%}
</h1>
......@@ -54,6 +54,7 @@ return [
'Our demands' => 'Nos demandes',
'Our principles and values' => 'Nos principes et valeurs',
'Our values' => 'Nos principes',
'Page not found' => 'Page non trouvée',
'Photos and videos' => 'Photos et videos',
'Press' => 'Presse',
'Press archive' => 'Archives de presse',
......@@ -61,8 +62,10 @@ return [
'Previous page' => 'Page précédente',
'Published by' => 'Publié par',
'Skip to main content' => 'Passer au contenu principal',
'Sorry, that page does not exist.' => "Désolé, cette page n'existe pas.",
'Tell the truth' => 'Dire la vérité',
'To' => 'Á',
'To the homepage' => "Á la page d'accueil",
'Type' => 'Type',
'Type of work' => 'Type de travail',
'Upcoming events' => 'Évènements à venir',
......
......@@ -54,6 +54,7 @@ return [
'Our demands' => 'Onze eisen',
'Our principles and values' => 'Onze principes en waarden',
'Our values' => 'Onze waarden',
'Page not found' => 'Pagina niet gevonden',
'Photos and videos' => "Foto's en video's",
'Press' => 'Pers',
'Press archive' => 'Persarchief',
......@@ -61,8 +62,10 @@ return [
'Previous page' => 'Vorige pagina',
'Published by' => 'Gepubliceerd door',
'Skip to main content' => 'Ga naar hoofdinhoud',
'Sorry, that page does not exist.' => 'Sorry, die pagina bestaat niet.',
'Tell the truth' => 'Vertel de waarheid',
'To' => 'Tot',
'To the homepage' => 'Naar de homepagina',
'Type' => 'Type',
'Type of work' => 'Type werk',
'Upcoming events' => 'Aankomende evenementen',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment