target update
This commit is contained in:
parent
ddc0862849
commit
01bf32418c
|
@ -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
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user