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/forumBtns.twig
2016-12-21 20:55:17 +01:00

24 lines
1.1 KiB
Twig

{% from 'macros.twig' import pagination %}
<div class="forum-list__buttons">
<div>
{% if forumBackLink is defined %}
<a href="{{ forumBackLink }}" class="input__button"><span class="fa fa-backward"></span> Back</a>
{% endif %}
{% if forumReplyLink is defined %}
<a href="{{ forumReplyLink }}" class="input__button"><span class="fa fa-reply-all"></span> Reply</a>
{% endif %}
{% if forumNewLink is defined %}
<a href="{{ forumNewLink }}" class="input__button"><span class="fa fa-pencil-square-o"></span> New Topic</a>
{% endif %}
{% if forumMarkRead is defined %}
<a href="{{ forumMarkRead }}" class="input__button"><span class="fa fa-check-square-o"></span> Mark as Read</a>
{% endif %}
{% if topic.id is defined and showMod is defined %}
{% include 'forum/elements/forumMod.twig' %}
{% endif %}
</div>
{% if pagination_url is defined %}
{{ pagination(pagination_url, pagination_pages, get.page|default(1), 'rightSide') }}
{% endif %}
</div>