Really stay on position where we handled suggestion

This commit is contained in:
Michal Čihař 2012-03-01 17:25:06 +01:00
parent b859866ac6
commit 3feddca4a0
2 changed files with 2 additions and 3 deletions

View File

@ -45,8 +45,8 @@
<tr><td>
{% blocktrans with suggestion.user.get_full_name as user %}Suggested by {{ user }}{% endblocktrans %}
<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={{ oldpos }}&amp;delete={{ suggestion.id }}" class="sug-delete">Delete</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={{ unit.position }}&amp;delete={{ suggestion.id }}" class="sug-delete">Delete</a>
</div>
</td>
{% endfor %}

View File

@ -153,7 +153,6 @@ def translate(request, project, subproject, lang):
'object': obj,
'title': '%s @ %s' % (obj.__unicode__(), settings.SITE_TITLE),
'unit': unit,
'oldpos': pos,
'total': total,
'type': rqtype,
'form': form,