You are here

calendar-year.html.twig in Calendar 8.2

Same filename and directory in other branches
  1. 8 templates/calendar-year.html.twig

Default theme implementation to display a view of unformatted rows.

Available variables:

  • title: The title of this group of rows. May be empty.
  • rows: A list of the view's row items.
    • attributes: The row's HTML attributes.
    • content: The row's content.
  • view: The view object.
  • default_row_class: A flag indicating whether default classes should be used on rows.

File

templates/calendar-year.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation to display a view of unformatted rows.
  5. *
  6. * Available variables:
  7. * - title: The title of this group of rows. May be empty.
  8. * - rows: A list of the view's row items.
  9. * - attributes: The row's HTML attributes.
  10. * - content: The row's content.
  11. * - view: The view object.
  12. * - default_row_class: A flag indicating whether default classes should be
  13. * used on rows.
  14. *
  15. * @see template_preprocess_views_view_unformatted()
  16. *
  17. * @ingroup themeable
  18. */
  19. #}
  20. {{ attach_library('calendar/calendar') }}
  21. <div class="calendar year">
  22. <div class="container">
  23. {% for m in year %}
  24. {% include '@templates/calendar-mini-month.html.twig' with {'prefix': m.prefix, 'suffix': m.suffix, 'startcal': m.startcal, 'endcal': m.endcal} %}
  25. {% endfor %}
  26. </div>
  27. </div>