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.

leaderboard.twig 1.4KB

12345678910111213141516171819202122232425262728293031323334
  1. <div class="head">
  2. {% if contest.hasBonusPool %}
  3. <h3>The Bonus Point pool currently stands at {{ contest.bonusPoolTotal|number_format }} points.</h3>
  4. {% endif %}
  5. {% if not contest.isOpen and contest.totalEntries == 0 %}
  6. <p>That's not supposed to happen. Looks like the contest hasn't begun yet!<p>
  7. {% elseif contest.totalEntries == 0 %}
  8. <p>The scheduler has not run yet, there are no results to display.<p>
  9. {% else %}
  10. <h3>A grand total of {{ contest.totalEntries|number_format }} {{ action_header }}.</h3>
  11. </div>
  12. {{ paginator.linkbox|raw }}
  13. {% set rank = (paginator.page - 1) * paginator.limit %}
  14. <table class="layout">
  15. <tr>
  16. <th style="text-align:left">Rank</th>
  17. <th style="text-align:left">Who</th>
  18. <th style="text-align:left">Most recent {{ action }}</th>
  19. <th style="text-align:left">Most recent time</th>
  20. <th style="text-align:left">{{ score_header }}</th>
  21. </tr>
  22. {% for entry in contest.leaderboard(paginator.limit, paginator.offset) %}
  23. {% set rank = rank + 1 %}
  24. <tr>
  25. <td>{{ rank|number_format }}</td>
  26. <td class="nowrap"><a href="/user.php?id={{ entry.user_id }}">{{ entry.username}}</a>{% if entry.user_id == viewer %} (that's you!){% endif %}</td>
  27. <td>{{ entry.last_entry_link|raw }}</td>
  28. <td class="nowrap">{{ entry.last_upload|time_diff }} </td>
  29. <td>{{ entry.entry_count }}</td>
  30. </tr>
  31. {% endfor %}
  32. </table>
  33. {{ paginator.linkbox|raw }}
  34. {% endif %}