55 lines
1.5 KiB
HTML
55 lines
1.5 KiB
HTML
{% extends "combo/manager_base.html" %}
|
|
{% load i18n %}
|
|
{% load cells %}
|
|
{% load thumbnail %}
|
|
|
|
{% block appbar %}
|
|
<h2>{% trans 'Page History' %} - {{ view.page.title }}</h2>
|
|
{% endblock %}
|
|
|
|
{% block breadcrumb %}
|
|
{{ block.super }}
|
|
<a href="{% url 'combo-manager-page-view' pk=view.page.id %}">{% trans 'Page' %} - {{view.page.title }}</a>
|
|
<a href="{% url 'combo-manager-page-history' pk=view.page.id %}">{% trans "History" %}</a>
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
|
|
<div>
|
|
<table class="main">
|
|
<thead>
|
|
<th>{% trans 'Date' %}</th>
|
|
<th>{% trans 'Description' %}</th>
|
|
<th>{% trans 'User' %}</th>
|
|
<th>{% trans 'Actions' %}</th>
|
|
</thead>
|
|
<tbody>
|
|
{% for snapshot in object_list %}
|
|
<tr>
|
|
<td>
|
|
{{ snapshot.timestamp }}
|
|
</td>
|
|
<td>
|
|
{% if snapshot.label %}
|
|
<strong>{{ snapshot.label }}</strong>
|
|
{% elif snapshot.comment %}
|
|
{{ snapshot.comment }}
|
|
{% endif %}
|
|
</td>
|
|
<td>{% if snapshot.user %} {{ snapshot.user.get_full_name }}{% endif %}</td>
|
|
<td>
|
|
<a href="{% url 'combo-snapshot-view' pk=snapshot.id %}">{% trans "view" %}</a>
|
|
— <a href="{% url 'combo-manager-snapshot-export' page_pk=view.page.id pk=snapshot.id %}">{% trans "export" %}</a>
|
|
— <a href="{% url 'combo-manager-snapshot-restore' page_pk=view.page.id pk=snapshot.id %}" rel="popup">{% trans "restore" %}</a>
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
|
|
{% include "gadjo/pagination.html" %}
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|