home page fixes and lint compliance

master
ansuz 3 years ago
parent 83f721341f
commit 418201ba3f

@ -114,12 +114,12 @@ define([
return h('a', attrs, text); return h('a', attrs, text);
}; };
var fastLink = k => pageLink(Pages.customURLs[k], k);
// XXX DB: this may be wrong, pasted over form pages.js // XXX DB: this may be wrong, pasted over form pages.js
var imprintUrl = AppConfig.imprint && (typeof(AppConfig.imprint) === "boolean" ? var imprintLink = fastLink('imprint');
'/imprint.html' : AppConfig.imprint); var privacyLink = fastLink('privacy');
imprintLink = AppConfig.imprint ? pageLink(imprintUrl, 'imprint') : undefined; var termsLink = fastLink('terms');
privacyLink = pageLink(AppConfig.privacy, 'privacy');
termsLink = pageLink(AppConfig.terms, 'terms');
var notice; var notice;
/* Admins can specify a notice to display in application_config.js via the `homeNotice` attribute. /* Admins can specify a notice to display in application_config.js via the `homeNotice` attribute.

@ -206,7 +206,7 @@ body.html {
} }
.cp-footer-language{ .cp-footer-language {
margin-right: 10px; margin-right: 10px;
i { i {
font-size: 1.3em; font-size: 1.3em;
@ -218,7 +218,7 @@ body.html {
color: @cryptpad_text_col; color: @cryptpad_text_col;
border: 0px; border: 0px;
border-radius: @infopages-radius; border-radius: @infopages-radius;
padding: 0.5em 0.7em; padding: 0.5em 0.7em;
} }
} }
.cp-footer-version { .cp-footer-version {

@ -13,4 +13,5 @@
// Rounded corners // Rounded corners
@variables_radius: 5px; @variables_radius: 5px;
@variables_radius_L: 10px; @variables_radius_L: 10px;

Loading…
Cancel
Save