21 lines
746 B
Twig
21 lines
746 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, url('manage-news-categories')) }}
|
|
</div>
|
|
{% endblock %}
|