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.

view.twig 2.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. {% from 'macro/form.twig' import selected %}
  2. <div class="box pad">
  3. <h3>Multiple seeding locations</h3>
  4. <p>Select one seedbox and choose another to see which seeds appear in both locations,
  5. or do not appear in the second location.</p>
  6. <p>If you are seeding from only one location, this page will be of no use. You
  7. should look at your <a href="https://orpheus.network/torrents.php?type=seeding&amp;userid={{
  8. user_id }}">seeding torrents</a>.</p>
  9. {% if host is empty %}
  10. No seed locations are reporting. Are your clients seeding and connected?
  11. {% else %}
  12. <form class="manage_form" name="seedbox" action="user.php?action=seedbox-view&amp;userid={{ user_id }}" method="post">
  13. <input type="hidden" name="action" value="seedbox-view" />
  14. <input type="hidden" name="auth" value="{{ auth }}" />
  15. <input type="hidden" name="userid" value="{{ user_id }}" />
  16. <div>View seeds on&nbsp;
  17. {%- for h in host -%}
  18. {%- if loop.first -%}
  19. <select name="source">
  20. {% endif %}
  21. <option value="{{ h.id }}"{{ selected(h.id == source or source == 0 and loop.index0 == 0) }}>{{ h.name }}</option>
  22. {% if loop.last %}
  23. </select>
  24. {%- endif %}
  25. {% endfor -%}
  26. &nbsp;that are&nbsp;<select name="view">
  27. <option value="union" {{ selected(mode == 'union') }}>also</option>
  28. <option value="exclude" {{ selected(mode == 'exclude') }}>not</option>
  29. </select>&nbsp;seeding on
  30. {%- for h in host -%}
  31. {%- if loop.first -%}
  32. &nbsp;<select name="target">
  33. {% endif %}
  34. <option{{ selected(h.id == target or target == 0 and loop.index0 == 1) }} value="{{ h.id }}">{{ h.name }}</option>
  35. {% if loop.last %}
  36. </select>
  37. {% endif %}
  38. {% endfor %}
  39. <br /><br />
  40. Sort by <select name="viewby">
  41. <option value="{{ constant('\\Gazelle\\Seedbox::VIEW_BY_NAME') }}"{{
  42. viewby == constant('\\Gazelle\\Seedbox::VIEW_BY_NAME') ? ' selected="selected"' : '' }}>release name</option>
  43. <option value="{{ constant('\\Gazelle\\Seedbox::VIEW_BY_PATH') }}"{{
  44. viewby == constant('\\Gazelle\\Seedbox::VIEW_BY_PATH') ? ' selected="selected"' : '' }}>folder name</option>
  45. </select>
  46. </div>
  47. <br />
  48. <input type="submit" value="View seeds" />
  49. </form>
  50. {% endif %}
  51. </div>
  52. </div>