No accept/delete buttons for anonymous users
This commit is contained in:
parent
7a39ffc0be
commit
a64e48051d
@ -55,10 +55,12 @@
|
||||
<tr><td class="translatetext">{{ suggestion.target|fmttranslation }}</td></tr>
|
||||
<tr><td>
|
||||
{% blocktrans with suggestion.user.get_full_name as user %}Suggested by {{ user }}{% endblocktrans %}
|
||||
{% if user.is_authenticated %}
|
||||
<div class="suggestionactions">
|
||||
<a href="{{ suggestion.get_translate_url }}?type={{ type }}&oldpos={{ unit.position }}&accept={{ suggestion.id }}" class="sug-accept">Accept</a>
|
||||
<a href="{{ suggestion.get_translate_url }}?type={{ type }}&oldpos={{ unit.position }}&delete={{ suggestion.id }}" class="sug-delete">Delete</a>
|
||||
</div>
|
||||
{% endif %}
|
||||
</td>
|
||||
{% endfor %}
|
||||
</table>
|
||||
|
Loading…
Reference in New Issue
Block a user