@ -67,81 +67,81 @@
{% endif %}
{% endif %}
{% if request.has_any_permission(('edit', 'delete', 'tag', 'lock', 'move', 'edit_title', 'remove', 'bookmark'), topic) %}
{% if request.has_any_permission(('edit', 'delete', 'tag', 'lock', 'move', 'edit_title', 'remove', 'bookmark'), topic) %}
<menu class="post- bu tto ns">
<menu class="btn-po st ">
{% if request.has_permission('edit', topic) %}
{% if request.has_permission('edit', topic) %}
<li><a class="post-butt on" name="edit"
<li><button class="btn-post-acti on" name="edit"
data-ic-get-from="{{ request.route_url(
data-ic-get-from="{{ request.route_url(
'ic_topic',
'ic_topic',
topic_id36=topic.topic_id36,
topic_id36=topic.topic_id36,
) }}"
) }}"
data-ic-target=".topic-full .topic-full-text"
data-ic-target=".topic-full .topic-full-text"
data-ic-scroll-to-target="true"
data-ic-scroll-to-target="true"
>Edit</a ></li>
>Edit</button ></li>
{% endif %}
{% endif %}
{% if request.has_permission('tag', topic) %}
{% if request.has_permission('tag', topic) %}
<li><a class="post-butt on" name="tag"
<li><button class="btn-post-acti on" name="tag"
data-ic-get-from="{{ request.route_url(
data-ic-get-from="{{ request.route_url(
'ic_topic_tags',
'ic_topic_tags',
topic_id36=topic.topic_id36,
topic_id36=topic.topic_id36,
) }}"
) }}"
data-ic-swap-style="replace"
data-ic-swap-style="replace"
data-ic-target=".topic-full .post- bu tto ns:first + .post- bu tto ns-settings"
>Tag</a ></li>
data-ic-target=".topic-full .btn-po st :first + .btn-po st -settings"
>Tag</button ></li>
{% endif %}
{% endif %}
{% if request.has_permission('delete', topic) %}
{% if request.has_permission('delete', topic) %}
<li><a class="post-butt on" name="delete"
<li><button class="btn-post-acti on" name="delete"
data-ic-delete-from="{{ request.route_url(
data-ic-delete-from="{{ request.route_url(
'ic_topic',
'ic_topic',
topic_id36=topic.topic_id36,
topic_id36=topic.topic_id36,
) }}"
) }}"
data-ic-confirm="Delete this topic? This cannot be undone."
data-ic-confirm="Delete this topic? This cannot be undone."
>Delete</a ></li>
>Delete</button ></li>
{% endif %}
{% endif %}
{% if request.has_permission('move', topic) %}
{% if request.has_permission('move', topic) %}
<li><a class="post-butt on" name="move"
<li><button class="btn-post-acti on" name="move"
data-ic-get-from="{{ request.route_url(
data-ic-get-from="{{ request.route_url(
'ic_topic_group',
'ic_topic_group',
topic_id36=topic.topic_id36,
topic_id36=topic.topic_id36,
) }}"
) }}"
data-ic-swap-style="replace"
data-ic-swap-style="replace"
data-ic-target=".topic-full .post- bu tto ns:first + .post- bu tto ns-settings"
>Move</a >
data-ic-target=".topic-full .btn-po st :first + .btn-po st -settings"
>Move</button >
{% endif %}
{% endif %}
{% if request.has_permission('edit_title', topic) %}
{% if request.has_permission('edit_title', topic) %}
<li><a class="post-butt on" name="edit-title"
<li><button class="btn-post-acti on" name="edit-title"
data-ic-get-from="{{ request.route_url(
data-ic-get-from="{{ request.route_url(
'ic_topic_title',
'ic_topic_title',
topic_id36=topic.topic_id36,
topic_id36=topic.topic_id36,
) }}"
) }}"
data-ic-swap-style="replace"
data-ic-swap-style="replace"
data-ic-target=".topic-full .post- bu tto ns:first + .post- bu tto ns-settings"
>Edit title</a >
data-ic-target=".topic-full .btn-po st :first + .btn-po st -settings"
>Edit title</button >
{% endif %}
{% endif %}
{% if request.has_permission('lock', topic) %}
{% if request.has_permission('lock', topic) %}
<li>
<li>
{% if not topic.is_locked %}
{% if not topic.is_locked %}
<a class="post-butt on"
<button class="btn-post-acti on"
data-ic-put-to="{{ request.route_url(
data-ic-put-to="{{ request.route_url(
'ic_topic_lock',
'ic_topic_lock',
topic_id36=topic.topic_id36,
topic_id36=topic.topic_id36,
) }}"
) }}"
data-ic-replace-target="true"
data-ic-replace-target="true"
data-ic-confirm="Lock this topic?"
data-ic-confirm="Lock this topic?"
>Lock</a >
>Lock</button >
{% else %}
{% else %}
<a class="post-butt on"
<button class="btn-post-acti on"
data-ic-delete-from="{{ request.route_url(
data-ic-delete-from="{{ request.route_url(
'ic_topic_lock',
'ic_topic_lock',
topic_id36=topic.topic_id36,
topic_id36=topic.topic_id36,
) }}"
) }}"
data-ic-replace-target="true"
data-ic-replace-target="true"
data-ic-confirm="Unlock this topic?"
data-ic-confirm="Unlock this topic?"
>Unlock</a >
>Unlock</button >
{% endif %}
{% endif %}
</li>
</li>
{% endif %}
{% endif %}
@ -149,21 +149,21 @@
{% if request.has_permission('bookmark', topic) %}
{% if request.has_permission('bookmark', topic) %}
<li>
<li>
{% if not topic.bookmark_created_time %}
{% if not topic.bookmark_created_time %}
<a class="post-butt on"
<button class="btn-post-acti on"
data-ic-put-to="{{ request.route_url(
data-ic-put-to="{{ request.route_url(
'ic_topic_bookmark',
'ic_topic_bookmark',
topic_id36=topic.topic_id36,
topic_id36=topic.topic_id36,
) }}"
) }}"
data-ic-replace-target="true"
data-ic-replace-target="true"
>Bookmark</a >
>Bookmark</button >
{% else %}
{% else %}
<a class="post-butt on"
<button class="btn-post-acti on"
data-ic-delete-from="{{ request.route_url(
data-ic-delete-from="{{ request.route_url(
'ic_topic_bookmark',
'ic_topic_bookmark',
topic_id36=topic.topic_id36,
topic_id36=topic.topic_id36,
) }}"
) }}"
data-ic-replace-target="true"
data-ic-replace-target="true"
>Unbookmark</a >
>Unbookmark</button >
{% endif %}
{% endif %}
</li>
</li>
{% endif %}
{% endif %}
@ -171,28 +171,28 @@
{% if request.has_permission("remove", topic) %}
{% if request.has_permission("remove", topic) %}
<li>
<li>
{% if not topic.is_removed %}
{% if not topic.is_removed %}
<a class="post-butt on"
<button class="btn-post-acti on"
data-ic-put-to="{{ request.route_url(
data-ic-put-to="{{ request.route_url(
'ic_topic_remove',
'ic_topic_remove',
topic_id36=topic.topic_id36,
topic_id36=topic.topic_id36,
) }}"
) }}"
data-ic-replace-target="true"
data-ic-replace-target="true"
data-ic-confirm="Remove this topic?"
data-ic-confirm="Remove this topic?"
>Remove</a >
>Remove</button >
{% else %}
{% else %}
<a class="post-butt on"
<button class="btn-post-acti on"
data-ic-delete-from="{{ request.route_url(
data-ic-delete-from="{{ request.route_url(
'ic_topic_remove',
'ic_topic_remove',
topic_id36=topic.topic_id36,
topic_id36=topic.topic_id36,
) }}"
) }}"
data-ic-replace-target="true"
data-ic-replace-target="true"
data-ic-confirm="Un-remove this topic?"
data-ic-confirm="Un-remove this topic?"
>Un-remove</a >
>Un-remove</button >
{% endif %}
{% endif %}
</li>
</li>
{% endif %}
{% endif %}
</menu>
</menu>
<div class="post- bu tto ns-settings"></div>
<div class="btn-po st -settings"></div>
{% endif %}
{% endif %}
{% if topic.is_locked %}
{% if topic.is_locked %}