target update
This commit is contained in:
parent
01bf32418c
commit
9ad07e60b9
|
@ -1017,7 +1017,7 @@ class SectionTimetable(SectionItem,DatedListBase):
|
||||||
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 not self.nav_visible:
|
||||||
context['nav_dates'] = None
|
del context['nav_dates']['dates'];
|
||||||
return context
|
return context
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
{# FIXME: get current complete URL #}
|
{# FIXME: get current complete URL #}
|
||||||
<div class="list date_list">
|
<div class="list date_list">
|
||||||
{% if nav_dates %}
|
{% if nav_dates.dates %}
|
||||||
<nav class="nav_dates">
|
<nav class="nav_dates">
|
||||||
{% 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