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('Categories') }}
|
|
|
|
|
|
|
|
<a href="{{ url('manage-news-category') }}" class="input__button">New Category</a>
|
|
|
|
|
|
|
|
{% for cat in news_categories %}
|
|
|
|
<p>
|
2023-07-15 17:02:46 +00:00
|
|
|
<a href="{{ url('manage-news-category', {'category': cat.id}) }}" class="input__button">#{{ cat.id }}</a>
|
|
|
|
{{ cat.name }} |
|
2024-11-30 04:09:29 +00:00
|
|
|
{{ cat.hidden ? 'Unlisted' : 'Public' }} |
|
2023-07-15 17:02:46 +00:00
|
|
|
{{ cat.createdAt }}
|
2022-09-13 13:14:49 +00:00
|
|
|
</p>
|
|
|
|
{% endfor %}
|
|
|
|
|
2023-09-08 20:40:48 +00:00
|
|
|
{{ pagination(categories_pagination, 'manage-news-categories') }}
|
2022-09-13 13:14:49 +00:00
|
|
|
</div>
|
|
|
|
{% endblock %}
|