Newer
Older
postorius / templates / mailman-django / list_selector.html
  1. {% load i18n %}
  2.  
  3. {% block selector %}
  4. <div id="list_selector">
  5. {%if lists|length >= 1 and lists|length <= 15 %}
  6. <form id=list_selector method="post" action="/lists/">
  7. <select name="list">
  8. {% for list in lists %}
  9. {% if list.settings.advertised %}
  10. <option selected="" value="{{list.fqdn_listname}}">{{list.real_name}}</option>
  11. {% endif %}
  12. {% endfor %}
  13. </select>
  14. <input type="submit" value="Go to">
  15. </div></form>
  16. </form>
  17. {% else %}
  18. <a href="{% url list_index %}">{% trans "List Index" %}</a>
  19. {%endif%}
  20. </div>
  21. {% endblock %}