misuzu/templates/manage/news/categories.twig

22 lines
746 B
Twig
Raw Normal View History

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 }} |
{{ cat.isHidden ? 'Unlisted' : 'Public' }} |
{{ cat.createdAt }}
2022-09-13 13:14:49 +00:00
</p>
{% endfor %}
{{ pagination(categories_pagination, url('manage-news-categories')) }}
</div>
{% endblock %}