Ce serveur Gitlab sera éteint le 30 juin 2020, pensez à migrer vos projets vers les serveurs gitlab-research.centralesupelec.fr et gitlab-student.centralesupelec.fr !

Commit 698a759f authored by Maël Kervella's avatar Maël Kervella Committed by Pierre Cadart

Met en avant les ban et les whitelist (couleur rouge et verte)

parent 10fdf1d0
......@@ -37,9 +37,9 @@ with this program; if not, write to the Free Software Foundation, Inc.,
</tr>
</thead>
{% for rev in reversions_list %}
<tr>
{% if rev.rev.content_type.name == 'ban' %}
<tr class="danger">
<td>{{ rev.datetime }}</td>
{% if rev.rev.content_type.name == 'ban' %}
<td>
{{ rev.username }} a banni
<a href="{% url 'users:profil' rev.rev.object.user_id %}">{{ rev.rev.object.user.get_username }}</a>
......@@ -51,7 +51,18 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% endif %}
</i>)
</td>
{% elif rev.rev.content_type.name == 'whitelist' %}
{% if is_bureau %}
<td>
<a class="btn btn-danger btn-sm" role="button" href="{% url 'logs:revert-action' rev.id %}">
<i class="glyphicon glyphicon-remove"></i>
Annuler
</a>
</td>
{% endif %}
</tr>
{% elif rev.rev.content_type.name == 'whitelist' %}
<tr class="success">
<td>{{ rev.datetime }}</td>
<td>
{{ rev.username }} a autorisé gracieusement
<a href="{% url 'users:profil' rev.rev.object.user_id %}">{{ rev.rev.object.user.get_username }}</a>
......@@ -63,7 +74,18 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% endif %}
</i>)
</td>
{% elif rev.rev.content_type.name == 'user' %}
{% if is_bureau %}
<td>
<a class="btn btn-danger btn-sm" role="button" href="{% url 'logs:revert-action' rev.id %}">
<i class="glyphicon glyphicon-remove"></i>
Annuler
</a>
</td>
{% endif %}
</tr>
{% elif rev.rev.content_type.name == 'user' %}
<tr>
<td>{{ rev.datetime }}</td>
<td>
{{ rev.username }} a mis à jour
<a href="{% url 'users:profil' rev.rev.object.id %}">{{ rev.rev.object.get_username }}</a>
......@@ -71,7 +93,18 @@ with this program; if not, write to the Free Software Foundation, Inc.,
(<i>{{ rev.comment }}</i>)
{% endif %}
</td>
{% elif rev.rev.content_type.name == 'vente' %}
{% if is_bureau %}
<td>
<a class="btn btn-danger btn-sm" role="button" href="{% url 'logs:revert-action' rev.id %}">
<i class="glyphicon glyphicon-remove"></i>
Annuler
</a>
</td>
{% endif %}
</tr>
{% elif rev.rev.content_type.name == 'vente' %}
<tr>
<td>{{ rev.datetime }}</td>
<td>
{{ rev.username }} a vendu {{ rev.rev.object.number }}x {{ rev.rev.object.name }} à
<a href="{% url 'users:profil' rev.rev.object.facture.user_id %}">{{ rev.rev.object.facture.user.get_username }}</a>
......@@ -79,7 +112,18 @@ with this program; if not, write to the Free Software Foundation, Inc.,
(<i>+{{ rev.rev.object.duration }} mois</i>)
{% endif %}
</td>
{% elif rev.rev.content_type.name == 'interface' %}
{% if is_bureau %}
<td>
<a class="btn btn-danger btn-sm" role="button" href="{% url 'logs:revert-action' rev.id %}">
<i class="glyphicon glyphicon-remove"></i>
Annuler
</a>
</td>
{% endif %}
</tr>
{% elif rev.rev.content_type.name == 'interface' %}
<tr>
<td>{{ rev.datetime }}</td>
<td>
{{ rev.username }} a modifié une interface de
<a href="{% url 'users:profil' rev.rev.object.machine.user_id %}">{{ rev.rev.object.machine.user.get_username }}</a>
......@@ -87,7 +131,6 @@ with this program; if not, write to the Free Software Foundation, Inc.,
(<i>{{ rev.comment }}</i>)
{% endif %}
</td>
{% endif %}
{% if is_bureau %}
<td>
<a class="btn btn-danger btn-sm" role="button" href="{% url 'logs:revert-action' rev.id %}">
......@@ -97,6 +140,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
</td>
{% endif %}
</tr>
{% endif %}
{% endfor %}
</table>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment