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.

display.twig 9.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. {% from 'macro/form.twig' import checked, selected %}
  2. <table cellpadding="6" cellspacing="1" border="0" width="100%" class="layout border user_options" id="torrent_settings">
  3. <tr class="colhead_dark">
  4. <td colspan="2">
  5. <strong>Torrent Settings</strong>
  6. </td>
  7. </tr>
  8. {% if can.advanced_search %}
  9. <tr id="tor_searchtype_tr">
  10. <td class="label tooltip" title="This option allows you to choose whether the default torrent search menu will be basic (fewer options) or advanced (more options).">
  11. <strong>Default search type</strong>
  12. </td>
  13. <td>
  14. <ul class="options_list nobullet">
  15. <li>
  16. <input type="radio" name="searchtype" id="search_type_simple" value="0"{{ checked(option.SearchType == 0) }} />
  17. <label for="search_type_simple">Simple</label>
  18. </li>
  19. <li>
  20. <input type="radio" name="searchtype" id="search_type_advanced" value="1"{{ checked(option.SearchType == 1) }} />
  21. <label for="search_type_advanced">Advanced</label>
  22. </li>
  23. </ul>
  24. </td>
  25. </tr>
  26. {% endif %}
  27. <tr id="tor_group_tr">
  28. <td style="vertical-align: top;" class="label"><strong>Torrent grouping</strong></td>
  29. <td>
  30. <p class="min_padding">Enabling torrent grouping on the search page will place multiple
  31. formats of the same torrent group together beneath a common header.</p>
  32. <div class="option_group">
  33. <input type="checkbox" name="disablegrouping" id="disablegrouping"{{ checked(not option.DisableGrouping2) }} />
  34. <label for="disablegrouping">Enable torrent grouping</label>
  35. </div>
  36. </td>
  37. </tr>
  38. <tr id="tor_gdisp_search_tr">
  39. <td style="vertical-align: top;" class="label"><strong>Torrent group display</strong></td>
  40. <td>
  41. <div class="option_group">
  42. <ul class="options_list nobullet">
  43. <p class="min_padding">In torrent search results and on artist pages, &quot;open&quot;
  44. will expand torrent groups by default, and &quot;closed&quot; will collapse torrent groups by default.</p>
  45. <li>
  46. <input type="radio" name="torrentgrouping" id="torrent_grouping_open" value="0"{{ checked(option.TorrentGrouping == 0) }} />
  47. <label for="torrent_grouping_open">Open</label>
  48. </li>
  49. <li>
  50. <input type="radio" name="torrentgrouping" id="torrent_grouping_closed" value="1"{{ checked(option.TorrentGrouping == 1) }} />
  51. <label for="torrent_grouping_closed">Closed</label>
  52. </li>
  53. </ul>
  54. </div>
  55. </td>
  56. </tr>
  57. <tr id="tor_reltype_tr">
  58. <td style="vertical-align: top;" class="label"><strong>Order of release types<br />(artist pages)</strong></td>
  59. <td>
  60. <p class="min_padding">Drag and drop release types to change the order of display on artist pages.<br />
  61. Check the box of a release type if it should be collapsed when an artist page is viewed.</p>
  62. <a href="#" id="reset_sortable" class="brackets">Reset to default</a>
  63. <ul class="sortable_list" id="sortable">
  64. {% set release -%}
  65. {%- for r in release_order -%}
  66. <li class="sortable_item"><input type="checkbox" id="{{ r.id }}"{{ checked(r.checked) }} /> <label for="{{ r.id }}">{{ r.label }}</label></li>
  67. {%- endfor -%}
  68. {% endset -%}
  69. {{- release }}
  70. </ul>
  71. <input type="hidden" id="sorthide" name="sorthide" value="" />
  72. </td>
  73. </tr>
  74. <tr id="tor_cover_tor_tr">
  75. <td class="label tooltip" title="Enabling cover artwork for torrents will show cover artwork next to torrent information. Enabling additional cover artwork will display all additional cover artwork as well.">
  76. <strong>Cover art (torrents)</strong>
  77. </td>
  78. <td>
  79. <ul class="options_list nobullet">
  80. <li>
  81. <input type="hidden" name="coverart" value="" />
  82. <input type="checkbox" name="coverart" id="coverart"{{ checked(option.CoverArt) }} />
  83. <label for="coverart">Enable cover artwork</label>
  84. </li>
  85. <li>
  86. <input type="checkbox" name="show_extra_covers" id="show_extra_covers"{{ checked(option.ShowExtraCovers) }} />
  87. <label for="show_extra_covers">Enable additional cover artwork</label>
  88. </li>
  89. </ul>
  90. </td>
  91. </tr>
  92. <tr id="tor_cover_coll_tr">
  93. <td class="label tooltip" title="This option allows you to change the number of album covers to display within a single collage page.">
  94. <strong>Cover art (collages)</strong>
  95. </td>
  96. <td>
  97. <select name="collagecovers" id="collagecovers">
  98. <option value="10"{{ selected(option.CollageCovers == 10) }}>10</option>
  99. <option value="25"{{ selected(option.CollageCovers is null or option.CollageCovers == 25) }}>25 (default)</option>
  100. <option value="50"{{ selected(option.CollageCovers == 50) }}>50</option>
  101. <option value="100"{{ selected(option.CollageCovers == 100) }}>100</option>
  102. <option value="1000000"{{ selected(option.CollageCovers == 1000000) }}>All</option>
  103. <option value="0"{{ selected(option.CollageCovers == 0 or (option.CollageCovers is null and option.HideCollage)) }}>None</option>
  104. </select>
  105. covers per page
  106. </td>
  107. </tr>
  108. <tr id="tor_autocomp_tr">
  109. <td class="label tooltip" title="Autocomplete will try to predict the word or phrase that you're typing. Selecting &quot;Everywhere&quot; will enable autocomplete on artist and tag fields across the site. Selecting &quot;Searches only&quot; will enable autocomplete in searches.">
  110. <strong>Autocompletion</strong>
  111. </td>
  112. <td>
  113. <select name="autocomplete">
  114. <option value="0"{{ selected(option.AutoComplete is null) }}>Everywhere</option>
  115. <option value="2"{{ selected(option.AutoComplete == 2) }}>Searches only</option>
  116. <option value="1"{{ selected(option.AutoComplete == 1) }}>Disable</option>
  117. </select>
  118. </td>
  119. </tr>
  120. <tr id="tor_voting_tr">
  121. <td class="label tooltip" title="This option allows you to enable or disable &quot;up&quot; and &quot;down&quot; voting links on artist pages, collages, and snatched lists.">
  122. <strong>Voting links</strong>
  123. </td>
  124. <td>
  125. <input type="checkbox" name="novotelinks" id="novotelinks"{{ checked(option.NoVoteLinks) }} />
  126. <label for="novotelinks">Disable voting links</label>
  127. </td>
  128. </tr>
  129. <tr id="tor_showfilt_tr">
  130. <td class="label tooltip" title="Displaying filter controls will show torrent filtering options in the torrent search menu by default. Displaying filters for official tags will list clickable filters for official tags in the torrent search menu by default.">
  131. <strong>Torrent search filters</strong>
  132. </td>
  133. <td>
  134. <ul class="options_list nobullet">
  135. <li>
  136. <input type="checkbox" name="showtfilter" id="showtfilter"{{ checked(option.ShowTorFilter) }} />
  137. <label for="showtfilter">Display filter controls</label>
  138. </li>
  139. <li>
  140. <input type="checkbox" name="showtags" id="showtags"{{ checked(option.ShowTags) }} />
  141. <label for="showtags">Display official tag filters</label>
  142. </li>
  143. </ul>
  144. </td>
  145. </tr>
  146. <tr id="tor_snatched_tr">
  147. <td class="label tooltip" title="Enabling the snatched torrents indicator will display &quot;Snatched!&quot; next to torrents you've snatched.">
  148. <strong>Snatched torrents indicator</strong>
  149. </td>
  150. <td>
  151. <input type="checkbox" name="showsnatched" id="showsnatched"{{ checked(option.ShowSnatched) }} />
  152. <label for="showsnatched">Enable snatched torrents indicator</label>
  153. </td>
  154. </tr>
  155. <tr id="tor_dltext_tr">
  156. <td class="label tooltip" title="Some ISPs block the downloading of torrent files. Enable this option if you wish to download torrent files with a &quot;.txt&quot; file extension.">
  157. <strong>Text file downloads</strong>
  158. </td>
  159. <td>
  160. <input type="checkbox" name="downloadalt" id="downloadalt"{{ checked(download_text) }} />
  161. <label for="downloadalt">Enable downloading torrent files as text files</label>
  162. </td>
  163. </tr>
  164. <tr id="tor_https_tr">
  165. <td class="label tooltip" title="Use HTTPS tracker (recommended). Older clients may not work well with https announcements.">
  166. <strong>Use HTTPS Tracker</strong>
  167. </td>
  168. <td>
  169. <input type="checkbox" name="httpstracker" id="httpstracker"{{ checked(option.HttpsTracker) }} />
  170. <label for="httpstracker">Enable HTTPs tracker for announce URL</label>
  171. </td>
  172. </tr>
  173. </table>
  174. <script type="text/javascript" id="sortable_default">
  175. //<![CDATA[
  176. var sortable_list_default = '{{ release }}';
  177. //]]>
  178. </script>