X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/ecd9fa68ea62902f79744b458e4ea2ed95ce00ac..19fdf3aa4fdc111f4ce142005e75f4e8f961e91e:/forum/skins/default/templates/node/accept_button.html diff --git a/forum/skins/default/templates/node/accept_button.html b/forum/skins/default/templates/node/accept_button.html index 2121491..653f8b1 100644 --- a/forum/skins/default/templates/node/accept_button.html +++ b/forum/skins/default/templates/node/accept_button.html @@ -2,6 +2,21 @@ {% if can_accept %} -{% endif %} \ No newline at end of file + title=" {% if answer.nis.accepted %} + {% blocktrans with answer.nstate.accepted.by.username as who %}{{ who }} has selected this answer as the correct answer{% endblocktrans %} + {% else %} + {% trans "mark this answer as the accepted answer" %} + {% endif %}" + bn:on="{% blocktrans with answer.nstate.accepted.by.username as who %}{{ who }} has selected this answer as the correct answer{% endblocktrans %}" + bn:off="{% trans "mark this answer as the accepted answer" %}" + href="{% url accept_answer id=answer.id %}" rel="nofollow"> + +{% else %} + {% if answer.nis.accepted %} + + + {% endif %} +{% endif %} +