{% extends 'manage/news/master.twig' %} {% from 'macros.twig' import pagination, container_title %} {% block manage_content %}
{{ container_title('News Posts') }} New Post {% for post in news_posts %}

#{{ post.id }} Category #{{ post.categoryId }} {{ post.title }} | {{ post.featured ? 'Featured' : 'Normal' }} | User #{{ post.userId }} | {% if post.commentsSectionId is not null %}Comments category #{{ post.commentsCategoryId }}{% else %}No comments category{% endif %} | Created {{ post.createdAt }} | {{ post.published ? 'published' : 'Published ' ~ post.scheduledAt }} | {{ post.edited ? 'Edited ' ~ post.updatedAt : 'not edited' }} | {{ post.deleted ? 'Deleted ' ~ post.deletedAt : 'not deleted' }}

{% endfor %} {{ pagination(posts_pagination, 'manage-news-posts') }}
{% endblock %}