mirror of
https://github.com/chatmail/relay.git
synced 2026-05-10 16:04:37 +00:00
in webdev mode make page auto-refresh every 3 seconds
This commit is contained in:
@@ -71,6 +71,7 @@ def main():
|
||||
reporoot = path.joinpath("../../../").resolve()
|
||||
inipath = reporoot.joinpath("chatmail.ini")
|
||||
config = get_ini_settings(chatmail_domain, inipath)
|
||||
config["webdev"] = True
|
||||
www_path = reporoot.joinpath("www")
|
||||
src_path = www_path.joinpath("src")
|
||||
stats = None
|
||||
|
||||
@@ -2,6 +2,9 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
{% if config.webdev %}
|
||||
<meta http-equiv="refresh" content="3">
|
||||
{% endif %}
|
||||
<title>{{ config.mail_domain }} {{ pagename }}</title>
|
||||
<link rel="stylesheet" href="./water.css">
|
||||
</head>
|
||||
|
||||
Reference in New Issue
Block a user