diff options
-rw-r--r-- | hyperkitty/templates/base.html | 2 | ||||
-rw-r--r-- | hyperkitty/templates/index.html | 2 | ||||
-rw-r--r-- | hyperkitty/views/pages.py | 6 |
3 files changed, 4 insertions, 6 deletions
diff --git a/hyperkitty/templates/base.html b/hyperkitty/templates/base.html index 6f48158..6af6d1e 100644 --- a/hyperkitty/templates/base.html +++ b/hyperkitty/templates/base.html @@ -38,7 +38,7 @@ <ul class="nav"> - <li {% if not mlist %} class="active"{% endif %}> + <li {% if all_lists %} class="active"{% endif %}> <a href="{% url root %}">All lists</a> </li> diff --git a/hyperkitty/templates/index.html b/hyperkitty/templates/index.html index 409e4f1..68b4520 100644 --- a/hyperkitty/templates/index.html +++ b/hyperkitty/templates/index.html @@ -13,7 +13,7 @@ <h1 class="lists">{% trans 'Available lists' %}</h1> <div class="row-fluid"> -{% for mlist in lists %} +{% for mlist in all_lists %} <div class="span3"> <a href="{% url list_overview mlist_fqdn=mlist.name %}"> <p class="list-name"> diff --git a/hyperkitty/views/pages.py b/hyperkitty/views/pages.py index bad7166..92a41c7 100644 --- a/hyperkitty/views/pages.py +++ b/hyperkitty/views/pages.py @@ -27,8 +27,6 @@ from forms import SearchForm def index(request): - search_form = SearchForm(auto_id=False) - base_url = settings.MAILMAN_API_URL % { 'username': settings.MAILMAN_USER, 'password': settings.MAILMAN_PASS} @@ -36,7 +34,7 @@ def index(request): lists = store.get_lists() context = { - 'lists': lists, - 'search_form': search_form, + 'all_lists': lists, + 'search_form': SearchForm(auto_id=False), } return render(request, "index.html", context) |