mirror of
https://github.com/jointakahe/takahe.git
synced 2024-11-22 15:21:01 +00:00
b36fa0de51
Since error pages lack the normal context, remove the block so it doesn't obscure errors with spew.
33 lines
1,013 B
HTML
33 lines
1,013 B
HTML
{% extends "base.html" %}
|
|
|
|
{% block body_class %}no-sidebar{% endblock %}
|
|
|
|
{% block opengraph %}
|
|
{# Error pages don't have the context loaded, so disable opengraph to keep it from spewing errors #}
|
|
{% endblock %}
|
|
|
|
{% block body_main %}
|
|
<header>
|
|
<menu>
|
|
{% if not request.user.is_authenticated and current_page == "about" and config.signup_allowed %}
|
|
<a href="/auth/signup/">Sign Up</a>
|
|
{% else %}
|
|
<a href="/">Home</a>
|
|
{% endif %}
|
|
<a class="logo" href="/">
|
|
<img src="{{ config.site_icon }}" width="32">
|
|
{{ config.site_name }}
|
|
</a>
|
|
{% if request.user.is_authenticated %}
|
|
<a href="javascript:history.back()">Back</a>
|
|
{% else %}
|
|
<a href="/auth/login/">Login</a>
|
|
{% endif %}
|
|
</menu>
|
|
</header>
|
|
|
|
<div id="main-content">
|
|
{% block content %}
|
|
{% endblock %}
|
|
</div>
|
|
{% endblock %}
|