aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2020-11-14 21:28:50 +0000
committerMario <mario@mariovavti.com>2020-11-14 21:28:50 +0000
commitb63c5f27853aded30c492bdb94a680e5a9c9648b (patch)
tree0d5036dec62e5a3b4abdb34df6993e7634dddf5e /view/tpl
parent685c569eaf094fd7f354bd3fa8026ecefadfa590 (diff)
downloadvolse-hubzilla-b63c5f27853aded30c492bdb94a680e5a9c9648b.tar.gz
volse-hubzilla-b63c5f27853aded30c492bdb94a680e5a9c9648b.tar.bz2
volse-hubzilla-b63c5f27853aded30c492bdb94a680e5a9c9648b.zip
Polling fallback to server sent events. Polling is the default. SSE must be enabled in /admin/site > Advanced > Enable SSE Notifications if desired.
Diffstat (limited to 'view/tpl')
-rwxr-xr-xview/tpl/admin_site.tpl1
-rwxr-xr-xview/tpl/head.tpl1
2 files changed, 2 insertions, 0 deletions
diff --git a/view/tpl/admin_site.tpl b/view/tpl/admin_site.tpl
index 5e10e6eea..8d32ba9a4 100755
--- a/view/tpl/admin_site.tpl
+++ b/view/tpl/admin_site.tpl
@@ -95,6 +95,7 @@
</div>
<h3>{{$advanced}}</h3>
+ {{include file="field_checkbox.tpl" field=$sse_enabled}}
{{include file="field_input.tpl" field=$imagick_path}}
{{include file="field_input.tpl" field=$proxy}}
{{include file="field_input.tpl" field=$proxyuser}}
diff --git a/view/tpl/head.tpl b/view/tpl/head.tpl
index bd4cf3747..0d212e029 100755
--- a/view/tpl/head.tpl
+++ b/view/tpl/head.tpl
@@ -9,6 +9,7 @@
{{$plugins}}
<script>
var updateInterval = {{$update_interval}};
+ var sse_enabled = {{$sse_enabled}};
var localUser = {{if $local_channel}}{{$local_channel}}{{else}}false{{/if}};
var zid = {{if $zid}}'{{$zid}}'{{else}}null{{/if}};
var justifiedGalleryActive = false;