Adding session timeout settings, branding.
This commit is contained in:
parent
7885ead123
commit
d5e64e2dc0
@ -4,6 +4,7 @@
|
||||
an open-source SDR receiver software with a web UI.
|
||||
Copyright (c) 2013-2015 by Andras Retzler <randras@sdr.hu>
|
||||
Copyright (c) 2019-2021 by Jakob Ketterl <dd5jfk@darc.de>
|
||||
Copyright (c) 2022-2023 by Marat Fayzullin <luarvique@gmail.com>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
|
@ -12,6 +12,16 @@
|
||||
<div class="button" data-toggle-panel="openwebrx-panel-receiver"><svg viewBox="0 0 80 80"><use xlink:href="${document_root}static/gfx/svg-defs.svg#panel-receiver"></use></svg><br/>Receiver</div>
|
||||
<a class="button" href="${document_root}map" target="openwebrx-map"><svg viewBox="0 0 80 80"><use xlink:href="${document_root}static/gfx/svg-defs.svg#panel-map"></use></svg><br/>Map</a>
|
||||
<a class="button" href="${document_root}settings" target="openwebrx-settings"><svg viewBox="0 0 80 80"><use xlink:href="${document_root}static/gfx/svg-defs.svg#panel-settings"></use></svg><br/>Settings</a>
|
||||
|
||||
<!-- session timeout and use policy page display -->
|
||||
<p id="pstt"></p>
|
||||
<script>
|
||||
var path = window.location.pathname;
|
||||
var page = path.split("/").pop();
|
||||
document.getElementById("pstt").innerHTML =
|
||||
(page==="") && (${session_timeout}>0)?
|
||||
"<meta http-equiv=\"refresh\" content=\"${session_timeout}; url=${usage_policy_url}\">" : "";
|
||||
</script>
|
||||
</section>
|
||||
</div>
|
||||
<div class="openwebrx-description-container">
|
||||
|
@ -5,6 +5,7 @@
|
||||
an open-source SDR receiver software with a web UI.
|
||||
Copyright (c) 2013-2015 by Andras Retzler <randras@sdr.hu>
|
||||
Copyright (c) 2019-2021 by Jakob Ketterl <dd5jfk@darc.de>
|
||||
Copyright (c) 2022-2023 by Marat Fayzullin <luarvique@gmail.com>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
@ -22,7 +23,7 @@
|
||||
-->
|
||||
<html>
|
||||
<head>
|
||||
<title>OpenWebRX | Open Source SDR Web App for Everyone!</title>
|
||||
<title>OpenWebRX+ | Open Source SDR Web App for Everyone!</title>
|
||||
<link rel="shortcut icon" type="image/x-icon" href="static/favicon.ico" sizes="16x16 32x32" />
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="static/gfx/favicon32.png" />
|
||||
<link rel="icon" type="image/png" sizes="44x44" href="static/gfx/favicon44.png" />
|
||||
@ -146,7 +147,7 @@
|
||||
<div class="nano-content">
|
||||
<div id="openwebrx-client-log-title">OpenWebRX client log</div>
|
||||
<div>
|
||||
Author contact: <a href="http://www.justjakob.de/" target="_blank">Jakob Ketterl, DD5JFK</a> |
|
||||
Author contact: <a href="http://fms.komkon.org/" target="_blank">Marat Fayzullin</a> |
|
||||
<a href="https://www.openwebrx.de" target="_blank">OpenWebRX homepage</a>
|
||||
</div>
|
||||
<div>Support and information: <a href="https://groups.io/g/openwebrx" target="_blank">Groups.io Mailinglist</a></div>
|
||||
|
@ -4,6 +4,7 @@
|
||||
an open-source SDR receiver software with a web UI.
|
||||
Copyright (c) 2013-2015 by Andras Retzler <randras@sdr.hu>
|
||||
Copyright (c) 2019-2021 by Jakob Ketterl <dd5jfk@darc.de>
|
||||
Copyright (c) 2022-2023 by Marat Fayzullin <luarvique@gmail.com>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
|
@ -176,6 +176,21 @@ class GeneralSettingsController(SettingsFormController):
|
||||
+ "is supposed to be.",
|
||||
),
|
||||
),
|
||||
Section(
|
||||
"Session Timeout",
|
||||
TextInput(
|
||||
"usage_policy_url",
|
||||
"Usage policy URL",
|
||||
infotext="Specifies web page describing receiver usage policy "
|
||||
+ "and shown when the user session times out.",
|
||||
),
|
||||
NumberInput(
|
||||
"session_timeout",
|
||||
"Session Timeout",
|
||||
infotext="User session timeout in seconds (0 to disable timeout).",
|
||||
append="secs",
|
||||
),
|
||||
),
|
||||
]
|
||||
|
||||
def remove_existing_image(self, image_id):
|
||||
|
@ -18,6 +18,8 @@ class ReceiverDetails(PropertyFilter):
|
||||
"receiver_gps",
|
||||
"photo_title",
|
||||
"photo_desc",
|
||||
"usage_policy_url",
|
||||
"session_timeout",
|
||||
)
|
||||
)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user