BioTorrents.de’s version of Gazelle
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

report.twig 1.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. {% if not logfile.checksum() %}
  2. <blockquote>
  3. {% if pasted is not defined or pasted == false %}
  4. <strong>Trumpable For:</strong>
  5. <br /><br />
  6. {% if logfile.checksumState() == 'checksum_missing' %}
  7. No Checksum(s)
  8. {% elseif logfile.checksumState() == 'checksum_invalid' %}
  9. Invalid Checksum(s)
  10. {% endif %}
  11. {% else %}
  12. Checksums of pasted log files cannot be verified, as the character encoding can change during copy-pasting.
  13. {% endif %}
  14. </blockquote>
  15. {% endif %}
  16. {% if logfile.score() == 100 %}
  17. {% set color = '#418B00' %}
  18. {% elseif logfile.score() > 90 %}
  19. {% set color = '#74C42E' %}
  20. {% elseif logfile.score() > 75 %}
  21. {% set color = '#FFAA00' %}
  22. {% elseif logfile.score() > 50 %}
  23. {% set color = '#FF5E00' %}
  24. {% else %}
  25. {% set color = '#FF0000' %}
  26. {% endif %}
  27. <blockquote>
  28. <strong>Score:</strong> <span style="color:{{ color }}">{{ logfile.score() }}</span> (out of 100)
  29. </blockquote>
  30. <blockquote>
  31. <h3>Log validation report:</h3>
  32. <ul>
  33. {% for detail in logfile.details() %}
  34. <li>{{ detail }}</li>
  35. {% endfor %}
  36. </ul>
  37. </blockquote>
  38. <blockquote>
  39. <pre>{{ logfile.text()|raw }}</pre>
  40. </blockquote>