Add accesskeys to navbar
This commit is contained in:
parent
984dadf7e6
commit
78907323a6
1 changed files with 12 additions and 6 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue