1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2025-06-21 01:48:21 +02:00

Better index page: non-Kfet members will be redirected to their profile page, the account note (when it will be managed) will see the consumption page

This commit is contained in:
Yohann D'ANELLO
2020-10-07 11:29:52 +02:00
parent b5fa428bad
commit 65a2e8c08c
4 changed files with 35 additions and 5 deletions

View File

@ -64,7 +64,8 @@ SPDX-License-Identifier: GPL-3.0-or-later
<a class="nav-link {% if request.path_info == url %}active{% endif %}" href="{{ url }}"><i class="fa fa-coffee"></i> {% trans 'Consumptions' %}</a>
</li>
{% endif %}
{% if "note.transaction"|not_empty_model_list %}
{# FIXME Find a better solution to check if a user has the right to see the transfer page #}
{% if "note.alias"|model_list_length >= 2 %}
<li class="nav-item">
{% url 'note:transfer' as url %}
<a class="nav-link {% if request.path_info == url %}active{% endif %}" href="{{ url }}"><i class="fa fa-exchange"></i> {% trans 'Transfer' %} </a>