Files
ivatar/templates/base.html
2018-05-07 15:00:03 +02:00

46 lines
1.4 KiB
HTML

{% extends 'bootstrap.html' %}
{% load static %}
{% load bootstrap4 %}
{% load i18n %}<!DOCTYPE HTML>
{% spaceless %}{% block bootstrap4_content %}<html>
{% include 'header.html' %}
<body>
<div id="header">
<div>
<div id="logo">
<a href="{{ site_url }}"><img src="{% static 'img/logo.png' %}" height="60" width="60" alt="{% trans 'Home' %}"></a>
</div>
<div id="site-branding">
<span id="site-name">i<span class="bolder">vatar</span></span>
<br>{% trans 'freeing the web one face at a time' %}
</div>
</div>
{% autoescape off %}{% bootstrap_messages %}{% endautoescape %}
<div id="account">
{% if user.is_authenticated %}
<a href="{% url 'profile' %}">{% trans 'Profile' %}</a>&nbsp;|&nbsp;
<a href="{{ contact_us }}">{% trans 'Contact Us' %}</a>&nbsp;|&nbsp;
<a href="{{ security_url }}">{% trans 'Security' %}</a>&nbsp;|&nbsp;
<a href="{% url 'logout' %}" id="logout-link">{% trans 'Logout' %}</a>
{% else %}
<a href="{{ contact_us }}">{% trans 'Contact Us' %}</a>&nbsp;|&nbsp;
<a href="{{ security_url }}">{% trans 'Security' %}</a>&nbsp;|&nbsp;
<a href="{% url 'login' %}">{% trans 'Login' %}</a>
{% endif %}
</div>
</div>
<div id="outer">
<div id="content">
{% block content %}{% endblock content %}
</div>
</div>
{% block footer %}{% include 'footer.html' %}{% endblock footer %}
</body>
</html>{% endblock %}{% endspaceless %}