{% extends "base.html" %} {% load crispy_forms_tags %} {% block title %}Preferences{% endblock %} {% load static %} {% load webpush_notifications %} {% block extra_head %} {% comment %} webpush.js dereferences the subscribe button on load, so only load it when we're actually offering the browser subscription. {% endcomment %} {% if form.can_subscribe_to_webpush %}{% webpush_header %}{% endif %} {% endblock %} {% block extra_js %} {% endblock %} {% block content %} {% include "preferences_ribbon.html" %}
{% comment %} Filled in by the app (see extra_js): a real notification control instead of a checkbox that's greyed out with no explanation. Stays empty and hidden in a browser, and in the app until the bridge answers. {% endcomment %} {% if request.is_mobile_app %}
{% endif %} {% crispy form form.helper %} {% endblock %}