diff options
author | Aurélien Bompard <aurelien@bompard.org> | 2013-05-17 16:00:14 +0200 |
---|---|---|
committer | Aurélien Bompard <aurelien@bompard.org> | 2013-05-17 16:17:38 +0200 |
commit | 3759498f4ecf5cae88eecf197b1f2cf075bc0565 (patch) | |
tree | d4b5cb4697b3d338fb955a71b0ad9b3f8b4e96d1 /hyperkitty/templates | |
parent | 3640b5249f1afa767dbd997daca628ba18ab949b (diff) | |
download | hyperkitty-3759498f4ecf5cae88eecf197b1f2cf075bc0565.tar.gz hyperkitty-3759498f4ecf5cae88eecf197b1f2cf075bc0565.tar.xz hyperkitty-3759498f4ecf5cae88eecf197b1f2cf075bc0565.zip |
Load the lists descriptions from Mailman dynamically
Diffstat (limited to 'hyperkitty/templates')
-rw-r--r-- | hyperkitty/templates/index.html | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/hyperkitty/templates/index.html b/hyperkitty/templates/index.html index aed1abb..2efe320 100644 --- a/hyperkitty/templates/index.html +++ b/hyperkitty/templates/index.html @@ -16,18 +16,11 @@ <div class="row-fluid"> {% for mlist in all_lists %} <div class="span3"> - <a href="{% url 'list_overview' mlist_fqdn=mlist.name %}"> - <p class="list-name"> - {% if mlist.display_name %} - {{ mlist.display_name }} - {% else %} - {{ mlist.name }} - </p> - {% endif %} + <a href="{% url 'list_overview' mlist_fqdn=mlist.name %}" class="mailinglist"> + <p class="list-name">{{ mlist.name }}</p> <p class="list-address">{{ mlist.name }}</p> - {% if mlist.description %} - <p>{{ mlist.description }}</p> - {% endif %} + <p class="list-description"></p> + <img alt="Loading..." class="ajaxloader" src="{{ STATIC_URL }}img/ajax-loader.gif" /> </a> </div> {% if forloop.counter|divisibleby:"4" %} @@ -45,4 +38,15 @@ {% endblock %} +{% block additionaljs %} + +<script type="text/javascript"> + $(document).ready(function() { + // Load the properties + update_list_properties("{% url 'list_properties' %}"); + }); +</script> + +{% endblock %} + {# vim: set noet: #} |