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.
 
 
 
 

25 lines
733 B

  1. {% extends 'base.html.twig' %}
  2. {% block title %}{{ bucket.name }} | {{ parent() }}{% endblock %}
  3. {% block body %}
  4. <header>
  5. <h1>Bucket: {{ bucket.name }} <small>with {{ bucket.feeds | length }} feeds</small></h1>
  6. <nav> </nav>
  7. </header>
  8. {# TODO: collect newest entries of all feeds in controller #}
  9. {{ include('feed/entries.html.twig', {entries: bucket.feeds.first.entries | slice(0, 10) }) }}
  10. <aside>
  11. <h1>Feeds in this bucket</h1>
  12. <ul>
  13. {% for feed in bucket.feeds %}
  14. <li>
  15. <a href="{{ path('feed', {slug: feed.slug}) }}">{{ feed.name }}</a>
  16. </li>
  17. {% endfor %}
  18. </ul>
  19. </aside>
  20. {% endblock %}