From f0818b7ee673604d9ea182055d47dcc1591738fc Mon Sep 17 00:00:00 2001 From: Timm Fitschen <t.fitschen@indiscale.com> Date: Mon, 1 Nov 2021 14:44:20 +0100 Subject: [PATCH] Make footer parts configurable --- build.properties.d/00_default.properties | 20 ++++++++++++++++++-- src/core/xsl/footer.xsl | 10 +++++----- 2 files changed, 23 insertions(+), 7 deletions(-) diff --git a/build.properties.d/00_default.properties b/build.properties.d/00_default.properties index 65a2b9bc..4ce481e6 100644 --- a/build.properties.d/00_default.properties +++ b/build.properties.d/00_default.properties @@ -77,7 +77,7 @@ BUILD_FAVICON=pics/caosdb_logo_42.png ############################################################################## # Link to the data policy statement document. -BUILD_FOOTER_DATA_POLICY_HREF=https://missing-domain.com/missing-page +BUILD_FOOTER_DATA_POLICY_HREF="Please configure me!" # Custom footer elements can be placed here (will be placed inside a <div> # element). @@ -90,7 +90,23 @@ BUILD_FOOTER_CUSTOM_ELEMENT_ONE= # ${BUILD_NUMBER}. BUILD_FOOTER_CUSTOM_ELEMENT_TWO= # BUILD_FOOTER_CUSTOM_ELEMENT_TWO=$(cat footer_element_2.html) -BUILD_CUSTOM_IMPRINT='<p> Put an imprint note here </p>' + +# Contact mail or link to contact information for the responsible administrator of this caosdb server instance. +BUILD_FOOTER_CONTACT_HREF="Please configure me!" +#BUILD_FOOTER_CONTACT_HREF=mailto:info@indiscale.com + +# Link to imprint for this caosdb server instance. +BUILD_FOOTER_IMPRINT_HREF="Please configure me!" +#BUILD_FOOTER_IMPRINT_HREF=https://www.indiscale.com/imprint/ + +# Link to docs (should rarely be changed (maybe for additional docs)) +BUILD_FOOTER_DOCS_HREF="https://docs.indiscale.com" + +# Link to sources (should almost never be changed (maybe for additional sources)) +BUILD_FOOTER_SOURCES_HREF="https://gitlab.com/caosdb" + +# Link to license (should almost never be changed (maybe for other languages)) +BUILD_FOOTER_LICENCE_HREF="https://www.gnu.org/licenses/agpl-3.0.en.html" ############################################################################## # ext_trigger_crawler_form properties diff --git a/src/core/xsl/footer.xsl b/src/core/xsl/footer.xsl index 39d9cf3f..ce491222 100644 --- a/src/core/xsl/footer.xsl +++ b/src/core/xsl/footer.xsl @@ -35,17 +35,17 @@ </div> </div> <div class="container d-flex flex-md-row flex-column justify-content-center"> - <a href="mailto:info@indiscale.com">Contact</a> + <a href="${BUILD_FOOTER_CONTACT_HREF}">Contact</a> <span class="caosdb-bulletsep d-none d-md-inline">•</span> - <a href="https://www.indiscale.com/imprint/">Imprint/Impressum</a> + <a href="${BUILD_FOOTER_IMPRINT_HREF}">Imprint/Impressum</a> <span class="caosdb-bulletsep d-none d-md-inline">•</span> <a href="${BUILD_FOOTER_DATA_POLICY_HREF}">Data Policy</a> <span class="caosdb-bulletsep d-none d-md-inline">•</span> - <a href="https://www.gnu.org/licenses/agpl-3.0.en.html" target="_blank">License (AGPL-v3)</a> + <a href="${BUILD_FOOTER_LICENCE_HREF}" target="_blank">License (AGPL-v3)</a> <span class="caosdb-bulletsep d-none d-md-inline">•</span> - <a href="https://gitlab.com/caosdb" target="_blank">Sources</a> + <a href="${BUILD_FOOTER_SOURCES_HREF}" target="_blank">Sources</a> <span class="caosdb-bulletsep d-none d-md-inline">•</span> - <a href="https://docs.indiscale.com" target="_blank">Documentation</a> + <a href="${BUILD_FOOTER_DOCS_HREF}" target="_blank">Documentation</a> </div> </xsl:template> </xsl:stylesheet> -- GitLab