clone of github.com/decent-newsroom/newsroom
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

59 lines
2.1 KiB

{% extends 'layout.html.twig' %}
{% block body %}
<twig:Atoms:PageHeading heading="Topics" tagline="Explore your interests"/>
{% if userInterests %}
<section class="d-flex gap-3 center ln-section--newsstand">
<div class="container mt-5 mb-5">
<h2>Your Interests</h2>
</div>
</section>
<div class="subcategories-grid">
{% for catKey, category in userInterests %}
{% for subKey, sub in category.subcategories %}
<div class="sub-card">
<h3><a href="{{ path('forum_topic', {'key': catKey ~ '-' ~ subKey}) }}">{{ sub.name }}</a></h3>
<div class="d-flex flex-row">
<div class="tags m-0">
{% for tag in sub.tags %}
<a class="tag" href="{{ path('forum_tag', {'tag': tag}) }}">{{ tag }}</a>
{% endfor %}
</div>
<div class="count">{{ sub.count|default(0) }}</div>
</div>
</div>
{% endfor %}
{% endfor %}
</div>
{% endif %}
{% for catKey, category in topics %}
<section class="d-flex gap-3 center ln-section--newsstand">
<div class="container mt-5 mb-5">
<h2>
<a href="{{ path('forum_main_topic', { topic: catKey }) }}">{{ category.name }}</a>
</h2>
</div>
</section>
<div class="subcategories-grid">
{% for subKey, sub in category.subcategories %}
<div class="sub-card">
<h3><a href="{{ path('forum_topic', {'key': catKey ~ '-' ~ subKey}) }}">{{ sub.name }}</a></h3>
<div class="d-flex flex-row">
<div class="tags m-0">
{% for tag in sub.tags %}
<a class="tag" href="{{ path('forum_tag', {'tag': tag}) }}">{{ tag }}</a>
{% endfor %}
</div>
<div class="count">{{ sub.count|default(0) }}</div>
</div>
</div>
{% endfor %}
</div>
{% endfor %}
{% endblock %}
{% block aside %}
<twig:Atoms:ForumAside />
{% endblock %}