Commit 8ad2f541 authored by Michal Čihař's avatar Michal Čihař

Reintroduce browse link

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 866ade59
{% load i18n %}
{% include "last-changes-content.html" %}
<a class="btn btn-link" href="{% url 'changes' %}?{{ last_changes_url }}">{% trans "Browse all changes in component" %}</a>
......@@ -108,13 +108,9 @@ def get_unit_changes(request, unit_id):
return render(
request,
'last-changes-content.html',
'js/changes.html',
{
'last_changes': unit.change_set.all()[:10],
'last_changes_rss': reverse(
'rss-translation',
kwargs=unit.translation.get_kwargs(),
),
'last_changes_url': urlencode(unit.translation.get_kwargs()),
}
)
......
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