mirror of
https://github.com/chatmail/relay.git
synced 2026-05-21 13:28:05 +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()
|
reporoot = path.joinpath("../../../").resolve()
|
||||||
inipath = reporoot.joinpath("chatmail.ini")
|
inipath = reporoot.joinpath("chatmail.ini")
|
||||||
config = get_ini_settings(chatmail_domain, inipath)
|
config = get_ini_settings(chatmail_domain, inipath)
|
||||||
|
config["webdev"] = True
|
||||||
www_path = reporoot.joinpath("www")
|
www_path = reporoot.joinpath("www")
|
||||||
src_path = www_path.joinpath("src")
|
src_path = www_path.joinpath("src")
|
||||||
stats = None
|
stats = None
|
||||||
|
|||||||
@@ -2,6 +2,9 @@
|
|||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
|
{% if config.webdev %}
|
||||||
|
<meta http-equiv="refresh" content="3">
|
||||||
|
{% endif %}
|
||||||
<title>{{ config.mail_domain }} {{ pagename }}</title>
|
<title>{{ config.mail_domain }} {{ pagename }}</title>
|
||||||
<link rel="stylesheet" href="./water.css">
|
<link rel="stylesheet" href="./water.css">
|
||||||
</head>
|
</head>
|
||||||
|
|||||||
Reference in New Issue
Block a user