diff options
author | Aurélien Bompard <aurelien@bompard.org> | 2013-02-04 12:13:34 +0100 |
---|---|---|
committer | Aurélien Bompard <aurelien@bompard.org> | 2013-02-04 12:57:51 +0100 |
commit | 0746b9db3c828b90885d81ce64bbd33fe03c8a26 (patch) | |
tree | 282ccce7825c1ef969c08dbdd6811f9135c7005b /hyperkitty | |
parent | 1ab795172026bc585b890f8e53f56b68f6541fe6 (diff) | |
download | hyperkitty-0746b9db3c828b90885d81ce64bbd33fe03c8a26.tar.gz hyperkitty-0746b9db3c828b90885d81ce64bbd33fe03c8a26.tar.xz hyperkitty-0746b9db3c828b90885d81ce64bbd33fe03c8a26.zip |
Display the list description on the front page
Diffstat (limited to 'hyperkitty')
-rw-r--r-- | hyperkitty/static/css/hyperkitty.css | 2 | ||||
-rw-r--r-- | hyperkitty/templates/index.html | 11 | ||||
-rw-r--r-- | hyperkitty/views/pages.py | 4 |
3 files changed, 12 insertions, 5 deletions
diff --git a/hyperkitty/static/css/hyperkitty.css b/hyperkitty/static/css/hyperkitty.css index 0ce2c98..6017c74 100644 --- a/hyperkitty/static/css/hyperkitty.css +++ b/hyperkitty/static/css/hyperkitty.css @@ -36,10 +36,12 @@ ul.lists li a { -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px; + color: black; } ul.lists li a:hover { text-decoration: none; background-color: #eee; + color: black; } diff --git a/hyperkitty/templates/index.html b/hyperkitty/templates/index.html index 909675a..dee58a5 100644 --- a/hyperkitty/templates/index.html +++ b/hyperkitty/templates/index.html @@ -14,9 +14,14 @@ <ul class="lists unstyled"> {% for mlist in lists %} <li> - <a href="{% url list_overview mlist_fqdn=mlist %}"> - <p class="list-name">{{ mlist }}</p> - <p>overview{% if mlist.display_name %} of {{ mlist.display_name }}{% endif %}</p> + <a href="{% url list_overview mlist_fqdn=mlist.name %}"> + <p class="list-name">{{ mlist.name }}</p> + {% if mlist.display_name %} + <p>{{ mlist.display_name }}</p> + {% endif %} + {% if mlist.description %} + <p>{{ mlist.description }}</p> + {% endif %} </a> </li> {% endfor %} diff --git a/hyperkitty/views/pages.py b/hyperkitty/views/pages.py index c444cfd..4fc27d4 100644 --- a/hyperkitty/views/pages.py +++ b/hyperkitty/views/pages.py @@ -49,10 +49,10 @@ def index(request): 'username': settings.MAILMAN_USER, 'password': settings.MAILMAN_PASS} store = get_store(request) - list_data = store.get_list_names() + lists = store.get_lists() c = RequestContext(request, { - 'lists': list_data, + 'lists': lists, 'search_form': search_form, }) return HttpResponse(t.render(c)) |