Newer
Older
postorius / templates / mailman-django / domain_index.html
@benste benste on 16 Aug 2011 1 KB added mm_clear to some templates
  1. {% extends "mailman-django/base.html" %}
  2. {% load i18n %}
  3.  
  4. {% block heading %}
  5. {% trans "Domain Index" %}
  6. {% endblock %}
  7.  
  8. {% block header %}
  9. <div class="mm_box mm_clear">
  10. <div class="mm_boxHeader">{% trans "About" %}</div>
  11. This site allows to register a new Domain, due to restriction in the REST API we can't delete them here yet. Please modify the Mailman DB directly if you need to remove a Domain. If interested take a look at the <a href="https://bugs.launchpad.net/mailmanwebgsoc2011/+bug/799689"> Launchapd Bug Report.</a> In addition we can't modify them yet.
  12. </p>
  13. </div>
  14. {% endblock %}
  15. {% block actionButtonsList %}
  16. <ul class="mm_actionButtons">
  17. <li class="mm_new_domain"><a href="{% url domain_new %}">{% trans "New Domain" %}</a></li>
  18. {% if not domain == "unregistered Domain" %}
  19. <li class="mm_delete_domain">
  20. <a href="#JS delete_domain">{% trans "Delete Domain" %}</br>
  21. {{domain}}
  22. </a>
  23. </li>
  24. {% endif %}
  25. </ul>
  26. {% endblock %}
  27.  
  28. {% block smallBoxLeft %}
  29. {% for domain in domains %}
  30. <div class="mm_box mm_smallBox {% cycle 'mm_clear' '' %}">
  31. <div class="mm_boxHeader">{{ domain.contact_address }}</div>
  32. <ul>
  33. <li><a href="http://{{ domain.base_url }}">{{ domain.base_url }}</a></li>
  34. {% if domain.description %}
  35. <li>{{ domain.description }}</li>
  36. {% endif %}
  37. </ul>
  38. </div>
  39. {% endfor %}
  40. {% endblock %}