mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-20 06:08:35 +02:00
* Use of jQuery in place of Mootools * Most of the custom mootools plugins have been ported to jQuery * Use of bootstrap from Twitter in place of the old CSS * Most of the admin templates have been reworked * The sievefilters extension has been ported * The postfix autoreply extension is almost done * more... see #204
46 lines
1.9 KiB
HTML
46 lines
1.9 KiB
HTML
{% load i18n %}
|
|
{% for entry in entries %}
|
|
{% if entry.separator %}
|
|
<li class="divider"> </li>
|
|
{% else %}
|
|
{% if entry.menu %}
|
|
<li class="dropdown {{ entry.class }}{% if selection == entry.name %} selected{% endif %}">
|
|
<a class="dropdown-toggle" data-toggle="dropdown" href="{{ entry.url }}">
|
|
{% if entry.img %}<i class="{{ entry.img }}"></i>{% endif %}
|
|
{{ entry.label }}
|
|
</a>
|
|
<ul class="dropdown-menu"
|
|
{% if entry.width %}style="width: {{ entry.width }}px"{% endif %}>
|
|
{% for sentry in entry.menu %}
|
|
<li>
|
|
<a href="{{ sentry.url }}" name="{{ sentry.name }}"
|
|
{% if sentry.modal %}data-toggle="ajaxmodal{% if sentry.autowidth %}-autowidth{% endif %}"{% endif %}
|
|
{% if sentry.modalcb %}modalcb="{{ entry.modalcb }}"{% endif %}
|
|
{% if sentry.class %}class={{ sentry.class }}{% endif %}
|
|
{% if sentry.rel %}rel={{ sentry.rel }}{% endif %}
|
|
{% if sentry.confirm %} onclick="return confirm('{{ sentry.confirm }}')"{% endif %}>
|
|
{% if sentry.img %}<i class="{{ sentry.img }}"></i>{% endif %}
|
|
{{ sentry.label }}
|
|
</a>
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
</li>
|
|
{% else %}
|
|
<li {% if selection == entry.name %}class="active"{% endif %}>
|
|
{% if not entry.disabled %}
|
|
<a href="{{ entry.url }}" name="{{ entry.name }}"
|
|
{% if entry.modal %}data-toggle="ajaxmodal{% if entry.autowidth %}-autowidth{% endif %}"{% endif %}
|
|
{% if entry.modalcb %}modalcb="{{ entry.modalcb }}"{% endif %}
|
|
{% if entry.class %}class={{ entry.class }}{% endif %}
|
|
{% if entry.rel %}rel={{ entry.rel }}{% endif %}
|
|
{% if entry.confirm %} onclick="return confirm('{{ entry.confirm }}')"{% endif %}>
|
|
{% endif %}
|
|
{% if entry.img %}<i class="{{ entry.img }}"></i>{% endif %}
|
|
{{ entry.label }}
|
|
{% if not entry.disabled %}</a>{% endif %}
|
|
</li>
|
|
{% endif %}
|
|
{% endif %}
|
|
{% endfor %}
|