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,6 +19,9 @@
<h2>
{% block h2 %}{% endblock %}
</h2>
{% 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>
@ -34,6 +37,9 @@
<a href="{% url "search" %}">{% translate "Search" %}</a>
</p>
{% endif %}
{% endblock %}
</div>
{% endif %}
{% include "main/pagination.html" %}
{% block table %}{% endblock %}
{% include "main/pagination.html" %}

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 %}