misuzu/templates/manage/news/posts.twig

27 lines
1.1 KiB
Twig

{% extends 'manage/news/master.twig' %}
{% from 'macros.twig' import pagination %}
{% block manage_content %}
<div class="container container--new">
<div class="container__title">News Posts</div>
<a href="?v=post" class="input__button input__button--new">New Post</a>
{% for post in news_posts %}
<p>
<a href="?v=post&amp;p={{ post.post_id }}" class="input__button input__button--new">{{ post.post_id }}</a>
<a href="?v=category&amp;c={{ post.category_id }}" class="input__button input__button--new">Cat: {{ post.category_id }}</a>
{{ post.post_is_featured }},
{{ post.user_id }},
{{ post.post_title }},
{{ post.post_scheduled }},
{{ post.post_created }},
{{ post.post_updated }},
{{ post.post_deleted }},
{{ post.comment_section_id }}
</p>
{% endfor %}
{{ pagination(posts_count, posts_take, posts_offset, '?v=categories') }}
</div>
{% endblock %}