target update

This commit is contained in:
bkfox 2017-01-11 19:26:23 +01:00
parent ddc0862849
commit 01bf32418c
2 changed files with 1 additions and 3 deletions

View File

@ -1016,8 +1016,7 @@ class SectionTimetable(SectionItem,DatedListBase):
context.update(self.get_date_context())
context['object_list'] = self.get_queryset(context)
context['target'] = self.target
if self.nav_visible:
if not self.nav_visible:
context['nav_dates'] = None
return context

View File

@ -4,7 +4,6 @@
<div class="list date_list">
{% if nav_dates %}
<nav class="nav_dates">
{{ target }}
{% if target %}
<a href="{{ target.url }}?date={{ nav_dates.today|date:"Y-m-d" }}" title="{% trans "go to today" %}"></a>