diff options
author | Aurélien Bompard <aurelien@bompard.org> | 2012-10-05 15:01:59 +0200 |
---|---|---|
committer | Aurélien Bompard <aurelien@bompard.org> | 2012-10-05 15:01:59 +0200 |
commit | c7570addec98c4e7695d83202650b9296e47c957 (patch) | |
tree | 147cd9e6e981acdd11efd6fd3950d8f936f8ae42 /hyperkitty/views/list.py | |
parent | cd1a2d5f2ec738ab2f17c86dcabe8733a682aa4f (diff) | |
download | hyperkitty-c7570addec98c4e7695d83202650b9296e47c957.tar.gz hyperkitty-c7570addec98c4e7695d83202650b9296e47c957.tar.xz hyperkitty-c7570addec98c4e7695d83202650b9296e47c957.zip |
Improve appearance
Diffstat (limited to 'hyperkitty/views/list.py')
-rw-r--r-- | hyperkitty/views/list.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/hyperkitty/views/list.py b/hyperkitty/views/list.py index 134ee23..d8ea29a 100644 --- a/hyperkitty/views/list.py +++ b/hyperkitty/views/list.py @@ -82,11 +82,11 @@ def archives(request, mlist_fqdn, year=None, month=None, day=None): begin_date = datetime(today.year, today.month, 1) end_date = datetime(today.year, today.month + 1, 1) month_string = 'Past thirty days' - list_name = mlist_fqdn.split('@')[0] search_form = SearchForm(auto_id=False) t = loader.get_template('month_view.html') store = get_store(request) + mlist = store.get_list(mlist_fqdn) threads = store.get_threads(mlist_fqdn, start=begin_date, end=end_date) @@ -159,7 +159,7 @@ def archives(request, mlist_fqdn, year=None, month=None, day=None): archives_length = get_months(store, mlist_fqdn) c = RequestContext(request, { - 'list_name' : list_name, + 'mlist' : mlist, 'objects': threads.object_list, 'page': pageNo, 'has_previous': threads.has_previous(), @@ -184,7 +184,6 @@ def list(request, mlist_fqdn=None): return HttpResponseRedirect('/') t = loader.get_template('recent_activities.html') search_form = SearchForm(auto_id=False) - list_name = mlist_fqdn.split('@')[0] # Get stats for last 30 days today = datetime.utcnow() @@ -192,6 +191,7 @@ def list(request, mlist_fqdn=None): begin_date = end_date - timedelta(days=32) store = get_store(request) + mlist = store.get_list(mlist_fqdn) threads = store.get_threads(list_name=mlist_fqdn, start=begin_date, end=end_date) @@ -253,7 +253,7 @@ def list(request, mlist_fqdn=None): threads_per_category = {} c = RequestContext(request, { - 'list_name' : list_name, + 'mlist' : mlist, 'list_address': mlist_fqdn, 'search_form': search_form, 'month': 'Recent activity', |