Add footer banner message support

This commit is contained in:
Laura B
2023-05-29 14:58:40 +02:00
parent 381a0e326d
commit e69eca6e71
3 changed files with 17 additions and 0 deletions

View File

@@ -106,6 +106,8 @@ class Config
property cache_annotations : Bool = false
# Optional banner to be displayed along top of page for announcements, etc.
property banner : String? = nil
# Optional footer banner to be displayed along the bottom of the page. Can be used for maintainer contact info, etc.
property footer : String? = nil
# Enables 'Strict-Transport-Security'. Ensure that `domain` and all subdomains are served securely
property hsts : Bool? = true
# Disable proxying server-wide: options: 'dash', 'livestreams', 'downloads', 'local'

View File

@@ -153,6 +153,11 @@
<span><%= translate(locale, "Current version: ") %> <%= CURRENT_VERSION %>-<%= CURRENT_COMMIT %> @ <%= CURRENT_BRANCH %></span>
</div>
</div>
<% if CONFIG.footer %>
<div>
<h4 style="text-align: center;"><%= CONFIG.footer %></h3>
</div>
<% end %>
</footer>
</div>