22 lines
869 B
HTML
22 lines
869 B
HTML
{% load compress %}
|
|
|
|
{% compress js %}
|
|
<script src='{{ STATIC_URL }}horizon/js/horizon.js' type='text/javascript' charset='utf-8'></script>
|
|
<script src='{{ STATIC_URL }}horizon/js/horizon.conf.js' type='text/javascript' charset='utf-8'></script>
|
|
<script type='text/javascript' charset='utf-8'>
|
|
/* Storage for backend configuration variables which the frontend
|
|
* should be aware of.
|
|
*/
|
|
horizon.conf.debug = {{ debug|yesno:"true,false" }};
|
|
horizon.conf.static_url = "{{ STATIC_URL }}";
|
|
horizon.conf.ajax = {
|
|
queue_limit: {{ HORIZON_CONFIG.ajax_queue_limit|default:"null" }}
|
|
};
|
|
horizon.conf.auto_fade_alerts = {
|
|
delay: {{ HORIZON_CONFIG.auto_fade_alerts.delay|default:"3000" }},
|
|
fade_duration: {{ HORIZON_CONFIG.auto_fade_alerts.fade_duration|default:"1500" }},
|
|
types: {{ HORIZON_CONFIG.auto_fade_alerts.types|default:"[]"|safe }}
|
|
};
|
|
</script>
|
|
{% endcompress %}
|