2022-09-13 13:14:49 +00:00
|
|
|
{% extends 'manage/news/master.twig' %}
|
|
|
|
{% from 'macros.twig' import pagination, container_title %}
|
|
|
|
|
|
|
|
{% block manage_content %}
|
|
|
|
<div class="container">
|
|
|
|
{{ container_title('News Posts') }}
|
|
|
|
|
|
|
|
<a href="{{ url('manage-news-post') }}" class="input__button">New Post</a>
|
|
|
|
|
|
|
|
{% for post in news_posts %}
|
|
|
|
<p>
|
2023-07-15 17:02:46 +00:00
|
|
|
<a href="{{ url('manage-news-post', {'post': post.id}) }}" class="input__button">#{{ post.id }}</a>
|
|
|
|
<a href="{{ url('manage-news-category', {'category': post.categoryId}) }}" class="input__button">Category #{{ post.categoryId }}</a>
|
|
|
|
{{ post.title }} |
|
2024-11-30 04:09:29 +00:00
|
|
|
{{ post.featured ? 'Featured' : 'Normal' }} |
|
2023-07-15 17:02:46 +00:00
|
|
|
User #{{ post.userId }} |
|
2024-11-30 04:09:29 +00:00
|
|
|
{% if post.commentsSectionId is not null %}Comments category #{{ post.commentsCategoryId }}{% else %}No comments category{% endif %} |
|
2023-07-15 17:02:46 +00:00
|
|
|
Created {{ post.createdAt }} |
|
2024-11-30 04:09:29 +00:00
|
|
|
{{ post.published ? 'published' : 'Published ' ~ post.scheduledAt }} |
|
|
|
|
{{ post.edited ? 'Edited ' ~ post.updatedAt : 'not edited' }} |
|
|
|
|
{{ post.deleted ? 'Deleted ' ~ post.deletedAt : 'not deleted' }}
|
2022-09-13 13:14:49 +00:00
|
|
|
</p>
|
|
|
|
{% endfor %}
|
|
|
|
|
2023-09-08 20:40:48 +00:00
|
|
|
{{ pagination(posts_pagination, 'manage-news-posts') }}
|
2022-09-13 13:14:49 +00:00
|
|
|
</div>
|
|
|
|
{% endblock %}
|