diff --git a/core/templates/core/timer_detail.html b/core/templates/core/timer_detail.html index bf64e559..f37f54d2 100644 --- a/core/templates/core/timer_detail.html +++ b/core/templates/core/timer_detail.html @@ -11,12 +11,15 @@ {{ object.current_duration|minutes }}m {{ object.current_duration|seconds }}s -

+

Started {{ object.start }} {% if not object.active %} / Stopped {{ object.end }} {% endif %}

+

+ Created by {{ object.user }} +

{% if perms.core.add_feeding %} {% endif %} + + {% for timer in timers %} - - - {{ timer }} + {{ timer }} ({{ timer.user }}) + {% empty %} + None {% endfor %} \ No newline at end of file diff --git a/core/templatetags/timers.py b/core/templatetags/timers.py index 9d4fd24e..80810a2e 100644 --- a/core/templatetags/timers.py +++ b/core/templatetags/timers.py @@ -12,7 +12,7 @@ register = template.Library() @register.inclusion_tag('core/timer_nav.html', takes_context=True) def timer_nav(context, active=True): request = context['request'] or None - timers = Timer.objects.filter(user=request.user, active=active) + timers = Timer.objects.filter(active=active) perms = context['perms'] or None # The 'next' parameter is currently not used. return {'timers': timers, 'perms': perms, 'next': request.path}