diff options
author | Javier Sánchez Parra <jsanchez@soleta.eu> | 2022-04-26 15:08:19 +0200 |
---|---|---|
committer | Javier Sánchez Parra <jsanchez@soleta.eu> | 2022-04-27 17:26:40 +0200 |
commit | d8bac16a980634f182e9c753a01e114c3a482af0 (patch) | |
tree | ea9fe7c6302c8cf8d01704e0fec38deeb0d54513 /ogcp/templates/base.html | |
parent | 57da4f4efa0b8b7d96b1238b0127aa83d20007eb (diff) |
Add Users section
In Users section/view, administrator accounts can manage all task
related to users. For example: add, delete and edit users.
Diffstat (limited to 'ogcp/templates/base.html')
-rw-r--r-- | ogcp/templates/base.html | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ogcp/templates/base.html b/ogcp/templates/base.html index c67dd9b..0ec773c 100644 --- a/ogcp/templates/base.html +++ b/ogcp/templates/base.html @@ -36,6 +36,11 @@ <li class="nav-item {% block nav_images%}{% endblock %}"> <a class="nav-link" href="{{ url_for('images') }}">{{ _('Images') }}</a> </li> + {% if current_user.admin %} + <li class="nav-item {% block nav_users %}{% endblock %}"> + <a class="nav-link" href="{{ url_for('users') }}">{{ _('Users') }}</a> + </li> + {% endif %} {% endif %} </ul> |