You are here

legal-current-metadata.html.twig in Legal 8

Same filename and directory in other branches
  1. 2.0.x templates/legal-current-metadata.html.twig

Theme implementation for metadata of current T&C.

Available variables:

  • form: The form element.

File

templates/legal-current-metadata.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Theme implementation for metadata of current T&C.
  5. *
  6. * Available variables:
  7. * - form: The form element.
  8. *
  9. * @see template_preprocess_field()
  10. *
  11. * @ingroup themeable
  12. */
  13. #}
  14. {% set multilingual = attribute(form.multilingual, '#markup') %}
  15. {% set version_label = attribute(form.current_version, '#title') %}
  16. {% set version = attribute(form.current_version, '#markup') %}
  17. {% set language_label = attribute(form.current_language, '#title') %}
  18. {% set language = attribute(form.current_language, '#markup') %}
  19. {% set revision_label = attribute(form.current_revision, '#title') %}
  20. {% set revision = attribute(form.current_revision, '#markup') %}
  21. {% set date_label = attribute(form.current_date, '#title') %}
  22. {% set date = attribute(form.current_date, '#markup') %}
  23. <p>
  24. <strong>{{ version_label }}:</strong> {{ version }}<br>
  25. {% if multilingual %}
  26. <strong>{{ language_label }}:</strong> {{ language }}<br>
  27. <strong>{{ revision_label }}:</strong> {{ revision }}<br>
  28. {% endif %}
  29. <strong>{{ date_label }}:</strong> {{ date }}<br>
  30. </p>