Web app for quickly sorting deluge torrents into a library
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.
 
 
 
 
 

50 lines
1.5 KiB

  1. {% extends "page.html" %}
  2. {% block toolbar %}
  3. <a href="/"><button>Back</button></a>
  4. {% endblock %}
  5. {% block body %}
  6. <div class="sortform">
  7. <h2>Sort {{ torrent.name }} </h2>
  8. <p>{{ torrent.hash }}</p>
  9. <fieldset>
  10. <legend>files</legend>
  11. <ul>
  12. {% for f in torrent.files %}
  13. <li>{{ f.path }} - {{ f.size }} B</li> <!-- TODO nice size formatting-->
  14. {% endfor %}
  15. </ul>
  16. </fieldset>
  17. <br/>
  18. <form action="/sort" method="post">
  19. <input type="hidden" name="thash" value="{{ torrent.hash }}">
  20. <fieldset>
  21. <legend>destination</legend>
  22. <table>
  23. <tr>
  24. <th></th>
  25. <th>show</th>
  26. <th>season</th>
  27. <th>library</th>
  28. <th>score</th>
  29. </tr>
  30. {% for row in matches %}
  31. <tr>
  32. <td>
  33. <input type="radio" name="dest" value="{{row.dest.dir}}" {% if loop.index == 1 %}checked="checked"{%endif %}/>
  34. </td>
  35. <td>{{ row.dest.dir }}</td>
  36. <td>{{ row.subdest }}</td>
  37. <td>{{ row.dest.root }}</td>
  38. <td>{{ row.score }}</td>
  39. </tr>
  40. {% endfor %}
  41. </table>
  42. <br />
  43. <input type="submit" value="Sort">
  44. </fieldset>
  45. </form>
  46. </div>
  47. {% endblock %}