1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- self::render_push_settings();
-
- {% macro check_popup(name, setting) %}
- {% set checked = not setting or setting in [1, 4] ? " checked=\"checked\"" : "" %}
- <label>
- <input type="checkbox" name="notifications_{{ name }}_popup" id="notifications_{{ name }}_popup"{{ checked }} />
- Pop-up
- </label>
- {% endmacro %}
-
- {% macro check_push(name, setting) %}
- {% set checked = setting in [3, 4, 5] ? " checked=\"checked\"" : "" %}
- <label>
- <input type="checkbox" name="notifications_{{ name }}_push" id="notifications_{{ name }}_push"{{ checked }} />
- Push
- </label>
- {% endmacro %}
-
- {% macro check_trad(name, setting) %}
- {% set checked = setting in [2, 5] ? " checked=\"checked\"" : "" %}
- <label>
- <input type="checkbox" name="notifications_{{ name }}_traditional" id="notifications_{{ name }}_traditional"{{ checked }} />
- Traditional
- </label>
- {% endmacro %}
-
- <tr>
- <td class="label">
- <strong>News announcements</strong>
- </td>
- <td>
- {{ _self.check_popup("News", settings.News) }}
- {{ _self.check_push("News", settings.News) }}
- </td>
- </tr>
- <tr>
- <td class="label">
- <strong>Blog announcements</strong>
- </td>
- <td>
- {{ _self.check_popup("Blog", settings.Blog) }}
- {{ _self.check_push("Blog", settings.Blog) }}
- </td>
- </tr>
- <tr>
- <td class="label">
- <strong>Inbox messages</strong>
- </td>
- <td>
- {{ _self.check_popup("Inbox", settings.Inbox) }}
- {{ _self.check_trad("Inbox", settings.Inbox) }}
- {{ _self.check_push("Inbox", settings.Inbox) }}
- </td>
- </tr>
- <tr>
- <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.">
- <strong>Staff messages</strong>
- </td>
- <td>
- {{ _self.check_popup("StaffPM", settings.StaffPM) }}
- </td>
- </tr>
- <tr>
- <td class="label">
- <strong>Thread subscriptions</strong>
- </td>
- <td>
- {{ _self.check_popup("Subscriptions", settings.Subscriptions) }}
- </td>
- </tr>
- <tr>
- <td class="label tooltip" title="Enabling this will give you a notification whenever someone quotes you in the forums.">
- <strong>Quote notifications</strong>
- </td>
- <td>
- {{ _self.check_popup("Quotes", settings.Quotes) }}
- {{ _self.check_push("Quotes", settings.Quotes) }}
- </td>
- </tr>
- {% if can.torrent_notify %}
- <tr>
- <td class="label tooltip" title="Enabling this will give you a notification when the torrent notification filters you have established are triggered.">
- <strong>Torrent notifications</strong>
- </td>
- <td>
- {{ _self.check_popup("TorrentsAlerts", settings.TorrentsAlerts) }}
- {{ _self.check_trad("TorrentsAlerts", settings.TorrentsAlerts) }}
- </td>
- </tr>
- {% endif %}
- <tr>
- <td class="label tooltip" title="Enabling this will give you a notification when a torrent is added to a collage you are subscribed to.">
- <strong>Collage subscriptions</strong>
- </td>
- <td>
- {{ _self.check_popup("CollageAlerts", settings.CollageAlerts) }}
- </td>
- </tr>
|