Skip to content

Commit

Permalink
Utilise un tableau pour présenter les membres sur la même IP
Browse files Browse the repository at this point in the history
En affichant la date d'inscription et la date de dernière connexion.
  • Loading branch information
philippemilink committed Oct 15, 2023
1 parent 8bae2bc commit 5042d8d
Showing 1 changed file with 30 additions and 10 deletions.
40 changes: 30 additions & 10 deletions templates/member/admin/memberip.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,23 @@
{% endblocktrans %}
</p>

<div class="members">
<ul>
<table>
<thead>
<th>{% trans "Membre" %}</th>
<th>{% trans "Inscription" %}</th>
<th>{% trans "Dernière connexion" %}</th>
</thead>
<tbody>
{% for member in members %}
<li>{% include "misc/member_item.part.html" with member=member info=member.last_visit|format_date:True avatar=True %}</li>
{% captureas last_visit %}{% if member.last_visit %}{{ member.last_visit|format_date:True }}{% else %}<i>{% trans "Jamais" %}</i>{% endif %}{% endcaptureas %}
<tr>
<td>{% include "misc/member_item.part.html" with member=member avatar=True %}</td>
<td>{{ member.user.date_joined|format_date:True }}</td>
<td>{{ last_visit }}</td>
</tr>
{% endfor %}
</ul>
</div>
</tbody>
</table>

{# Checks if it's an IPV6 to show the members from the same IPV6 network #}
{% if ":" in ip %}
Expand All @@ -47,13 +57,23 @@
{% endblocktrans %}
</p>

<div class="members">
<ul>
<table>
<thead>
<th>{% trans "Membre" %}</th>
<th>{% trans "Inscription" %}</th>
<th>{% trans "Dernière connexion" %}</th>
</thead>
<tbody>
{% for member in network_members %}
<li>{% include "misc/member_item.part.html" with member=member info=member.last_visit|format_date:True avatar=True %}</li>
{% captureas last_visit %}{% if member.last_visit %}{{ member.last_visit|format_date:True }}{% else %}<i>{% trans "Jamais" %}</i>{% endif %}{% endcaptureas %}
<tr>
<td>{% include "misc/member_item.part.html" with member=member avatar=True %}</td>
<td>{{ member.user.date_joined|format_date:True }}</td>
<td>{{ last_visit }}</td>
</tr>
{% endfor %}
</ul>
</div>
</tbody>
</table>

<p>
{% blocktrans %}
Expand Down

0 comments on commit 5042d8d

Please sign in to comment.