You are here

quail_api_test.html.twig in Quail API 8

Default theme implementation to display the validation results.

This displays the validation results of a single validation test.

Available Variables:

Content Variables:

  • quail_test_title: The human friendly title of the test.
  • quail_test_description: A description of the test.
  • quail_test_problems: An array of problems found that are associated with the test.
  • quail_test_note: Additional notes associated with the test.
  • quail_renderred_problems: An array of the renderred test data results as passed to the quail_api_problem theme.

Styling Variables:

  • quail_base_class: A generated, generic, css class.
  • quail_specific_class: A generated, somewhat unique, css class.
  • quail_markup_format: The filter format to use for check_markup calls.

File

templates/quail_api_test.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation to display the validation results.
  5. *
  6. * This displays the validation results of a single validation test.
  7. *
  8. * Available Variables:
  9. *
  10. * Content Variables:
  11. * - quail_test_title: The human friendly title of the test.
  12. * - quail_test_description: A description of the test.
  13. * - quail_test_problems: An array of problems found that are associated with
  14. * the test.
  15. * - quail_test_note: Additional notes associated with the test.
  16. * - quail_renderred_problems: An array of the renderred test data results as
  17. * passed to the quail_api_problem theme.
  18. *
  19. * Styling Variables:
  20. * - quail_base_class: A generated, generic, css class.
  21. * - quail_specific_class: A generated, somewhat unique, css class.
  22. * - quail_markup_format: The filter format to use for check_markup calls.
  23. */
  24. #}
  25. <div class="{{ quail_specific_class }}-wrapper {{ quail_base_class }}-wrapper">
  26. <details id="{{ quail_specific_class }}" class="{{ quail_base_class }}">
  27. <summary class="details-summary"><span class="details-summary-span">{{ quail_test_title }}</span></summary>
  28. <div class="details-wrapper">
  29. <div class="{{ quail_base_class }}-description">{{ quail_test_description }}</div>
  30. <div class="{{ quail_base_class }}-problems">{{ quail_renderred_problems }}</div>
  31. {% if quail_test_note is not empty %}
  32. <div class="{{ quail_base_class }}-note">
  33. <div class="{{ quail_base_class }}-note-title">{{'Additional Notes:'|t}}</div>
  34. <div class="{{ quail_base_class }}-note-text">{{ quail_test_note|t }}</div>
  35. </div>
  36. {% endif %}
  37. </div>
  38. </details>
  39. </div>