]> git.openstreetmap.org Git - osqa.git/blob - forum/skins/default/templates/node/post_controls.html
Adds better permalinks to answers, computing the position of an answer in the list.
[osqa.git] / forum / skins / default / templates / node / post_controls.html
1 {% load i18n %}\r
2 {% spaceless %}\r
3 {% for control in controls %}\r
4     <span class="action-link">\r
5         <a rel="nofollow" title="{{ control.title }}" class="{{ control.classes }}" href="{{ control.url }}">{{ control.text }}</a>\r
6     </span>\r
7     {% ifnotequal controls|last control %}\r
8         <span class="action-link-separator">|</span>\r
9     {% endifnotequal %}\r
10 {% endfor %}\r
11 {% if menu|length %}\r
12     <span class="action-link-separator">|</span>\r
13     <span id="node-{{ post.id }}-menu" class="context-menu">\r
14         <span id="node-{{ post.id }}-menu-trigger" class="action-link context-menu-trigger">{% trans "more" %} &#9660;</span>\r
15         <ul id="node-{{ post.id }}-menu-dropdown" class="context-menu-dropdown">\r
16             {% for item in menu %}\r
17             <li class="item"><a rel="nofollow" class="{{ item.classes }}" href="{{ item.url }}" title="{{ item.title }}" >{{ item.text }}</a></li>\r
18             {% endfor %}\r
19         </ul>\r
20     </span>\r
21 {% endif %}\r
22 {% endspaceless %}