manager: remove useless link from journal breadcrumb (#47702)
This commit is contained in:
parent
d8cd51c065
commit
e71abfa96f
|
@ -90,7 +90,7 @@ class DateHierarchy:
|
||||||
def back_urls(self):
|
def back_urls(self):
|
||||||
def helper():
|
def helper():
|
||||||
if self.year:
|
if self.year:
|
||||||
yield _('All dates'), self.form.make_url(exclude=['year', 'month', 'day'])
|
yield _('Journal - All dates'), self.form.make_url(exclude=['year', 'month', 'day'])
|
||||||
if self.month:
|
if self.month:
|
||||||
yield str(self.year), self.form.make_url(exclude=['month', 'day'])
|
yield str(self.year), self.form.make_url(exclude=['month', 'day'])
|
||||||
current_datetime = datetime(self.year, self.month or 1, self.day or 1)
|
current_datetime = datetime(self.year, self.month or 1, self.day or 1)
|
||||||
|
@ -103,7 +103,7 @@ class DateHierarchy:
|
||||||
else:
|
else:
|
||||||
yield str(self.year), '#'
|
yield str(self.year), '#'
|
||||||
else:
|
else:
|
||||||
yield _('All dates'), '#'
|
yield _('Journal - All dates'), '#'
|
||||||
|
|
||||||
return list(helper())
|
return list(helper())
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,6 @@
|
||||||
{{ block.super }}
|
{{ block.super }}
|
||||||
{% block breadcrumb-before-title %}
|
{% block breadcrumb-before-title %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
<a href="#">{% trans 'Journal' %}</a>
|
|
||||||
{% for caption, url in date_hierarchy.back_urls %}
|
{% for caption, url in date_hierarchy.back_urls %}
|
||||||
<a href="{{ url }}">{{ caption }}</a>
|
<a href="{{ url }}">{{ caption }}</a>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
|
@ -962,7 +962,7 @@ def test_date_navigation(app, superuser, events):
|
||||||
|
|
||||||
response = response.click('January 2020')
|
response = response.click('January 2020')
|
||||||
response = response.click('2020')
|
response = response.click('2020')
|
||||||
response = response.click('All dates')
|
response = response.click('Journal - All dates')
|
||||||
|
|
||||||
|
|
||||||
def test_search(app, superuser, events):
|
def test_search(app, superuser, events):
|
||||||
|
|
Loading…
Reference in New Issue