Files
modoboa/templates/nlayout.html
T
tonio f9f2a9e546 Added fixtures for initial admin data.
perms object is no longer passed to builtins or filters, we use user instead
(it seems that perms content is different with Django 1.2)

#48 : I think I've found a way to include templatetags dynamically, using add_to_builtins.
2010-05-25 18:31:11 +02:00

93 lines
3.2 KiB
HTML

{% load i18n %}
{% load uprefs_extras %}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head profile="http://www.w3.org/2005/10/profile">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>MailNG - {%block pagetitle %}{% endblock %}</title>
<link rel="icon" type="image/png" href="/static/stylesheets/logo-icon.png" />
<link rel="stylesheet" type="text/css" href="/static/stylesheets/default.css" />
<link rel="stylesheet" type="text/css" href="/static/stylesheets/SqueezeBox.css" />
<script src="/static/js/mootools.js" type="text/javascript"></script>
<script src="/static/js/mootools-more.js" type="text/javascript"></script>
<script src="/static/js/SqueezeBox.js" type="text/javascript"></script>
<script src="/static/js/infobox.js" type="text/javascript"></script>
<script src="/static/js/common.js" type="text/javascript"></script>
{% url django.views.i18n.javascript_catalog as catalog_url %}
<script type="text/javascript" src="{{ catalog_url }}"></script>
{%block html_head %}{% endblock %}
</head>
<body>
<div id="container">
<div id="topmenubar" class="uibar menubar">
<div class="left" style="width: 50%">
<ul>
{% loadextmenu user %}
{% uprefs_menu user %}
{% if user.is_superuser or perms.admin.view_domain %}
<li class="dropdown topdropdown">
<img src="/static/pics/admin.png" border="0" />
<label>{% trans "Admin" %}</label>
<ul class="links">
<li>
<a href="{% url admin.views.domains %}">
<img src="/static/pics/domains.png" />{% trans "Domains" %}
</a>
</li>
{% if user.is_superuser %}
<li>
<a href="{% url admin.views.settings %}">
<img src="/static/pics/settings.png" border="0"/>
{% trans "Settings" %}
</a>
</li>
{% endif %}
</ul>
</li>
{% endif %}
</ul>
</div>
<div class="right">
<ul>
<li class="title">
{% if user.first_name %}
{{ user.first_name }} {{ user.last_name }}
{% else %}
{{ user.username }}
{% endif %}
/
</li>
<li>
{% url django.contrib.auth.views.logout_then_login as logout_url %}
<a href="{{ logout_url }}">
<img src="/static/pics/logout.png" border="0" />{% trans "Logout" %}</a>
</li>
</ul>
</div>
</div>
<div id="page">
<div id="header">
<img class="logo" src="/static/stylesheets/mailng.png" />
<h1>{% block middletitle %}{% endblock %}</h1>
<div id="menubar" class="menubar">
{% block menu %}{% endblock %}
</div>
</div>
<div id="content">
{% block content %}{% endblock %}
</div>
</div>
<div id="footer" class="uibar">
&nbsp;
{% block footer %}{% endblock %}
</div>
</div>
</body>
</html>