2020-05-26 12:56:15 +02:00
|
|
|
|
{% extends 'base.html.twig' %}
|
|
|
|
|
|
2020-05-26 22:11:02 +02:00
|
|
|
|
{% block title %}{{ bucket.name }} | {{ parent() }}{% endblock %}
|
2020-05-26 12:56:15 +02:00
|
|
|
|
|
|
|
|
|
{% block body %}
|
|
|
|
|
<header>
|
2020-05-26 22:11:02 +02:00
|
|
|
|
<h1>Bucket: {{ bucket.name }} <small>with {{ bucket.feeds | length }} feeds</small></h1>
|
2020-05-26 23:09:30 +02:00
|
|
|
|
<nav> </nav>
|
2020-05-26 12:56:15 +02:00
|
|
|
|
</header>
|
2020-05-26 22:11:02 +02:00
|
|
|
|
|
2020-05-26 23:09:30 +02:00
|
|
|
|
{# TODO: collect newest entries of all feeds in controller #}
|
|
|
|
|
{{ include('feed/entries.html.twig', {entries: bucket.feeds.first.entries | slice(0, 10) }) }}
|
2020-05-26 22:11:02 +02:00
|
|
|
|
|
|
|
|
|
<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 %}
|