mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-09-19 04:59:01 +00:00
setup: Fix issue with immediate refresh after installation
When refresh_page_sec is set to zero (immediate refresh), the template does not treat that as needing refresh at all. Fix this by distinguishing zero from None. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
7a36ee23f5
commit
0a9514228f
@ -61,7 +61,7 @@
|
|||||||
|
|
||||||
<script type="text/javascript" src="{% static 'theme/js/main.js' %}" defer></script>
|
<script type="text/javascript" src="{% static 'theme/js/main.js' %}" defer></script>
|
||||||
|
|
||||||
{% if refresh_page_sec %}
|
{% if refresh_page_sec is not None %}
|
||||||
<noscript>
|
<noscript>
|
||||||
<meta http-equiv="refresh" content="{{ refresh_page_sec }}" />
|
<meta http-equiv="refresh" content="{{ refresh_page_sec }}" />
|
||||||
</noscript>
|
</noscript>
|
||||||
@ -72,7 +72,7 @@
|
|||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body class="{%block body_class %}{%endblock%}"
|
<body class="{%block body_class %}{%endblock%}"
|
||||||
{% if refresh_page_sec %}
|
{% if refresh_page_sec is not None %}
|
||||||
data-refresh-page-sec="{{ refresh_page_sec }}"
|
data-refresh-page-sec="{{ refresh_page_sec }}"
|
||||||
{% endif %}>
|
{% endif %}>
|
||||||
<div id="wrapper">
|
<div id="wrapper">
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user