Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
La Quadrature du Net
rpteam
Revue de Press
Commits
123389dd
Verified
Commit
123389dd
authored
Oct 25, 2017
by
Thibaut Broggi
Browse files
Make displayed group dynamic
"padawan" was hard-coded before
parent
9f0e8e24
Pipeline
#1467
passed with stages
in 1 minute and 59 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
templates/base.html
View file @
123389dd
...
...
@@ -57,7 +57,12 @@
<ul
class=
"navbar-nav ml-auto"
>
<li
class=
"nav-item"
>
<a
class=
"nav-link"
>
Vous êtes Padawan
<img
class=
"inline-image ml-2"
role=
"img"
src=
"{% static 'img/padawan.svg' %}"
/>
Vous êtes {{user.groups.all.0.name}}
{% if user.groups.all.0.name == "Padawan" %}
<img
class=
"inline-image ml-2"
role=
"img"
src=
"{% static 'img/padawan.svg' %}"
/>
{% elif user.groups.all.0.name == "Jedi" %}
<img
class=
"inline-image ml-2"
role=
"img"
src=
"{% static 'img/jedi.svg' %}"
/>
{% endif %}
</a>
</li>
</ul>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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