news-reader-php/templates/bucket/index.html.twig

23 lines
590 B
Twig
Raw Normal View History

2020-05-26 12:56:15 +02:00
{% extends 'base.html.twig' %}
{% block title %}{{ bucket.name }} | {{ parent() }}{% endblock %}
2020-05-26 12:56:15 +02:00
{% block body %}
<header>
<h1>Bucket: {{ bucket.name }} <small>with {{ bucket.feeds | length }} feeds</small></h1>
2020-05-26 12:56:15 +02:00
</header>
{{ include('feed/entries.html.twig') }}
<aside>
<h1>Feeds in this bucket</h1>
<ul>
{% for feed in bucket.feeds %}
<li>
<a href="{{ path('feed', {slug: feed.slug}) }}">{{ feed.name }}</a>
</li>
{% endfor %}
</ul>
</aside>
2020-05-26 12:56:15 +02:00
{% endblock %}