Update categories layout on homepage
This commit is contained in:
parent
16dba43810
commit
47b9d6a3fb
2 changed files with 12 additions and 8 deletions
|
@ -13,9 +13,8 @@ h1 img {
|
|||
}
|
||||
|
||||
#categories > a {
|
||||
margin-right: var(--gap);
|
||||
margin-bottom: var(--gap);
|
||||
display: inline-block;
|
||||
padding: 1em;
|
||||
}
|
||||
#categories > a > i {
|
||||
margin-right: .5rem;
|
||||
|
|
|
@ -14,17 +14,22 @@
|
|||
{% block body %}
|
||||
{% if transactions %}
|
||||
<h2>
|
||||
{% translate "Transactions" %} <a href="{% url "transactions" %}"><i class="fa fa-magnifying-glass-plus"></i></a>
|
||||
{% translate "Transactions" %}
|
||||
<a href="{% url "transactions" %}">
|
||||
<i class="fa fa-magnifying-glass-plus"></i>
|
||||
</a>
|
||||
</h2>
|
||||
{% transaction_table transactions %}
|
||||
{% endif %}
|
||||
{% if categories %}
|
||||
<h2>{% translate "Categories" %}</h2>
|
||||
<div id="categories">
|
||||
{% for cat in categories %}
|
||||
<a href="{% url 'category' cat.id %}"><i class="fa fa-{{ cat.icon }}"></i>{{ cat }}</a>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% spaceless %}
|
||||
<div id="categories">
|
||||
{% for cat in categories %}
|
||||
<a href="{% url 'category' cat.id %}"><i class="fa fa-{{ cat.icon }}"></i>{{ cat }}</a>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endspaceless %}
|
||||
{% endif %}
|
||||
{% if snapshots %}
|
||||
<h2>{% translate "Snapshots" %}</h2>
|
||||
|
|
Loading…
Reference in a new issue