Compare commits

..

No commits in common. "8db2720f7510c5a420b9376cda7e6210e79b088c" and "08b234a0700b66f7ab1f422b03e1bab0a1d0f722" have entirely different histories.

3 changed files with 34 additions and 22 deletions

View file

@ -69,21 +69,10 @@ a {
&.big-link { &.big-link {
margin-right: 1em; margin-right: 1em;
padding: 0 0.5em;
color: white;
background: var(--green);
border-radius: var(--radius);
height: 1.5rem;
line-height: 1.5rem;
[class^="ri-"] { [class^="ri-"] {
margin-right: 0.5em; margin-right: 0.5em;
} }
&.add {
color: var(--text-link);
background: var(--bg-01);
}
} }
} }

View file

@ -45,6 +45,26 @@
{% 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 %}"

View file

@ -42,17 +42,20 @@
</tfoot> </tfoot>
</table> </table>
</section> </section>
<section class="categories"> {% if categories %}
<h2>{% translate "Categories" %}</h2> <section class="categories">
{% spaceless %} <h2>{% translate "Categories" %}</h2>
<p> {% spaceless %}
{% for cat in categories %} <p>
<a class="big-link" href="{{ cat.get_absolute_url }}">{{ cat.icon|remix }}{{ cat }}</a> {% for cat in categories %}
{% endfor %} <a class="big-link" href="{{ cat.get_absolute_url }}">{{ cat.icon|remix }}{{ cat }}</a>
<a class="big-link add" href="{% url "new_category" %}">{{ "add"|remix }}{% translate "Create category" %}</a> {% empty %}
</p> {% translate "No category" %}
{% endspaceless %} {% endfor %}
</section> </p>
{% endspaceless %}
</section>
{% endif %}
</div> </div>
{% if history %} {% if history %}
<section> <section>