This repository has been archived on 2025-01-28. You can view files and clone it, but cannot push or open issues or pull requests.
misuzu-interim/templates/manage/news/categories.twig

22 lines
739 B
Twig
Raw Permalink Normal View History

2022-09-13 15:14:49 +02: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.hidden ? 'Unlisted' : 'Public' }} |
2023-07-15 17:02:46 +00:00
{{ cat.createdAt }}
2022-09-13 15:14:49 +02:00
</p>
{% endfor %}
2023-09-08 20:40:48 +00:00
{{ pagination(categories_pagination, 'manage-news-categories') }}
2022-09-13 15:14:49 +02:00
</div>
{% endblock %}