Merge pull request #1588 from rgarmsen2295/plt-881

PLT-881 Adds Legal and Support Settings to the System Console
Этот коммит содержится в:
Joram Wilander
2015-12-12 15:47:36 -05:00
родитель ce03fbc6d8 87d7db3438
Коммит b9a4966e7d
13 изменённых файлов: 403 добавлений и 46 удалений

Просмотреть файл

@@ -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}}