You are here

quail_api_problem.html.twig in Quail API 8

Default theme implementation to display the validation results.

This displays validation results of a single validation problem or suggestion.

Available Variables:

Content Variables:

  • quail_problem_line: The line number in which the problem was found.
  • quail_problem_description: A description of the problem.

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_problem.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation to display the validation results.
  5. *
  6. * This displays validation results of a single validation problem
  7. * or suggestion.
  8. *
  9. * Available Variables:
  10. *
  11. * Content Variables:
  12. * - quail_problem_line: The line number in which the problem was found.
  13. * - quail_problem_description: A description of the problem.
  14. *
  15. * Styling Variables:
  16. * - quail_base_class: A generated, generic, css class.
  17. * - quail_specific_class: A generated, somewhat unique, css class.
  18. * - quail_markup_format: The filter format to use for check_markup calls.
  19. */
  20. #}
  21. <div class="{{ quail_specific_class }}-wrapper {{ quail_base_class }}-wrapper">
  22. {% if quail_problem_line is not empty %}
  23. <div class="{{ quail_base_class }}-line"><span class="{{ quail_base_class }}-line-snippet">{{'Code Snippet'|t}},</span> <span class="{{ quail_base_class }}-line-number">{{'Line'|t}} {{ quail_problem_line|t}}:</span></div>
  24. {% else %}
  25. <div class="{{ quail_base_class }}-line">{{'Code Snippet:'|t}}</div>
  26. {% endif %}
  27. <div class="{{ quail_base_class }}-description">{{ quail_problem_description }}</div>
  28. </div>