21 lines
739 B
Twig
21 lines
739 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.hidden ? 'Unlisted' : 'Public' }} |
|
|
{{ cat.createdAt }}
|
|
</p>
|
|
{% endfor %}
|
|
|
|
{{ pagination(categories_pagination, 'manage-news-categories') }}
|
|
</div>
|
|
{% endblock %}
|