forked from rc/aircox
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.update(self.get_date_context())
|
||||||
context['object_list'] = self.get_queryset(context)
|
context['object_list'] = self.get_queryset(context)
|
||||||
context['target'] = self.target
|
context['target'] = self.target
|
||||||
|
if not self.nav_visible:
|
||||||
if self.nav_visible:
|
|
||||||
context['nav_dates'] = None
|
context['nav_dates'] = None
|
||||||
return context
|
return context
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,6 @@
|
||||||
<div class="list date_list">
|
<div class="list date_list">
|
||||||
{% if nav_dates %}
|
{% if nav_dates %}
|
||||||
<nav class="nav_dates">
|
<nav class="nav_dates">
|
||||||
{{ target }}
|
|
||||||
{% if target %}
|
{% if target %}
|
||||||
<a href="{{ target.url }}?date={{ nav_dates.today|date:"Y-m-d" }}" title="{% trans "go to today" %}">○</a>
|
<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