Fix back link
This commit is contained in:
parent
e41b989862
commit
67e71b717b
3 changed files with 23 additions and 19 deletions
|
@ -311,7 +311,7 @@ ul.messages {
|
|||
grid-column: 2;
|
||||
text-align: right;
|
||||
|
||||
.big-link {
|
||||
a {
|
||||
margin-right: 0;
|
||||
margin-left: 1em;
|
||||
[class^="ri-"] {
|
||||
|
|
|
@ -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" %}
|
||||
|
|
|
@ -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 %}
|
||||
|
|
Loading…
Reference in a new issue