summaryrefslogtreecommitdiffstats
path: root/hyperkitty
diff options
context:
space:
mode:
Diffstat (limited to 'hyperkitty')
-rw-r--r--hyperkitty/templatetags/storm.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/hyperkitty/templatetags/storm.py b/hyperkitty/templatetags/storm.py
index b2112d2..0195dc7 100644
--- a/hyperkitty/templatetags/storm.py
+++ b/hyperkitty/templatetags/storm.py
@@ -33,3 +33,7 @@ def count(expr):
@register.filter(name="strip_subject")
def strip_subject(subject, mlist):
return stripped_subject(mlist, subject)
+
+@register.filter(name="shorten_list_name")
+def shorten_list_name(mlist):
+ return mlist.name.title().split('@')[0]