X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/691a2d681af573e269240022c7232cbca3d77b29..ba9a60ad5002f1d8ea271f030f4ae5f5e898f7c7:/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 9da66f5..653f8b1 100644 --- a/forum/skins/default/templates/node/accept_button.html +++ b/forum/skins/default/templates/node/accept_button.html @@ -2,11 +2,21 @@ {% if can_accept %} + 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 %}