summaryrefslogtreecommitdiffstats
path: root/hyperkitty/views/list.py
diff options
context:
space:
mode:
authorAurélien Bompard <aurelien@bompard.org>2013-02-14 16:28:50 +0100
committerAurélien Bompard <aurelien@bompard.org>2013-02-14 16:28:50 +0100
commit3ae10864b6289edbc4d756bad5d6a4276f0ab368 (patch)
treed45c71fa3daf5c8451aaf64723afb29f2480b887 /hyperkitty/views/list.py
parenta5a7c229d1cd45d51a09133f2355f4d26618c4fa (diff)
downloadhyperkitty-3ae10864b6289edbc4d756bad5d6a4276f0ab368.tar.gz
hyperkitty-3ae10864b6289edbc4d756bad5d6a4276f0ab368.tar.xz
hyperkitty-3ae10864b6289edbc4d756bad5d6a4276f0ab368.zip
The user profile page is now editable (#32)
Diffstat (limited to 'hyperkitty/views/list.py')
-rw-r--r--hyperkitty/views/list.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/hyperkitty/views/list.py b/hyperkitty/views/list.py
index 26d27ed..a9e5071 100644
--- a/hyperkitty/views/list.py
+++ b/hyperkitty/views/list.py
@@ -141,9 +141,11 @@ def _thread_list(request, mlist, threads, template_name='thread_list.html', extr
# If page is out of range (e.g. 9999), deliver last page of results.
threads = paginator.page(paginator.num_pages)
+ flash_messages = []
flash_msg = request.GET.get("msg")
if flash_msg:
- flash_msg = FLASH_MESSAGES[flash_msg]
+ flash_msg = { "type": "success", "msg": FLASH_MESSAGES[flash_msg] }
+ flash_messages.append(flash_msg)
context = {
'mlist' : mlist,
@@ -152,7 +154,7 @@ def _thread_list(request, mlist, threads, template_name='thread_list.html', extr
'threads': threads,
'participants': len(participants),
'months_list': get_months(store, mlist.name),
- 'flash_msg': flash_msg,
+ 'flash_messages': flash_messages,
}
context.update(extra_context)
return render(request, template_name, context)