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; grid-column: 2;
text-align: right; text-align: right;
.big-link { a {
margin-right: 0; margin-right: 0;
margin-left: 1em; margin-left: 1em;
[class^="ri-"] { [class^="ri-"] {

View file

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

View file

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