Commit 85b9c07d authored by Michal Čihař's avatar Michal Čihař

Make CSV download work reasonably in embedded usage

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 8217dc68
......@@ -5,7 +5,7 @@
<div class="panel panel-primary">
<div class="panel-heading">
<h4 class="panel-title">
<a class="pull-right flip" href="{% url 'changes-csv' %}?{{ request.GET.urlencode }}" title="{% trans "Download all changes as CSV" %}"><i class="fa fa-download"></i></a>
<a class="pull-right flip" href="{% url 'changes-csv' %}?{% if last_changes_url %}{{ last_changes_url }}{% else %}{{ request.GET.urlencode }}{% endif %}" title="{% trans "Download all changes as CSV" %}"><i class="fa fa-download"></i></a>
{% trans "History" %}
</h4>
</div>
......
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