summaryrefslogtreecommitdiffstats
path: root/lib/toaster/toastergui/templatetags/projecttags.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/toaster/toastergui/templatetags/projecttags.py')
-rw-r--r--lib/toaster/toastergui/templatetags/projecttags.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/toaster/toastergui/templatetags/projecttags.py b/lib/toaster/toastergui/templatetags/projecttags.py
index 0ccf73a61..54700e384 100644
--- a/lib/toaster/toastergui/templatetags/projecttags.py
+++ b/lib/toaster/toastergui/templatetags/projecttags.py
@@ -125,6 +125,8 @@ def filtered_icon(options, filter):
for option in options:
if filter == option[1]:
return "btn-primary"
+ if ('daterange' == option[1]) and filter.startswith(option[4]):
+ return "btn-primary"
return ""
@register.filter
@@ -134,6 +136,8 @@ def filtered_tooltip(options, filter):
for option in options:
if filter == option[1]:
return "Showing only %s"%option[0]
+ if ('daterange' == option[1]) and filter.startswith(option[4]):
+ return "Showing only %s"%option[0]
return ""
@register.filter