{% extends "base.html" %}
{% load i18n %}

{% block breadcrumbs %}
<li><a href="{% url 'home' %}">{% trans "Permission Denied" %}</a></li>
{% endblock %}

{% block content %}

<p>
{% trans "Insufficient privileges to display this page." %}

{% if not user.is_authenticated %}
<a href="{% url 'login' %}" class="btn btn-primary">{% trans "Log in" %}</a>
{% endif %}

</p>

{% if user.allowed_projects %}
<p>{% trans "However, the following translation projects are available on this server:" %}</p>

<ul>
{% for p in user.allowed_projects %}
    <li><a href="{{ p.get_absolute_url }}">{{ p }}</a></li>
{% endfor %}
</ul>
{% endif %}

{% endblock %}
