Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Pédagogies Multimodales
Phonographe
Commits
e73bb6de
Commit
e73bb6de
authored
Mar 29, 2021
by
Sylvain Coulange
Browse files
debut affichage onglet utilisateurs
parent
5478a06a
Changes
1
Hide whitespace changes
Inline
Side-by-side
templates/base.html
View file @
e73bb6de
...
...
@@ -53,9 +53,11 @@
{{ user.username }}
</a>
<ul
class=
"dropdown-menu"
aria-labelledby=
"dropdownMenuButton1"
>
{% if user.is_staff %}
<a
class=
"dropdown-item"
href=
"{% url 'users' %}"
>
Utilisateurs
</a>
{% endif %}
{% for group in user.groups.all %}
{% if group.name == "admin" %}
<a
class=
"dropdown-item"
href=
"{% url 'users' %}"
>
Utilisateurs
</a>
{% endif %}
{% endfor %}
<a
class=
"dropdown-item"
href=
"{% url 'profile' %}"
>
Page personnelle
</a>
<div
class=
"dropdown-divider"
></div>
<a
class=
"dropdown-item"
href=
"{% url 'logout' %}"
>
Se déconnecter
</a>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment