You are here

Issue.html.twig in Drupal 7 to 8/9 Module Upgrader 8

{% autoescape false %}
    <details class="{{ issue.Tag('error_level') }}">
      <summary>{{ issue.Title() }}</summary>

      {% if issue.Summary is not empty %}<div>{{ issue.Summary }}</div>{% endif %}

      {% if issue.Documentation is not empty %}
      <h5>Documentation</h5>
      <ul>
        {% for doc in issue.Documentation %}
        <li><a target="_blank" href="{{ doc.url }}">{{ doc.title }}</a></li>
        {% endfor %}
      </ul>
      {% endif %}

      {% if issue.Violations is not empty %}
      <h5>Files Affected</h5>
      <ul>
      {% for violation in issue.Violations %}
        <li>{{ violation.file }}{% if violation.line_number %}, line {{ violation.line_number }}{% endif %}</li>
      {% endfor %}
      </ul>
      {% endif %}
      {% if issue.hasTag('fixable') %}<p class="fixable">This issue can be fixed automatically.</p>{% endif %}
      {% if issue.Detectors is not empty %}<aside>Flagged by {{ issue.Detectors|join(', ') }}</aside>{% endif %}
    </details>
{% endautoescape %}

File

templates/Issue.html.twig
View source
  1. {% autoescape false %}
  2. <details class="{{ issue.Tag('error_level') }}">
  3. <summary>{{ issue.Title() }}</summary>
  4. {% if issue.Summary is not empty %}<div>{{ issue.Summary }}</div>{% endif %}
  5. {% if issue.Documentation is not empty %}
  6. <h5>Documentation</h5>
  7. <ul>
  8. {% for doc in issue.Documentation %}
  9. <li><a target="_blank" href="{{ doc.url }}">{{ doc.title }}</a></li>
  10. {% endfor %}
  11. </ul>
  12. {% endif %}
  13. {% if issue.Violations is not empty %}
  14. <h5>Files Affected</h5>
  15. <ul>
  16. {% for violation in issue.Violations %}
  17. <li>{{ violation.file }}{% if violation.line_number %}, line {{ violation.line_number }}{% endif %}</li>
  18. {% endfor %}
  19. </ul>
  20. {% endif %}
  21. {% if issue.hasTag('fixable') %}<p class="fixable">This issue can be fixed automatically.</p>{% endif %}
  22. {% if issue.Detectors is not empty %}<aside>Flagged by {{ issue.Detectors|join(', ') }}</aside>{% endif %}
  23. </details>
  24. {% endautoescape %}