Changeset View
Changeset View
Standalone View
Standalone View
common/templates/common/errors/403.html
| {% extends 'common/errors/base.html' %} {% block page_title %}Forbidden{% endblock %} | {% extends 'common/errors/base.html' %} {% block page_title %}Forbidden{% endblock %} | ||||
| {% block errorbody %} | {% block errorbody %} | ||||
| <h1>Nope.</h1> | <h1>Nope.</h1> | ||||
| <p>For some reason you are not allowed to do this.</p> | <p>For some reason you are not allowed to do this.</p> | ||||
| {% if user.is_authenticated %} | {% if user.is_authenticated %} | ||||
| <p>Try <a href="{% url 'home' %}">exploring your homepage</a> instead.</p> | <p>Try <a href="{% url 'home' %}">exploring your homepage</a> instead.</p> | ||||
| {% else %} | {% else %} | ||||
| <p>Maybe you'd be allowed after logging in?</p> | <p>Maybe you'd be allowed after logging in?</p> | ||||
| <p><a class="btn btn-primary" href="{% url 'oauth:login' %}">Sign in</a></p> | <p><a class="btn btn-primary" href="{% url 'oauth:login' %}">Sign in</a></p> | ||||
| {% endif %} | {% endif %} | ||||
| {% endblock %} | {% endblock %} | ||||