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.

notification-settings.twig 3.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. self::render_push_settings();
  2. {% macro check_popup(name, setting) %}
  3. {% set checked = not setting or setting in [1, 4] ? " checked=\"checked\"" : "" %}
  4. <label>
  5. <input type="checkbox" name="notifications_{{ name }}_popup" id="notifications_{{ name }}_popup"{{ checked }} />
  6. Pop-up
  7. </label>
  8. {% endmacro %}
  9. {% macro check_push(name, setting) %}
  10. {% set checked = setting in [3, 4, 5] ? " checked=\"checked\"" : "" %}
  11. <label>
  12. <input type="checkbox" name="notifications_{{ name }}_push" id="notifications_{{ name }}_push"{{ checked }} />
  13. Push
  14. </label>
  15. {% endmacro %}
  16. {% macro check_trad(name, setting) %}
  17. {% set checked = setting in [2, 5] ? " checked=\"checked\"" : "" %}
  18. <label>
  19. <input type="checkbox" name="notifications_{{ name }}_traditional" id="notifications_{{ name }}_traditional"{{ checked }} />
  20. Traditional
  21. </label>
  22. {% endmacro %}
  23. <tr>
  24. <td class="label">
  25. <strong>News announcements</strong>
  26. </td>
  27. <td>
  28. {{ _self.check_popup("News", settings.News) }}
  29. {{ _self.check_push("News", settings.News) }}
  30. </td>
  31. </tr>
  32. <tr>
  33. <td class="label">
  34. <strong>Blog announcements</strong>
  35. </td>
  36. <td>
  37. {{ _self.check_popup("Blog", settings.Blog) }}
  38. {{ _self.check_push("Blog", settings.Blog) }}
  39. </td>
  40. </tr>
  41. <tr>
  42. <td class="label">
  43. <strong>Inbox messages</strong>
  44. </td>
  45. <td>
  46. {{ _self.check_popup("Inbox", settings.Inbox) }}
  47. {{ _self.check_trad("Inbox", settings.Inbox) }}
  48. {{ _self.check_push("Inbox", settings.Inbox) }}
  49. </td>
  50. </tr>
  51. <tr>
  52. <td class="label tooltip" title="Enabling this will give you a notification when you receive a new private message from a member of {{ constant('SITE_NAME') }} staff.">
  53. <strong>Staff messages</strong>
  54. </td>
  55. <td>
  56. {{ _self.check_popup("StaffPM", settings.StaffPM) }}
  57. </td>
  58. </tr>
  59. <tr>
  60. <td class="label">
  61. <strong>Thread subscriptions</strong>
  62. </td>
  63. <td>
  64. {{ _self.check_popup("Subscriptions", settings.Subscriptions) }}
  65. </td>
  66. </tr>
  67. <tr>
  68. <td class="label tooltip" title="Enabling this will give you a notification whenever someone quotes you in the forums.">
  69. <strong>Quote notifications</strong>
  70. </td>
  71. <td>
  72. {{ _self.check_popup("Quotes", settings.Quotes) }}
  73. {{ _self.check_push("Quotes", settings.Quotes) }}
  74. </td>
  75. </tr>
  76. {% if can.torrent_notify %}
  77. <tr>
  78. <td class="label tooltip" title="Enabling this will give you a notification when the torrent notification filters you have established are triggered.">
  79. <strong>Torrent notifications</strong>
  80. </td>
  81. <td>
  82. {{ _self.check_popup("TorrentsAlerts", settings.TorrentsAlerts) }}
  83. {{ _self.check_trad("TorrentsAlerts", settings.TorrentsAlerts) }}
  84. </td>
  85. </tr>
  86. {% endif %}
  87. <tr>
  88. <td class="label tooltip" title="Enabling this will give you a notification when a torrent is added to a collage you are subscribed to.">
  89. <strong>Collage subscriptions</strong>
  90. </td>
  91. <td>
  92. {{ _self.check_popup("CollageAlerts", settings.CollageAlerts) }}
  93. </td>
  94. </tr>