Commit 3feddca4 authored by Michal Čihař's avatar Michal Čihař

Really stay on position where we handled suggestion

parent b859866a
...@@ -45,8 +45,8 @@ ...@@ -45,8 +45,8 @@
<tr><td> <tr><td>
{% blocktrans with suggestion.user.get_full_name as user %}Suggested by {{ user }}{% endblocktrans %} {% blocktrans with suggestion.user.get_full_name as user %}Suggested by {{ user }}{% endblocktrans %}
<div class="suggestionactions"> <div class="suggestionactions">
<a href="{{ suggestion.get_translate_url }}?type={{ type }}&amp;oldpos={{ oldpos }}&amp;accept={{ suggestion.id }}" class="sug-accept">Accept</a> <a href="{{ suggestion.get_translate_url }}?type={{ type }}&amp;oldpos={{ unit.position }}&amp;accept={{ suggestion.id }}" class="sug-accept">Accept</a>
<a href="{{ suggestion.get_translate_url }}?type={{ type }}&amp;oldpos={{ oldpos }}&amp;delete={{ suggestion.id }}" class="sug-delete">Delete</a> <a href="{{ suggestion.get_translate_url }}?type={{ type }}&amp;oldpos={{ unit.position }}&amp;delete={{ suggestion.id }}" class="sug-delete">Delete</a>
</div> </div>
</td> </td>
{% endfor %} {% endfor %}
......
...@@ -153,7 +153,6 @@ def translate(request, project, subproject, lang): ...@@ -153,7 +153,6 @@ def translate(request, project, subproject, lang):
'object': obj, 'object': obj,
'title': '%s @ %s' % (obj.__unicode__(), settings.SITE_TITLE), 'title': '%s @ %s' % (obj.__unicode__(), settings.SITE_TITLE),
'unit': unit, 'unit': unit,
'oldpos': pos,
'total': total, 'total': total,
'type': rqtype, 'type': rqtype,
'form': form, 'form': form,
......
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