{% extends "base.html" %}

{% block title %}{{ _("Error %(code)s", code=code) }} | {{ super() }}{% endblock %}

{% block content %}

<div class="alert alert-danger" role="alert">

{% if code == 403 %}

    <strong>{{ _("Access unauthorized") }}</strong>.
    {% if current_user.is_authenticated() %}
        {{ _("You are not allowed to access this page. Forget it, there's nothing you can do.") }}
    {% else %}
        {{ _("You need to login first:") }} &nbsp;
        <img src="{{ url_for('static', filename='signin.png') }}"
             alt="Login" class="signin" />
    {% endif %}

{% elif code == 404 %}

    <strong>{{ _("Page not found.") }}</strong>
    {{ _("Please check the address or tell us where you clicked.") }}

{% endif %}
</div>

{% endblock %}

