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:
Sunil Mohan Adapa 2022-08-12 17:42:40 -07:00 committed by James Valleroy
parent 7a36ee23f5
commit 0a9514228f
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808

View File

@ -61,7 +61,7 @@
<script type="text/javascript" src="{% static 'theme/js/main.js' %}" defer></script>
{% if refresh_page_sec %}
{% if refresh_page_sec is not None %}
<noscript>
<meta http-equiv="refresh" content="{{ refresh_page_sec }}" />
</noscript>
@ -72,7 +72,7 @@
</head>
<body class="{%block body_class %}{%endblock%}"
{% if refresh_page_sec %}
{% if refresh_page_sec is not None %}
data-refresh-page-sec="{{ refresh_page_sec }}"
{% endif %}>
<div id="wrapper">