-{% spaceless %}\r
-{% for control in controls %}\r
- <span class="action-link">\r
- <a title="{{ control.title }}" class="{% if control.command %}ajax-command{% endif %}{% if control.withprompt %} withprompt{% endif %}"\r
- href="{{ control.url }}">{{ control.text }}</a>\r
- </span>\r
- {% ifnotequal controls|last control %}\r
- <span class="action-link-separator">|</span>\r
- {% endifnotequal %}\r
-{% endfor %}\r
+{% load i18n %}
+{% spaceless %}
+{% for control in controls %}
+ <span class="action-link">
+ <a rel="nofollow" title="{{ control.title }}" class="{{ control.classes }}" href="{{ control.url }}">{{ control.text }}</a>
+ </span>
+ {% ifnotequal controls|last control %}
+ <span class="action-link-separator">|</span>
+ {% endifnotequal %}
+{% endfor %}
+{% if menu|length %}
+ <span class="action-link-separator">|</span>
+ <span id="node-{{ post.id }}-menu" class="context-menu">
+ <span id="node-{{ post.id }}-menu-trigger" class="action-link context-menu-trigger">{% trans "more" %} ▼</span>
+ <ul id="node-{{ post.id }}-menu-dropdown" class="context-menu-dropdown">
+ {% for item in menu %}
+ <li class="item"><a rel="nofollow" class="{{ item.classes }}" href="{{ item.url }}" title="{{ item.title }}" >{{ item.text }}</a></li>
+ {% endfor %}
+ </ul>
+ </span>
+{% endif %}
{% endspaceless %}
\ No newline at end of file