mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +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>
|
||||
|
||||
{% 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">
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user