Commit bff4bcd4 authored by Michal Čihař's avatar Michal Čihař

Use different template when browsing changes

parent 56a78289
{% extends "base.html" %}
{% load i18n %}
{% load url from future %}
{% load translations %}
{% block breadcrumbs %}
<li><a href="{% url 'changes' %}">{% trans "changes" %}</a></li>
......@@ -21,8 +22,26 @@
<form class="autosubmit">{{ letterform.as_p }}</form>
</span>
{% with object_list as last_changes %}
{% include "last-changes.html" %}
{% endwith %}
<table>
<thead>
<tr>
<th>{% trans "When" %}</th>
<th>{% trans "User" %}</th>
<th>{% trans "Action" %}</th>
<th>{% trans "Translation" %}</th>
</tr>
<tbody>
{% for c in object_list.select_related %}
<tr>
<td>{{ c.timestamp|naturaltime }}</td>
<td>{{ c.get_user_display }}</td>
<td><a href="{{ c.get_absolute_url }}">{{ c.get_action_display }}</a></td>
<td><a href="{{ c.translation.get_absolute_url }}">{{ c.translation }}</a></td>
</tr>
{% empty %}
<tr><td colspan="4">{% trans "No matching activity has been found." %}</td></tr>
{% endfor %}
</tbody>
</table>
{% endblock %}
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