|
|
|
@ -79,6 +79,69 @@ define([
|
|
|
|
|
];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
var footerCol = function (title, L, literal) {
|
|
|
|
|
return h('div.col', [
|
|
|
|
|
h('ul.list-unstyled', [
|
|
|
|
|
h('li.title', {
|
|
|
|
|
'data-localization': title,
|
|
|
|
|
}, title? Msg[title]: literal )
|
|
|
|
|
].concat(L.map(function (l) {
|
|
|
|
|
return h('li', [ l ]);
|
|
|
|
|
}))
|
|
|
|
|
)
|
|
|
|
|
]);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
var footLink = function (ref, loc, text) {
|
|
|
|
|
var attrs = {
|
|
|
|
|
href: ref,
|
|
|
|
|
};
|
|
|
|
|
if (!/^\//.test(ref)) {
|
|
|
|
|
attrs.target = '_blank';
|
|
|
|
|
attrs.rel = 'noopener noreferrer';
|
|
|
|
|
}
|
|
|
|
|
if (loc) {
|
|
|
|
|
attrs['data-localization'] = loc;
|
|
|
|
|
text = Msg[loc];
|
|
|
|
|
}
|
|
|
|
|
return h('a', attrs, text);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
var infopageFooter = function () {
|
|
|
|
|
return h('footer', [
|
|
|
|
|
h('div.container', [
|
|
|
|
|
h('div.row', [
|
|
|
|
|
footerCol(null, [
|
|
|
|
|
footLink('/about.html', 'about'),
|
|
|
|
|
footLink('/terms.html', 'terms'),
|
|
|
|
|
footLink('/privacy.html', 'privacy'),
|
|
|
|
|
], 'CryptPad'),
|
|
|
|
|
footerCol('footer_applications', [
|
|
|
|
|
footLink('/drive/', 'main_drive'),
|
|
|
|
|
footLink('/pad/', 'main_richText'),
|
|
|
|
|
footLink('/code/', 'main_code'),
|
|
|
|
|
footLink('/slide/', 'main_slide'),
|
|
|
|
|
footLink('/poll/', 'main_poll'),
|
|
|
|
|
footLink('/whiteboard/', null, Msg.type.whiteboard)
|
|
|
|
|
]),
|
|
|
|
|
footerCol('footer_aboutUs', [
|
|
|
|
|
footLink('https://blog.cryptpad.fr', 'blog'),
|
|
|
|
|
footLink('https://labs.xwiki.com', null, 'XWiki Labs'),
|
|
|
|
|
footLink('http://www.xwiki.com', null, 'XWiki SAS'),
|
|
|
|
|
footLink('https://www.open-paas.org', null, 'OpenPaaS')
|
|
|
|
|
]),
|
|
|
|
|
footerCol('footer_contact', [
|
|
|
|
|
footLink('https://riot.im/app/#/room/#cryptpad:matrix.org', null, 'Chat'),
|
|
|
|
|
footLink('https://twitter.com/cryptpad', null, 'Twitter'),
|
|
|
|
|
footLink('https://github.com/xwiki-labs/cryptpad', null, 'GitHub'),
|
|
|
|
|
footLink('/contact.html', null, 'Email')
|
|
|
|
|
])
|
|
|
|
|
])
|
|
|
|
|
]),
|
|
|
|
|
h('div.cp-version-footer', "CryptPad v1.13.0 (Naiad)")
|
|
|
|
|
]);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
Pages['/about.html'] = function () {
|
|
|
|
|
return h('div#main_other', [
|
|
|
|
|
h('center', [
|
|
|
|
@ -129,9 +192,13 @@ define([
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
Pages['/contact.html'] = function () {
|
|
|
|
|
return h('div#main_other', [
|
|
|
|
|
return h('div#cp-main.cp-page-contact', [
|
|
|
|
|
infopageTopbar(),
|
|
|
|
|
h('div.container.cp-container', [
|
|
|
|
|
h('center', h('h1', Msg.contact)),
|
|
|
|
|
setHTML(h('p'), Msg.main_about_p2)
|
|
|
|
|
]),
|
|
|
|
|
infopageFooter(),
|
|
|
|
|
]);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|