Fix back link

This commit is contained in:
Edgar P. Burkhart 2024-01-04 17:16:13 +01:00
parent e41b989862
commit 67e71b717b
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227
3 changed files with 23 additions and 19 deletions

View file

@ -311,7 +311,7 @@ ul.messages {
grid-column: 2;
text-align: right;
.big-link {
a {
margin-right: 0;
margin-left: 1em;
[class^="ri-"] {

View file

@ -19,20 +19,26 @@
<h2>
{% block h2 %}{% endblock %}
</h2>
{% if account %}
<p>
<a class="big-link" href="{{ account.get_absolute_url }}">{{ account.icon|remix }}{{ account }}</a>
</p>
{% endif %}
{% if category %}
<p>
<a class="big-link" href="{{ category.get_absolute_url }}">{{ category.icon|remix }}{{ category }}</a>
</p>
{% endif %}
{% if search %}
<p>
<a href="{% url "search" %}">{% translate "Search" %}</a>
</p>
{% if account or category or search %}
<div class="backlinks">
{% block backlinks %}
{% if account %}
<p>
<a class="big-link" href="{{ account.get_absolute_url }}">{{ account.icon|remix }}{{ account }}</a>
</p>
{% endif %}
{% if category %}
<p>
<a class="big-link" href="{{ category.get_absolute_url }}">{{ category.icon|remix }}{{ category }}</a>
</p>
{% endif %}
{% if search %}
<p>
<a href="{% url "search" %}">{% translate "Search" %}</a>
</p>
{% endif %}
{% endblock %}
</div>
{% endif %}
{% include "main/pagination.html" %}
{% block table %}{% endblock %}

View file

@ -4,15 +4,13 @@
{{ block.super }}
{% css "main/css/plot.css" %}
{% endblock %}
{% block name %}{{ month|date:"F Y"|capfirst }}{% endblock %}
{% block h2 %}{{ month|date:"F Y"|capfirst }}{% endblock %}
{% block backlinks %}
{{ block.super }}
{% if account or category %}
<p class="back">
<a class="big-link"
href="{% url "transaction_month" month.year month.month %}">
{% translate "Back" %}{{ "arrow-go-back"|remix }}
</a>
<a href="{% url "transaction_month" month.year month.month %}">{% translate "Back" %}{{ "arrow-go-back"|remix }}</a>
</p>
{% endif %}
{% endblock %}