mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-12-04 12:24:09 +01:00
Simple gender handling in translations (for languages like french which need
this feature). Back to previous 'locale' location because it's not possible to access translations that are defined inside the 'templates' directory while scanning with django-admin.py from the 'admin' directory.
This commit is contained in:
@@ -11,10 +11,10 @@
|
||||
{% else %}
|
||||
<table>
|
||||
<tr>
|
||||
<th width="50px">Actions</th>
|
||||
<th width="150px">Address</th>
|
||||
<th width="200px">Mailbox</th>
|
||||
<th width="75px">Enabled</th>
|
||||
<th width="50px">{% trans "Actions" %}</th>
|
||||
<th width="150px">{% trans "Address" %}</th>
|
||||
<th width="200px">{% trans "Mailbox" %}</th>
|
||||
<th width="75px">{% trans "Enabled" %}</th>
|
||||
</tr>
|
||||
{% for alias in aliases %}
|
||||
<tr>
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
<script src="/static/js/form.js" type="text/javascript"></script>
|
||||
{% endblock %}
|
||||
{% block content %}
|
||||
{% load i18n %}
|
||||
<div class="title"><h1>Alias {{ alias.address }}</h1></div>
|
||||
{% if error %}<div class="error">{{ error }}</div>{% endif %}
|
||||
{% url admin.views.editalias alias.mbox.domain.id alias.id as edit_url %}
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
{% extends "admin/layout.html" %}
|
||||
|
||||
{%block pagetitle %}Administration{%endblock %}
|
||||
{%block breadcrumb %}Domains{%endblock %}
|
||||
{% block html_head %}
|
||||
<script src="/static/js/domains.js" type="text/javascript"></script>
|
||||
{% endblock %}
|
||||
|
||||
|
||||
{% block content %}
|
||||
{% include default %}
|
||||
{% endblock %}
|
||||
@@ -1,22 +0,0 @@
|
||||
{% extends "admin/layout.html" %}
|
||||
{% block html_head %}{% endblock %}
|
||||
{% block content %}
|
||||
<div class="header">
|
||||
<h1>Mailbox {{ mbox.address }}@{{ mbox.domain.name }}</h1>
|
||||
</div>
|
||||
|
||||
<div id="menubar" class="menu2">
|
||||
{% block menu %}{% endblock %}
|
||||
</div>
|
||||
|
||||
<div id="mboxcontent">
|
||||
<div class="row">
|
||||
<label>Name :</label><label>{{ mb.name }}</label>
|
||||
</div>
|
||||
|
||||
<h2>Aliases</h2>
|
||||
{% for alias in aliases %}
|
||||
{{ alias.address }}
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endblock %}
|
||||
@@ -15,7 +15,7 @@
|
||||
<th width="130px">{% trans "Name" %}</th>
|
||||
<th width="170px">{% trans "Address" %}</th>
|
||||
<th width="60px">{% trans "Quota" %}</th>
|
||||
<th width="50px">{% trans "Enabled" %}</th>
|
||||
<th width="50px">{{ "Enabled"|gender:"f" }}</th>
|
||||
</tr>
|
||||
{% for mb in mailboxes %}
|
||||
<tr class="{% cycle 'odd' 'even' %}">
|
||||
|
||||
@@ -1,14 +0,0 @@
|
||||
{% extends "admin/layout_simple.html" %}
|
||||
{% block html_head %}
|
||||
<script src="/static/js/form.js" type="text/javascript"></script>
|
||||
{% endblock %}
|
||||
{% block content %}
|
||||
<div class="title"><h1>Aliases for {{ mbox.address }}</h1></div>
|
||||
<p>
|
||||
<ul>
|
||||
{% for alias in aliases %}
|
||||
<li>{{alias.address}}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</p>
|
||||
{% endblock %}
|
||||
@@ -1,36 +0,0 @@
|
||||
<!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>
|
||||
{%block html_head %}{% endblock %}
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="header" class="rounded">
|
||||
<div id="logo"></div>
|
||||
<div id="title">
|
||||
<h1>MailNG</h1>
|
||||
<h2>Simple web messaging solution</h2>
|
||||
|
||||
<div id="info"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="content">
|
||||
{%block content %}{% endblock %}
|
||||
</div>
|
||||
|
||||
<div class="spacer"></div>
|
||||
|
||||
<div id="footer">
|
||||
© Antoine Nguyen 2009
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user