aff_stats_logs.html 2.46 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
{% comment %}
Re2o est un logiciel d'administration développé initiallement au rezometz. Il
se veut agnostique au réseau considéré, de manière à être installable en
quelques clics.

Copyright © 2017  Gabriel Détraz
Copyright © 2017  Goulven Kermarec
Copyright © 2017  Augustin Lemesle

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
{% endcomment %}

chirac's avatar
chirac committed
25 26 27 28 29
{% if revisions_list.paginator %}
{% include "pagination.html" with list=revisions_list %}
{% endif %}

{% load logs_extra %}
30
{% load acl %}
chirac's avatar
chirac committed
31 32 33 34 35 36

    <table class="table table-striped">
        <thead>
            <tr>
                <th>Objet modifié</th>
                <th>Type de l'objet</th>
37 38
                <th>{% include "buttons/sort.html" with prefix='logs' col='author' text='Modification par' %}</th>
                <th>{% include "buttons/sort.html" with prefix='logs' col='date' text='Date de modification' %}</th>
chirac's avatar
chirac committed
39
                <th>Commentaire</th>
lhark's avatar
lhark committed
40
                <th></th>
chirac's avatar
chirac committed
41 42
            </tr>
        </thead>
lhark's avatar
lhark committed
43
        {% for revision in revisions_list %}
Dalahro's avatar
Dalahro committed
44 45 46 47 48 49 50
        	{% for reversion in revision.version_set.all %}
		<tr>
            	    <td>{{ reversion.object|truncatechars:20 }}</td>
                    <td>{{ reversion.object|classname }}</td>
                    <td>{{ revision.user }}</td>
                    <td>{{ revision.date_created }}</td>
                    <td>{{ revision.comment }}</td>
51
                    {% can_edit_history %}
Dalahro's avatar
Dalahro committed
52 53
                    <td>
                	<a class="btn btn-danger btn-sm" role="button" href="{% url 'logs:revert-action' revision.id %}">
54
                    	<i class="fa fa-times"></i>
Dalahro's avatar
Dalahro committed
55 56 57
                    	Annuler
                	</a>
            	    </td>
58
            	    {% acl_end %}
Dalahro's avatar
Dalahro committed
59 60
        	</tr>
		{% endfor %}
chirac's avatar
chirac committed
61 62
        {% endfor %}
    </table>
63

64 65 66
{% if revisions_list.paginator %}
{% include "pagination.html" with list=revisions_list %}
{% endif %}