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.

history-freeleech.twig 1.2KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <div class="header">
  2. <h2><a href="{{ user.url }}">{{ user.username }}</a> &rsaquo; Freeleech token history</h2>
  3. </div>
  4. {{ paginator.linkbox|raw }}
  5. <table>
  6. <tr class="colhead_dark">
  7. <td>Torrent</td>
  8. <td>Time</td>
  9. <td>Expired</td>
  10. {% if own_profile or admin %}
  11. <td>Downloaded</td>
  12. <td>Size</td>
  13. <td>Tokens used</td>
  14. {% endif %}
  15. </tr>
  16. {% set torrent_list = user.tokenPage(paginator.limit, paginator.offset) %}
  17. {% for t in torrent_list %}
  18. <tr class="{{ cycle(['a', 'b'], loop.index0) }}">
  19. <td>{{ t.name|raw }}</td>
  20. <td class="nowrap">{{ t.created|time_diff }}</td>
  21. <td>{{ t.expired ? 'Yes' : 'No' }}
  22. {%- if admin and not t.expired %}
  23. &nbsp;<a href="userhistory.php?action=token_history&amp;expire=1&amp;auth={{ auth }}&amp;userid={{ t.userid }}&amp;torrentid={{ t.torrent_id }}">(expire)</a>
  24. {%- endif -%}
  25. </td>
  26. {% if own_profile or admin %}
  27. <td class="nowrap">{{ t.downloaded|octet_size }}</td>
  28. <td class="nowrap">{{ t.size|octet_size }}</td>
  29. <td>{{ t.uses }}</td>
  30. {% endif %}
  31. </tr>
  32. {% endfor %}
  33. </table>
  34. {{ paginator.linkbox|raw }}