mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-12-03 12:14:12 +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 %}
|
||||
Reference in New Issue
Block a user