mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-06-03 10:50:20 +00:00
first_setup: Use template variable to refresh page
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: Veiko Aasa <veiko17@disroot.org>
This commit is contained in:
parent
0e09d08d17
commit
084921ac0d
@ -111,5 +111,8 @@ class FirstSetupMiddleware(MiddlewareMixin):
|
||||
if not setup.is_first_setup_running:
|
||||
return
|
||||
|
||||
context = {'is_first_setup_running': setup.is_first_setup_running}
|
||||
context = {
|
||||
'is_first_setup_running': setup.is_first_setup_running,
|
||||
'refresh_page_sec': 3
|
||||
}
|
||||
return render(request, 'first_setup.html', context)
|
||||
|
||||
@ -13,7 +13,6 @@
|
||||
display: none;
|
||||
}
|
||||
</style>
|
||||
<meta http-equiv="refresh" content="3" />
|
||||
{% endblock %}
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user