Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
rp
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
15
Issues
15
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
La Quadrature du Net
rpteam
rp
Commits
6c7627df
Verified
Commit
6c7627df
authored
Dec 06, 2017
by
Thibaut Broggi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change the way groups are written in templates
parent
e270e8fa
Pipeline
#1760
passed with stages
in 1 minute and 58 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
apps/userprofile/templates/user/user_list.html
apps/userprofile/templates/user/user_list.html
+2
-2
templates/base.html
templates/base.html
+4
-4
No files found.
apps/userprofile/templates/user/user_list.html
View file @
6c7627df
...
...
@@ -41,8 +41,8 @@
<td>
{{user.id}}
</td>
<td>
{{user.username}}
</td>
<td>
{{user.email}}
</td>
<td>
{{user.date_joined |date:'d/m/Y - H:i:s'}}
</td>
<td>
{{user.groups.
all.0
.name}}
</td>
<td>
{{user.date_joined |
date:'d/m/Y - H:i:s'}}
</td>
<td>
{{user.groups.
last
.name}}
</td>
<td></td>
</tr>
{% endfor %}
...
...
templates/base.html
View file @
6c7627df
...
...
@@ -57,17 +57,17 @@
<ul
class=
"navbar-nav ml-auto"
>
<li
class=
"nav-item"
>
<a
class=
"nav-link"
>
Vous êtes {{user.groups.
all.0
.name}}
{% if user.groups.
all.0
.name == "padawan" %}
Vous êtes {{user.groups.
last
.name}}
{% if user.groups.
last
.name == "padawan" %}
<img
class=
"inline-image ml-2"
role=
"img"
src=
"{% static 'img/padawan.svg' %}"
/>
{% elif user.groups.
all.0.name == "J
edi" %}
{% elif user.groups.
last.name == "j
edi" %}
<img
class=
"inline-image ml-2"
role=
"img"
src=
"{% static 'img/jedi.svg' %}"
/>
{% endif %}
</a>
</li>
</ul>
{% else %}
<span
class=
"navbar-text ml-auto text-muted"
>
For jedi
s by jedis
</span>
<span
class=
"navbar-text ml-auto text-muted"
>
For jedi
by jedi
</span>
{% endif %}
</div>
</nav>
...
...
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