This repository has been archived on 2024-06-26. You can view files and clone it, but cannot push or open issues or pull requests.
sakura/resources/views/yuuno/forum/elements/forumMod.twig

16 lines
1.3 KiB
Twig
Raw Normal View History

2016-07-31 01:32:37 +00:00
{% if forumSticky is defined %}
2016-11-09 18:32:23 +00:00
<a class="input__button" title="{{ forumSticky ? 'Unsticky' : 'Sticky' }}" href="{{ route('forums.topic.sticky', topic.id) }}?session={{ session_id() }}"><span class="fa fa-{{ forumSticky ? 'remove' : 'thumb-tack' }}"></span></a>
2016-07-31 01:32:37 +00:00
{% endif %}
{% if forumAnnounce is defined %}
2016-11-09 18:32:23 +00:00
<a class="input__button" title="{{ forumAnnounce ? 'Unannounce' : 'Announce' }}" href="{{ route('forums.topic.announce', topic.id) }}?session={{ session_id() }}"><span class="fa fa-{{ forumAnnounce ? 'remove' : 'bullhorn' }}"></span></a>
2016-07-31 01:32:37 +00:00
{% endif %}
{% if forumLock is defined %}
2016-11-09 18:32:23 +00:00
<a class="input__button" title="{{ forumLock ? 'Unlock' : 'Lock' }}" href="{{ route('forums.topic.lock', topic.id) }}?session={{ session_id() }}"><span class="fa fa-{{ forumLock ? 'unlock' : 'lock' }}"></span></a>
2016-07-31 01:32:37 +00:00
{% endif %}
{% if forumRestore is defined %}
2016-11-09 18:32:23 +00:00
<a class="input__button" title="Restore" href="{{ route('forums.topic.restore', topic.id) }}?session={{ session_id() }}"><span class="fa fa-history"></span></a>
2016-07-31 01:32:37 +00:00
{% endif %}
{% if forumTrash is defined or forumPrune is defined %}
2016-11-09 18:32:23 +00:00
<a class="input__button" title="{{ forumPrune is defined ? 'Prune' : 'Trash' }}" href="{{ route('forums.topic.delete', topic.id) }}?session={{ session_id() }}"><span class="fa fa-{{ forumPrune is defined ? 'bomb' : 'trash' }}"></span></a>
2016-07-31 01:32:37 +00:00
{% endif %}