misuzu/templates/manage/news/categories.twig
2023-09-08 20:40:48 +00:00

21 lines
741 B
Twig

{% 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>
<a href="{{ url('manage-news-category', {'category': cat.id}) }}" class="input__button">#{{ cat.id }}</a>
{{ cat.name }} |
{{ cat.isHidden ? 'Unlisted' : 'Public' }} |
{{ cat.createdAt }}
</p>
{% endfor %}
{{ pagination(categories_pagination, 'manage-news-categories') }}
</div>
{% endblock %}