diff options
Diffstat (limited to 'rpkid/portal-gui/templates/base.html')
-rw-r--r-- | rpkid/portal-gui/templates/base.html | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/rpkid/portal-gui/templates/base.html b/rpkid/portal-gui/templates/base.html new file mode 100644 index 00000000..a096cdca --- /dev/null +++ b/rpkid/portal-gui/templates/base.html @@ -0,0 +1,24 @@ +<html> +<head> + <title>{% block title %}MyRPKI{% endblock %}</title> + {% block head %}{% endblock %} + <style type="text/css"> + {% block css %}{% endblock %} + </style> +</head> +<body> + <div id="header"> + <h1>RPKI Portal GUI</h1> + </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> |