mirror of
https://git.ianrenton.com/ian/spothole.git
synced 2026-02-04 01:04:33 +00:00
Allow server owner to inject HTML into the spots page for a "support/donate" type link. #100
This commit is contained in:
@@ -189,5 +189,14 @@ web-ui-options:
|
|||||||
max-spot-age-default: 30
|
max-spot-age-default: 30
|
||||||
alert-count: [25, 50, 100, 200, 500]
|
alert-count: [25, 50, 100, 200, 500]
|
||||||
alert-count-default: 100
|
alert-count-default: 100
|
||||||
|
# Default UI colour scheme. Supported values are "light", "dark" and "auto" (i.e. use the browser/OS colour scheme).
|
||||||
|
# Users can still override this in the UI to their own preference.
|
||||||
color-scheme-default: "auto"
|
color-scheme-default: "auto"
|
||||||
band-color-scheme-default: "PSK Reporter (Adjusted)"
|
# Default band colour scheme. Supported values are the full names of any band colour scheme shown in the UI.
|
||||||
|
# Users can still override this in the UI to their own preference.
|
||||||
|
band-color-scheme-default: "PSK Reporter (Adjusted)"
|
||||||
|
# Custom HTML insert. This can be any arbitrary HTML. It will be inserted next to the start/stop buttons on the spots
|
||||||
|
# (home) page, although being arbitrary HTML you can also use a div with absolute, relative, float placement etc. This
|
||||||
|
# is designed for a "donate/support the server" type button, though you are free to do whatever you want with it.
|
||||||
|
# As the server owner you are responsible for the safe usage of this option!
|
||||||
|
support-button-html: ""
|
||||||
@@ -56,6 +56,9 @@
|
|||||||
<p>Spothole collects no data about you, and there is no way to enter personally identifying information into the site apart from by spotting and alerting through Spothole or the various services it connects to. All spots and alerts are "timed out" and deleted from the system after a set interval, which by default is one hour for spots and one week for alerts.</p>
|
<p>Spothole collects no data about you, and there is no way to enter personally identifying information into the site apart from by spotting and alerting through Spothole or the various services it connects to. All spots and alerts are "timed out" and deleted from the system after a set interval, which by default is one hour for spots and one week for alerts.</p>
|
||||||
<p>Settings you select from Spothole's menus are sent to the server, in order to provide the data with the requested filters. They are also stored in your browser's local storage, so that your preferences are remembered between sessions.</p>
|
<p>Settings you select from Spothole's menus are sent to the server, in order to provide the data with the requested filters. They are also stored in your browser's local storage, so that your preferences are remembered between sessions.</p>
|
||||||
<p>There are no trackers, no ads, and no cookies.</p>
|
<p>There are no trackers, no ads, and no cookies.</p>
|
||||||
|
{% if len(web_ui_options["support-button-html"]) > 0 %}
|
||||||
|
<p><strong>Caveat: </strong> The owner of this server has chosen to inject their own content into the "spots" page. This is designed for a "donate" or "support this server" button. The functionality of this injected content is the responsibility of the server owner, rather than the Spothole software.</p>
|
||||||
|
{% end %}
|
||||||
<p>Spothole is open source, so you can audit <a href="https://git.ianrenton.com/ian/spothole">the code</a> if you like.</p>
|
<p>Spothole is open source, so you can audit <a href="https://git.ianrenton.com/ian/spothole">the code</a> if you like.</p>
|
||||||
<h2 class="mt-4">Thanks</h2>
|
<h2 class="mt-4">Thanks</h2>
|
||||||
<p>This project would not have been possible without those volunteers who have taken it upon themselves to run DX clusters, xOTA programmes, DXpedition lists, callsign lookup databases, and other online tools on which Spothole's data is based.</p>
|
<p>This project would not have been possible without those volunteers who have taken it upon themselves to run DX clusters, xOTA programmes, DXpedition lists, callsign lookup databases, and other online tools on which Spothole's data is based.</p>
|
||||||
|
|||||||
@@ -19,6 +19,7 @@
|
|||||||
<input type="radio" class="btn-check" name="runPause" id="pauseButton" autocomplete="off">
|
<input type="radio" class="btn-check" name="runPause" id="pauseButton" autocomplete="off">
|
||||||
<label class="btn btn-outline-primary" for="pauseButton"><i class="fa-solid fa-pause"></i><span class="hideonmobile"> Pause</span></label>
|
<label class="btn btn-outline-primary" for="pauseButton"><i class="fa-solid fa-pause"></i><span class="hideonmobile"> Pause</span></label>
|
||||||
</span>
|
</span>
|
||||||
|
{% raw web_ui_options["support-button-html"] %}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-8 text-end">
|
<div class="col-8 text-end">
|
||||||
|
|||||||
Reference in New Issue
Block a user