mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-17 05:41:25 +02:00
New plugin that allows the handling of an Amavisd-new SQL quarantine. NB: a DB connections manager has been added inside the lib because Django does not support multiple connections at the same time. The main consequence is that we don't use an ORM and that we have to rewrite a small wrapper that supports several DB (mysql, postgresql, etc.). Adding a dependancy to an existing ORM module (like SQLalchemy) is heavy, we don't want that for now.
106 lines
3.3 KiB
HTML
106 lines
3.3 KiB
HTML
{% load i18n %}
|
|
{% load main_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>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
<title>MailNG - {%block pagetitle %}{% endblock %}</title>
|
|
<link rel="stylesheet" type="text/css" href="/static/stylesheets/basic.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/SqueezeBox.js" type="text/javascript"></script>
|
|
{% url django.views.i18n.javascript_catalog as catalog_url %}
|
|
<script type="text/javascript" src="/jsi18n/"></script>
|
|
{%block html_head %}{% endblock %}
|
|
</head>
|
|
|
|
<body>
|
|
<div id="header" class="rounded">
|
|
<div id="logo"></div>
|
|
<div id="title">
|
|
<h1>MailNG</h1>
|
|
<h2>Simple virtual domains</h2>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="body">
|
|
{% if user.is_authenticated %}
|
|
<div id="leftcol">
|
|
<div id="userbox" class="leftbox">
|
|
{% if user.first_name %}
|
|
<h3>{{ user.first_name }} {{ user.last_name }}</h3>
|
|
{% else %}
|
|
<h3>{{ user.username }}</h3>
|
|
{% endif %}
|
|
<ul>
|
|
{% if user.is_superuser or perms.admin.view_domain %}
|
|
<li>
|
|
{% url admin.views.domains as dom_url %}
|
|
<a href="{{ dom_url }}">
|
|
<img src="/static/pics/settings.png" border="0" />{% trans "Admin" %}</a>
|
|
</li>
|
|
{% endif %}
|
|
{% if not user.is_superuser %}
|
|
<li>
|
|
{% url main.views.index as index_url %}
|
|
<a href="{{ index_url }}">
|
|
<img src="/static/pics/user.png" border="0" />{% trans "Preferences" %}</a>
|
|
</li>
|
|
{% endif %}
|
|
{% loadextmenu perms %}
|
|
<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>
|
|
<br/>
|
|
{% if user.is_superuser %}
|
|
<div id="menubox" class="leftbox">
|
|
<ul>
|
|
<li>
|
|
{% url admin.views.newdomain as newdom_url %}
|
|
<a href="{{ newdom_url }}" class="boxed"
|
|
rel="{handler:'iframe',size:{x:300,y:200}}">
|
|
<img src="/static/pics/add.png" border="0"/>
|
|
{% trans "New domain" %}
|
|
</a>
|
|
</li>
|
|
<li>
|
|
{% url admin.views.domains as dom_url %}
|
|
<a href="{{ dom_url }}">
|
|
<img src="/static/pics/domains.png" border="0"/>
|
|
{% trans "Domains" %}
|
|
</a>
|
|
</li>
|
|
<li>
|
|
{% url admin.views.settings as settings_url %}
|
|
<a href="{{ settings_url }}">
|
|
<img src="/static/pics/settings.png" border="0"/>
|
|
{% trans "Settings" %}
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
{% endif %}
|
|
{% block leftmenu %}{% endblock %}
|
|
</div>
|
|
|
|
<div id="content">
|
|
{% else %}
|
|
<div id="content2">
|
|
{% endif %}
|
|
{% block content %}{% endblock %}
|
|
</div>
|
|
</div>
|
|
|
|
<div class="spacer"></div>
|
|
|
|
<div id="footer">
|
|
© Antoine Nguyen 2009
|
|
</div>
|
|
</body>
|
|
</html>
|