diff options
author | Michael Elkins <melkins@tislabs.com> | 2011-03-24 21:20:29 +0000 |
---|---|---|
committer | Michael Elkins <melkins@tislabs.com> | 2011-03-24 21:20:29 +0000 |
commit | 3c351a85bfe4026e5caab1991829de4c150e0378 (patch) | |
tree | e4477d92c8c7a8cf94c7a668a1c75308538390f1 /rpkid | |
parent | f8438285d83f460d6fdde9ad084bc8cf8a48673d (diff) |
move base templates into rpki.gui.app
svn path=/rpkid/rpki/gui/app/templates/base.html; revision=3739
Diffstat (limited to 'rpkid')
-rw-r--r-- | rpkid/rpki/gui/app/templates/base.html | 33 | ||||
-rw-r--r-- | rpkid/rpki/gui/app/templates/registration/login.html (renamed from rpkid/rpki/gui/templates/registration/login.html) | 0 | ||||
-rw-r--r-- | rpkid/rpki/gui/templates/base.html | 24 |
3 files changed, 33 insertions, 24 deletions
diff --git a/rpkid/rpki/gui/app/templates/base.html b/rpkid/rpki/gui/app/templates/base.html new file mode 100644 index 00000000..08c89a2e --- /dev/null +++ b/rpkid/rpki/gui/app/templates/base.html @@ -0,0 +1,33 @@ +<html> +<head> + <title>{% block title %}RPKI{% endblock %}</title> + {% block head %}{% endblock %} + <style type="text/css"> + #header { background-color: #00ccff; border-style: solid; border-width: thin; padding-left:2em } + #sidebar { background-color: #dddddd; border-style: none solid solid; border-width: thin; float:left; min-width:9em } + #content { float:left; margin-left:1em } + ul.compact {list-style:none inside; margin-left:1em; padding-left:0} + {% block css %}{% endblock %} + </style> +</head> +<body> + <div id="header"> + {% 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 %} + <h1>RPKI Portal GUI</h1> + </div> + + <div id='sidebar'> + {% block sidebar %}{% endblock %} + </div> + + <div id="content"> + {% block content %}{% endblock %} + </div> +</body> +</html> diff --git a/rpkid/rpki/gui/templates/registration/login.html b/rpkid/rpki/gui/app/templates/registration/login.html index f99e9a25..f99e9a25 100644 --- a/rpkid/rpki/gui/templates/registration/login.html +++ b/rpkid/rpki/gui/app/templates/registration/login.html diff --git a/rpkid/rpki/gui/templates/base.html b/rpkid/rpki/gui/templates/base.html deleted file mode 100644 index a096cdca..00000000 --- a/rpkid/rpki/gui/templates/base.html +++ /dev/null @@ -1,24 +0,0 @@ -<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> |