summaryrefslogtreecommitdiffstats
path: root/web/templates/footer.html
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2015-12-12 15:47:36 -0500
committerJoram Wilander <jwawilander@gmail.com>2015-12-12 15:47:36 -0500
commitb9a4966e7d287ddaa16ccd7d553e2ada13edc289 (patch)
tree5155b0e1e0e049507e25fdd545b77a013124c57e /web/templates/footer.html
parentce03fbc6d8176b6d5a903312241a948f59785a04 (diff)
parent87d7db3438d46dcd7d84a65739287e25bbb3644f (diff)
downloadchat-b9a4966e7d287ddaa16ccd7d553e2ada13edc289.tar.gz
chat-b9a4966e7d287ddaa16ccd7d553e2ada13edc289.tar.bz2
chat-b9a4966e7d287ddaa16ccd7d553e2ada13edc289.zip
Merge pull request #1588 from rgarmsen2295/plt-881
PLT-881 Adds Legal and Support Settings to the System Console
Diffstat (limited to 'web/templates/footer.html')
-rw-r--r--web/templates/footer.html27
1 files changed, 23 insertions, 4 deletions
diff --git a/web/templates/footer.html b/web/templates/footer.html
index dc1a7c9d0..60dd5a40e 100644
--- a/web/templates/footer.html
+++ b/web/templates/footer.html
@@ -12,9 +12,28 @@
</div>
</div>
<script>
- document.getElementById("help_link").setAttribute("href", '/static/help/help.html');
- document.getElementById("terms_link").setAttribute("href", '/static/help/terms.html');
- document.getElementById("privacy_link").setAttribute("href", '/static/help/privacy.html');
- document.getElementById("about_link").setAttribute("href", '/static/help/about.html');
+ if (window.mm_config.HelpLink) {
+ document.getElementById("help_link").setAttribute("href", window.mm_config.HelpLink);
+ } else {
+ $("#help_link").remove();
+ }
+
+ if (window.mm_config.TermsOfServiceLink) {
+ document.getElementById("terms_link").setAttribute("href", window.mm_config.TermsOfServiceLink);
+ } else {
+ $("#terms_link").remove();
+ }
+
+ if (window.mm_config.PrivacyPolicyLink) {
+ document.getElementById("privacy_link").setAttribute("href", window.mm_config.PrivacyPolicyLink);
+ } else {
+ $("#privacy_link").remove();
+ }
+
+ if (window.mm_config.AboutLink) {
+ document.getElementById("about_link").setAttribute("href", window.mm_config.AboutLink);
+ } else {
+ $("#about_link").remove();
+ }
</script>
{{end}}