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

25 lines
1.1 KiB
Twig
Raw Normal View History

2016-12-12 22:22:09 +00:00
{% from 'macros.twig' import pagination %}
2016-11-12 18:49:38 +00:00
<div class="forum-list__buttons">
<div>
2016-11-04 16:45:53 +00:00
{% if forumBackLink is defined %}
2016-11-09 18:32:23 +00:00
<a href="{{ forumBackLink }}" class="input__button"><span class="fa fa-backward"></span> Back</a>
{% endif %}
2016-11-04 16:45:53 +00:00
{% if forumReplyLink is defined %}
2016-11-09 18:32:23 +00:00
<a href="{{ forumReplyLink }}" class="input__button"><span class="fa fa-reply-all"></span> Reply</a>
{% endif %}
2016-11-04 16:45:53 +00:00
{% if forumNewLink is defined %}
2016-11-09 18:32:23 +00:00
<a href="{{ forumNewLink }}" class="input__button"><span class="fa fa-pencil-square-o"></span> New Topic</a>
{% endif %}
2016-11-04 16:45:53 +00:00
{% if forumMarkRead is defined %}
2016-11-09 18:32:23 +00:00
<a href="{{ forumMarkRead }}" class="input__button"><span class="fa fa-check-square-o"></span> Mark as Read</a>
{% endif %}
2016-11-04 16:45:53 +00:00
{% if topic.id is defined and showMod is defined %}
{% include 'forum/elements/forumMod.twig' %}
{% endif %}
</div>
2016-12-12 22:22:09 +00:00
{% if pagination_url is defined %}
{{ pagination(pagination_url, pagination_pages, 'rightSide') }}
{% endif %}
</div>