{% EVENT viewtopic_topic_tools_before %}
{% if not S_IS_BOT and (U_WATCH_TOPIC or U_BOOKMARK_TOPIC or U_BUMP_TOPIC or U_EMAIL_TOPIC or U_PRINT_TOPIC or S_DISPLAY_TOPIC_TOOLS) %}
<nav class="iz-topic-tools" aria-label="{{ L_OPTIONS }}">
	<ul class="iz-inline-actions">
		{% if U_EMAIL_TOPIC %}
			<li>
				<a class="iz-button iz-button--secondary iz-button--sm" href="{{ U_EMAIL_TOPIC }}" title="{{ L_EMAIL_TOPIC }}">
					{{ L_EMAIL_TOPIC }}
				</a>
			</li>
		{% endif %}

		{% if U_PRINT_TOPIC %}
			<li>
				<a class="iz-button iz-button--secondary iz-button--sm" href="{{ U_PRINT_TOPIC }}" title="{{ L_PRINT_TOPIC }}" accesskey="p">
					{{ L_PRINT_TOPIC }}
				</a>
			</li>
		{% endif %}

		{% if U_WATCH_TOPIC %}
			<li>
				<a
					href="{{ U_WATCH_TOPIC }}"
					class="watch-topic-link iz-button iz-button--secondary iz-button--sm"
					title="{{ S_WATCH_TOPIC_TITLE }}"
					data-ajax="toggle_link"
					data-toggle-class="iz-topic-tools t-{% if not S_WATCHING_TOPIC %}unsubscribe{% else %}subscribe{% endif %}"
					data-toggle-url="{{ U_WATCH_TOPIC_TOGGLE }}"
					data-update-all=".watch-topic-link"
				>
					{% if S_WATCHING_TOPIC %}{{ L_UNSUBSCRIBE_TOPIC }}{% else %}{{ L_SUBSCRIBE_TOPIC }}{% endif %}
				</a>
			</li>
		{% endif %}

		{% if U_BOOKMARK_TOPIC %}
			<li>
				<a
					href="{{ U_BOOKMARK_TOPIC }}"
					class="bookmark-link iz-button iz-button--secondary iz-button--sm t-{% if S_BOOKMARKED_TOPIC %}bookmarked{% else %}bookmark{% endif %}"
					title="{% if S_BOOKMARKED_TOPIC %}{{ L_BOOKMARK_TOPIC_REMOVE }}{% else %}{{ L_BOOKMARK_TOPIC }}{% endif %}"
					data-ajax="alt_text"
					data-toggle-url="{{ S_BOOKMARK_TOGGLE }}"
					data-update-all=".bookmark-link"
				>
					{% if S_BOOKMARKED_TOPIC %}{{ L_BOOKMARK_TOPIC_REMOVE }}{% else %}{{ L_BOOKMARK_TOPIC }}{% endif %}
				</a>
			</li>
		{% endif %}

		{% if U_BUMP_TOPIC %}
			<li>
				<a class="iz-button iz-button--secondary iz-button--sm" href="{{ U_BUMP_TOPIC }}" title="{{ L_BUMP_TOPIC }}" data-ajax="true">
					{{ L_BUMP_TOPIC }}
				</a>
			</li>
		{% endif %}
	</ul>
</nav>
{% endif %}
{% EVENT viewtopic_topic_tools_after %}
