You are here

log-add-list.html.twig in Log entity 8

Default theme implementation to list log types available for adding log.

This list is displayed on the Add log admin page.

Available variables:

  • types: A list of log types, each with the following properties:

    • add_link: Link to create a piece of content of this type.

File

templates/log-add-list.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation to list log types available for adding log.
  5. *
  6. * This list is displayed on the Add log admin page.
  7. *
  8. * Available variables:
  9. * - types: A list of log types, each with the following properties:
  10. * - add_link: Link to create a piece of content of this type.
  11. *
  12. * @see template_preprocess_log_add_list()
  13. *
  14. * @ingroup themeable
  15. */
  16. #}
  17. {% if types is not empty %}
  18. <dl>
  19. {% for type in types %}
  20. <dt>{{ type.add_link }}</dt>
  21. {% endfor %}
  22. </dl>
  23. {% else %}
  24. <p>
  25. {% set create_log = path('entity.log_type.add_form') %}
  26. {% trans %}
  27. You have not created any log types yet. Go to the <a href="{{ create_log }}">log type creation page</a> to add a new log type.
  28. {% endtrans %}
  29. </p>
  30. {% endif %}