diff options
Diffstat (limited to 'portal-gui/templates/base.html')
-rw-r--r-- | portal-gui/templates/base.html | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/portal-gui/templates/base.html b/portal-gui/templates/base.html new file mode 100644 index 00000000..7645cf9f --- /dev/null +++ b/portal-gui/templates/base.html @@ -0,0 +1,25 @@ +<html> +<head> + <title>{% block title %}MyRPKI{% endblock %}</title> + {% block head %}{% endblock %} + <style type="text/css"> + {% block css %}{% endblock %} + </style> +</head> +<body> + <div id="header"> + <img src="/site_media/img/my.png"/> + <img src="/site_media/img/rpki.png"/> + </div> + <div id="content"> + {% if user.is_authenticated %} + <span style="float: right; font-size: 80%;">Logged in as {{ user }} | + {% if user.is_staff %}<a href="/admin/">admin</a> |{% endif %} + <a href="{% url django.contrib.auth.views.logout %}">Log Out</a></span> + {% else %} + <span style="float: right; font-size: 80%;"><a href="{% url django.contrib.auth.views.login %}">Log In</a></span> + {% endif %} + {% block content %}{% endblock %} + </div> +</body> +</html> |