Add accesskeys to navbar

This commit is contained in:
Edgar P. Burkhart 2022-05-30 15:08:54 +02:00
parent 984dadf7e6
commit 78907323a6
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227

View file

@ -19,27 +19,33 @@
{% spaceless %}
<nav>
<a href="{% url 'index' %}"
class="home{% if request.resolver_match.url_name == 'index' %} cur{% endif %}">
class="home{% if request.resolver_match.url_name == 'index' %} cur{% endif %}"
accesskey="h">
<img src="{% static 'main/svg/logo-white.svg' %}" alt="" />Nummi
</a>
<a href="{% url 'transactions' %}"
class="{% if request.resolver_match.url_name == 'transactions' %}cur{% endif %}">
class="{% if request.resolver_match.url_name == 'transactions' %}cur{% endif %}"
accesskey="t">
Transactions
</a>
<a href="{% url 'transaction' %}"
class="{% if request.resolver_match.url_name == 'transaction' %}cur{% endif %}">
class="{% if request.resolver_match.url_name == 'transaction' %}cur{% endif %}"
accesskey="n">
Add transaction
</a>
<a href="{% url 'category' %}"
class="{% if request.resolver_match.url_name == 'category' %}cur{% endif %}">
class="{% if request.resolver_match.url_name == 'category' %}cur{% endif %}"
accesskey="c">
Add category
</a>
<a href="{% url 'snapshot' %}"
class="{% if request.resolver_match.url_name == 'snapshot' %}cur{% endif %}">
class="{% if request.resolver_match.url_name == 'snapshot' %}cur{% endif %}"
accesskey="s">
Add snapshot
</a>
<a href="{% url 'logout' %}"
class="logout">
class="logout"
accesskey="l">
Log Out
</a>
</nav>