mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-09-19 04:59:01 +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:
|
if not setup.is_first_setup_running:
|
||||||
return
|
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)
|
return render(request, 'first_setup.html', context)
|
||||||
|
|||||||
@ -13,7 +13,6 @@
|
|||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<meta http-equiv="refresh" content="3" />
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user