diff options
author | Asaad Mahmood <asaad@spinpunch.com> | 2015-12-14 19:04:08 +0500 |
---|---|---|
committer | Asaad Mahmood <asaad@spinpunch.com> | 2015-12-14 19:04:08 +0500 |
commit | 3d8d152aa0d84d1150ee0a174641c0a4697307f1 (patch) | |
tree | bdcdc81111fd7c8f2b3dd912402006b2d66b50cf /web/templates/footer.html | |
parent | def79636f8e41204c32bf4b628b254aec5377ef5 (diff) | |
parent | b9a4966e7d287ddaa16ccd7d553e2ada13edc289 (diff) | |
download | chat-3d8d152aa0d84d1150ee0a174641c0a4697307f1.tar.gz chat-3d8d152aa0d84d1150ee0a174641c0a4697307f1.tar.bz2 chat-3d8d152aa0d84d1150ee0a174641c0a4697307f1.zip |
Merge branch 'master' of https://github.com/mattermost/platform into code-themes
Diffstat (limited to 'web/templates/footer.html')
-rw-r--r-- | web/templates/footer.html | 27 |
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}} |