mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
40 lines
1.5 KiB
HTML
40 lines
1.5 KiB
HTML
{{define "footer"}}
|
|
<div class="footer-pane col-xs-12">
|
|
<div class="col-xs-12">
|
|
<span class="pull-right footer-site-name">{{ .ClientCfg.SiteName }}</span>
|
|
</div>
|
|
<div class="col-xs-12">
|
|
<span class="pull-right footer-link copyright">© 2015 Mattermost, Inc.</span>
|
|
<a id="help_link" class="pull-right footer-link" href="#">{{ .ClientCfg.FooterHelp }}</a>
|
|
<a id="terms_link" class="pull-right footer-link" href="#">{{ .ClientCfg.FooterTerms }}</a>
|
|
<a id="privacy_link" class="pull-right footer-link" href="#">{{ .ClientCfg.FooterPrivacy }}</a>
|
|
<a id="about_link" class="pull-right footer-link" href="#">{{ .ClientCfg.FooterAbout }}</a>
|
|
</div>
|
|
</div>
|
|
<script>
|
|
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}}
|