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.

site-info-userrank.twig 1.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. </style>
  2. <div class="linkbox">
  3. <a href="tools.php?action=site_info" class="brackets">Site Information</a>
  4. </div>
  5. <div class="thin">
  6. <h3>User Rank matrix</h3>
  7. <div class="pad">This table shows how metrics are mapped to percentiles. Taking
  8. the raw value of a user dimension (e.g. 45 uploads), walk down the uploads column
  9. and the first value that is strictly lower than their value (e.g. 44) gives their
  10. rank (in the left hand column). If their value is beneath the last value in the
  11. column then their rank is zero). The data are cached for around one hour.</div>
  12. <table>
  13. <tr>
  14. <th>Rank </th>
  15. {% for n in name %}
  16. <th style="width: 8.5%; padding: 0;"><div class="rot90-container"><div class="rot90">
  17. {{ n }}
  18. </div></div></th>
  19. {% endfor %}
  20. </tr>
  21. {% for r in range(0, 99) %}
  22. <tr>
  23. {% set idx = 100 - r %}
  24. <td class="number_column">{{ idx }}</td>
  25. {% for n in name %}
  26. {% if table[n][idx] is empty %}
  27. <td class="center">&sdot;</td>
  28. {% else %}
  29. {% if n in ['uploaded', 'downloaded', 'bounty'] %}
  30. <td class="number_column">{{ table[n][idx]|octet_size }}</td>
  31. {% else %}
  32. <td class="number_column">{{ table[n][idx]|number_format }}</td>
  33. {% endif %}
  34. {% endif %}
  35. {% endfor %}
  36. </tr>
  37. {% endfor %}
  38. <tr>
  39. <th>Rank </th>
  40. {% for n in name %}
  41. <th style="width: 8.5%; padding: 0;"><div class="rot90-container"><div class="rot90">
  42. {{ n }}
  43. </div></div></th>
  44. {% endfor %}
  45. </tr>
  46. </table>