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.

appearance.twig 3.9KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. {% from 'macro/form.twig' import checked, selected %}
  2. <table cellpadding="6" cellspacing="1" border="0" width="100%" class="layout border user_options" id="site_appearance_settings">
  3. <tr class="colhead_dark">
  4. <td colspan="2">
  5. <strong>Site Appearance Settings</strong>
  6. </td>
  7. </tr>
  8. <tr id="site_style_tr">
  9. <td class="label tooltip" title="Selecting a stylesheet will change {{ constant('SITE_NAME') }}'s visual appearance.">
  10. <strong>Stylesheet</strong>
  11. </td>
  12. <td>
  13. <select name="stylesheet" id="stylesheet">
  14. {% for sheet in stylesheets %}
  15. <option value="{{ sheet.ID }}"{{ selected(sheet.ID == style_id) }}>{{ sheet.ProperName }}</option>
  16. {% endfor %}
  17. </select>&nbsp;&nbsp;
  18. <a href="#" id="toggle_css_gallery" class="brackets">Show gallery</a>
  19. <div id="css_gallery">
  20. {% for sheet in stylesheets %}
  21. <div class="preview_wrapper">
  22. <div class="preview_image" name="{{ sheet.Name }}">
  23. <a href="{{ constant('STATIC_SERVER') }}/stylespreview/full_{{ sheet.Name }}.png" target="_blank">
  24. <img src="{{ constant('STATIC_SERVER') }}/stylespreview/thumb_{{ sheet.Name }}.png" alt="{{ sheet.Name }}" />
  25. </a>
  26. </div>
  27. <p class="preview_name">
  28. <label><input type="radio" name="stylesheet_gallery" value="{{ sheet.ID }}" /> {{ sheet.ProperName }}</label>
  29. </p>
  30. </div>
  31. {% endfor %}
  32. </div>
  33. </td>
  34. </tr>
  35. <tr id="site_extstyle_tr">
  36. <td class="label tooltip" title="Providing a link to an externally-hosted stylesheet will override your default stylesheet selection.">
  37. <strong>External stylesheet URL</strong>
  38. </td>
  39. <td>
  40. <input type="text" size="40" name="styleurl" id="styleurl" value="{{ style_url }}" />
  41. </td>
  42. </tr>
  43. <tr id="site_opendyslexic_tr">
  44. <td class="label tooltip_interactive"
  45. title="&lt;a href=&quot;http://opendyslexic.org&quot; target=&quot;_blank&quot;&gt;Click here&lt;/a&gt; to read about OpenDyslexic, a CC-BY 3.0 licensed font designed for users with dyslexia."
  46. data-title-plain="Go to http://opendyslexic.org to read about OpenDyslexic, a CC-BY 3.0 licensed font designed for users with dyslexia.">
  47. <strong>OpenDyslexic</strong></td>
  48. <td>
  49. <div class="field_div">
  50. <input type="checkbox" name="useopendyslexic" id="useopendyslexic"{{ checked(option.UseOpenDyslexic) }} />
  51. <label for="useopendyslexic">Enable the OpenDyslexic font</label>
  52. </div>
  53. <p class="min_padding">This is an experimental feature, and some stylesheets will have display issues.</p>
  54. </td>
  55. </tr>
  56. <tr id="site_tooltips_tr">
  57. <td class="label tooltip" title="Use styled tooltips instead of the browser's default when hovering elements with extra information (such as this one).">
  58. <strong>Styled tooltips</strong>
  59. </td>
  60. <td>
  61. <input type="checkbox" name="usetooltipster" id="usetooltipster"{{ checked(option.Tooltipster) }} />
  62. <label for="usetooltipster">Enable styled tooltips</label>
  63. </td>
  64. </tr>
  65. {% if is_mod %}
  66. <tr id="site_autostats_tr">
  67. <td class="label tooltip" title="This is a staff-only feature to bypass the &quot;Show stats&quot; button for seeding, leeching, snatched, and downloaded stats on profile pages.">
  68. <strong>Reveal user stats</strong>
  69. </td>
  70. <td>
  71. <input type="checkbox" id="autoload_comm_stats" name="autoload_comm_stats"{{ checked(option.AutoloadCommStats) }} />
  72. <label for="autoload_comm_stats">Automatically fetch the snatch and peer stats on member profile pages.</label>
  73. </td>
  74. </tr>
  75. {% endif %}
  76. </table>