Remove create links from navbar; Add a link to create categories in the category list on the homepage
This commit is contained in:
parent
954ee9ce17
commit
8db2720f75
3 changed files with 15 additions and 34 deletions
|
@ -80,6 +80,10 @@ a {
|
||||||
[class^="ri-"] {
|
[class^="ri-"] {
|
||||||
margin-right: 0.5em;
|
margin-right: 0.5em;
|
||||||
}
|
}
|
||||||
|
&.add {
|
||||||
|
color: var(--text-link);
|
||||||
|
background: var(--bg-01);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -45,26 +45,6 @@
|
||||||
{% translate "Transactions" %}
|
{% translate "Transactions" %}
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
|
||||||
<a href="{% url "new_account" %}"
|
|
||||||
class="{% if request.resolver_match.url_name == "new_account" %}cur{% endif %}"
|
|
||||||
accesskey="a">{% translate "Create account" %}</a>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="{% url "new_statement" %}"
|
|
||||||
class="{% if request.resolver_match.url_name == "new_statement" %}cur{% endif %}"
|
|
||||||
accesskey="s">{% translate "Create statement" %}</a>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="{% url "new_category" %}"
|
|
||||||
class="{% if request.resolver_match.url_name == "new_category" %}cur{% endif %}"
|
|
||||||
accesskey="c">{% translate "Create category" %}</a>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="{% url "new_transaction" %}"
|
|
||||||
class="{% if request.resolver_match.url_name == "new_transaction" %}cur{% endif %}"
|
|
||||||
accesskey="t">{% translate "Create transaction" %}</a>
|
|
||||||
</li>
|
|
||||||
<li>
|
<li>
|
||||||
<a href="{% url "search" %}"
|
<a href="{% url "search" %}"
|
||||||
class="{% if request.resolver_match.url_name == "search" %}cur{% endif %}"
|
class="{% if request.resolver_match.url_name == "search" %}cur{% endif %}"
|
||||||
|
|
|
@ -42,20 +42,17 @@
|
||||||
</tfoot>
|
</tfoot>
|
||||||
</table>
|
</table>
|
||||||
</section>
|
</section>
|
||||||
{% if categories %}
|
|
||||||
<section class="categories">
|
<section class="categories">
|
||||||
<h2>{% translate "Categories" %}</h2>
|
<h2>{% translate "Categories" %}</h2>
|
||||||
{% spaceless %}
|
{% spaceless %}
|
||||||
<p>
|
<p>
|
||||||
{% for cat in categories %}
|
{% for cat in categories %}
|
||||||
<a class="big-link" href="{{ cat.get_absolute_url }}">{{ cat.icon|remix }}{{ cat }}</a>
|
<a class="big-link" href="{{ cat.get_absolute_url }}">{{ cat.icon|remix }}{{ cat }}</a>
|
||||||
{% empty %}
|
|
||||||
{% translate "No category" %}
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
<a class="big-link add" href="{% url "new_category" %}">{{ "add"|remix }}{% translate "Create category" %}</a>
|
||||||
</p>
|
</p>
|
||||||
{% endspaceless %}
|
{% endspaceless %}
|
||||||
</section>
|
</section>
|
||||||
{% endif %}
|
|
||||||
</div>
|
</div>
|
||||||
{% if history %}
|
{% if history %}
|
||||||
<section>
|
<section>
|
||||||
|
|
Loading…
Reference in a new issue