]> git.openstreetmap.org Git - osqa.git/blob - forum/skins/default/templates/node/accept_button.html
653f8b181e2ea7d581111b946372be97e3e7aae9
[osqa.git] / forum / skins / default / templates / node / accept_button.html
1 {% load i18n %}\r
2 \r
3 {% if can_accept %}\r
4     <a id="accept-answer-{{ answer.id }}" class="ajax-command accept-answer{% if answer.nis.accepted %} on{% endif %}"\r
5       title=" {% if answer.nis.accepted %}\r
6               {% blocktrans with answer.nstate.accepted.by.username as who %}{{ who }} has selected this answer as the correct answer{% endblocktrans %}\r
7               {% else %}\r
8                 {% trans "mark this answer as the accepted answer" %}\r
9               {% endif %}"\r
10               bn:on="{% blocktrans with answer.nstate.accepted.by.username as who %}{{ who }} has selected this answer as the correct answer{% endblocktrans %}"\r
11               bn:off="{% trans "mark this answer as the accepted answer" %}"\r
12        href="{% url accept_answer id=answer.id %}" rel="nofollow"> \r
13     </a>\r
14 {% else %}\r
15     {% if answer.nis.accepted %}\r
16       <a class="accept-answer on"\r
17         title="{% blocktrans with answer.nstate.accepted.by.username as who %}{{ who }} has selected this answer as the correct answer{% endblocktrans %}"\r
18         href="{% url accept_answer id=answer.id %}" rel="nofollow"> \r
19       </a>\r
20     {% endif %}\r
21 {% endif %}\r
22 \r