diff --git a/templates/mailman-django/menu/general.html b/templates/mailman-django/menu/general.html index ab510a8..3674d4f 100644 --- a/templates/mailman-django/menu/general.html +++ b/templates/mailman-django/menu/general.html @@ -103,7 +103,7 @@ </li> <li{% if selected == "description" %}id="selected"{% endif %}> <a href="{% comment %}{% url list_settings list.fqdn_listname %}TODO add List{% endcomment %}"> - {% trans "Description" %} Link:TODO + {% trans "List Description" %} Link:TODO </a> </li> </ul> diff --git a/templates/mailman-django/menu/index.html b/templates/mailman-django/menu/index.html index 3d43fd3..fb6685f 100644 --- a/templates/mailman-django/menu/index.html +++ b/templates/mailman-django/menu/index.html @@ -1,7 +1,20 @@ +{% load i18n %} {% with "new_list" as selected %}<!-- TODO use include "template" instead of with .. as .. end with--> +<ul class="menu"> +<li>{% include "mailman-django/menu/administration.html" %}</li> +<li>{% include "mailman-django/menu/maintanance.html" %}</li> +<li>{% include "mailman-django/menu/general.html" %}</li> +<li>{% include "mailman-django/menu/info.html" %}</li> +<li>{% include "mailman-django/menu/subscriptions.html" %}</li> + {% comment %} {% if user in list.moderator %}{% endcomment %} + ACL:TODO -{% include "mailman-django/menu/administration.html" %} -{% include "mailman-django/menu/maintanance.html" %} -{% include "mailman-django/menu/general.html" %} - + <li{% if selected == "requests" %}id="selected"{% endif %}> + <a href="{% comment %}{% url ... %}TODO add List{% endcomment %}"> + {% trans "Requests" %} Link:TODO + </a> + </li> + {% comment %}{% endif %}{% endcomment %} + +</ul> {% endwith %} diff --git a/templates/mailman-django/menu/info.html b/templates/mailman-django/menu/info.html index e69de29..afd27f1 100644 --- a/templates/mailman-django/menu/info.html +++ b/templates/mailman-django/menu/info.html @@ -0,0 +1,51 @@ +{% load i18n %} + +{% block menu_info %} + Info + <ul class="menu"> + <li{% if selected == "info_list" %}id="selected"{% endif %}> + <a href="{% comment %}{% url ... %}TODO add List{% endcomment %}"> + {% trans "List" %} Link:TODO + </a> + <ul class="menu"> + <li{% if selected == "description" %}id="selected"{% endif %}> + <a href="{% comment %}{% url ... %}TODO add List{% endcomment %}"> + {% trans "Description" %} Link:TODO + </a> + </li> + <li{% if selected == "last_post_at" %}id="selected"{% endif %}> + <a href="{% comment %}{% url ... %}TODO add List{% endcomment %}"> + {% trans "Last post at" %} Link:TODO + </a> + </li> + <li{% if selected == "info_digest_last_sent" %}id="selected"{% endif %}> + <a href="{% comment %}{% url ... %}TODO add List{% endcomment %}"> + {% trans "Last post at" %} Link:TODO + </a> + </li> + <li{% if selected == "created at" %}id="selected"{% endif %}> + <a href="{% comment %}{% url ... %}TODO add List{% endcomment %}"> + {% trans "Created at" %} Link:TODO + </a> + </li> + </ul> + </li> + <li{% if selected == "info_system" %}id="selected"{% endif %}> + <a href="{% comment %}{% url ... %}TODO add List{% endcomment %}"> + {% trans "System" %} Link:TODO + </a> + <ul class="menu"> + <li{% if selected == "info_mail_host" %}id="selected"{% endif %}> + <a href="{% comment %}{% url ... %}TODO add List{% endcomment %}"> + {% trans "Mail Host" %} Link:TODO + </a> + </li> + <li{% if selected == "info_web_host" %}id="selected"{% endif %}> + <a href="{% comment %}{% url ... %}TODO add List{% endcomment %}"> + {% trans "Web Host" %} Link:TODO + </a> + </li> + </ul> + </li> + </ul> +{% endblock%} diff --git a/templates/mailman-django/menu/maintanance.html b/templates/mailman-django/menu/maintanance.html index 14cf9f4..6ac19f3 100644 --- a/templates/mailman-django/menu/maintanance.html +++ b/templates/mailman-django/menu/maintanance.html @@ -68,7 +68,7 @@ </li> </ul> </li> - {% comment %} {% if user in list.moderators %}{% endcomment %} + {% comment %} {% if user in list.admin %}{% endcomment %} ACL:TODO <li{% if selected == "requests" %}id="selected"{% endif %}> <a href="{% comment %}{% url ... %}TODO add List{% endcomment %}"> diff --git a/templates/mailman-django/menu/subsciptions.html b/templates/mailman-django/menu/subsciptions.html deleted file mode 100644 index e69de29..0000000 --- a/templates/mailman-django/menu/subsciptions.html +++ /dev/null diff --git a/templates/mailman-django/menu/subscriptions.html b/templates/mailman-django/menu/subscriptions.html new file mode 100644 index 0000000..0935488 --- /dev/null +++ b/templates/mailman-django/menu/subscriptions.html @@ -0,0 +1,46 @@ +{% load i18n %} + +{% block menu_subscriptions %} + Info + <ul class="menu"> + <li{% if selected == "description" %}id="selected"{% endif %}> + <a href="{% comment %}{% url ... %}TODO add List{% endcomment %}"> + {% trans "Description" %} Link:TODO + </a> + </li> + <li{% if selected == "subscribe" %}id="selected"{% endif %}> + <a href="{% comment %}{% url ... %}TODO add List{% endcomment %}"> + {% trans "Subscribe" %} Link:TODO + </a> + <ul class="menu"> + <li{% if selected == "join_adress" %}id="selected"{% endif %}> + <a href="{% comment %}{% url ... %}TODO add List{% endcomment %}"> + {% trans "Join Adress" %} Link:TODO + </a> + </li> + <li{% if selected == "owner_adress" %}id="selected"{% endif %}> + <a href="{% comment %}{% url ... %}TODO add List{% endcomment %}"> + {% trans "Owner Adress" %} Link:TODO + </a> + </li> + <li{% if selected == "mass_subscribe" %}id="selected"{% endif %}> + <a href="{% comment %}{% url mass_subscribe fqdn_listname %}TODO add List{% endcomment %}"> + {% trans "Mass subscribe" %} + </a> + </li> + </ul> + </li> + <li{% if selected == "remove" %}id="selected"{% endif %}> + <a href="{% comment %}{% url ... %}TODO add List{% endcomment %}"> + {% trans "Remove" %} Link:TODO + </a> + <ul class="menu"> + <li{% if selected == "leave_adress" %}id="selected"{% endif %}> + <a href="{% comment %}{% url ... %}TODO add List{% endcomment %}"> + {% trans "Leave Adress" %} Link:TODO + </a> + </li> + </ul> + </li> + </ul> +{% endblock%}