actually do the changes intended in previous commit

pull/1/head
Pierre Bondoerffer 8 years ago
parent 01b2883771
commit ad4aca4e5f
No known key found for this signature in database
GPG Key ID: C0C7C0C5063F2236

@ -119,6 +119,7 @@ module.exports = {
'terms', 'terms',
'about', 'about',
'contact', 'contact',
'what-is-cryptpad'
], ],
/* Limits, Donations, Subscriptions and Contact /* Limits, Donations, Subscriptions and Contact

@ -143,18 +143,24 @@ define([
}; };
Pages['/about.html'] = function () { Pages['/about.html'] = function () {
return h('div#main_other', [ return h('div#cp-main.cp-page-privacy', [
infopageTopbar(),
h('div.container.cp-container', [
h('center', [ h('center', [
h('h1', Msg.about) h('h1', Msg.about)
]), ]),
setHTML(h('p'), Msg.main_p2), setHTML(h('p'), Msg.main_p2),
h('h2', Msg.main_howitworks), h('h2', Msg.main_howitworks),
setHTML(h('p'), Msg.main_howitworks_p1) setHTML(h('p'), Msg.main_howitworks_p1)
]),
infopageFooter()
].concat(indexContent())); ].concat(indexContent()));
}; };
Pages['/privacy.html'] = function () { Pages['/privacy.html'] = function () {
return h('div#main_other', [ return h('div#cp-main.cp-page-privacy', [
infopageTopbar(),
h('div.container.cp-container', [
h('center', h('h1', Msg.policy_title)), h('center', h('h1', Msg.policy_title)),
h('h2', Msg.policy_whatweknow), h('h2', Msg.policy_whatweknow),
h('p', Msg.policywhatweknow_p1), h('p', Msg.policywhatweknow_p1),
@ -175,19 +181,23 @@ define([
h('h2', Msg.policy_choices), h('h2', Msg.policy_choices),
h('p', Msg.policy_choices_open), h('p', Msg.policy_choices_open),
setHTML(h('p'), Msg.policy_choices_vpn), setHTML(h('p'), Msg.policy_choices_vpn),
]),
h('br') infopageFooter()
]); ]);
}; };
Pages['/terms.html'] = function () { Pages['/terms.html'] = function () {
return h('div#main_other', [ return h('div#cp-main.cp-page-terms', [
infopageTopbar(),
h('div.container.cp-container', [
h('center', h('h1', Msg.tos_title)), h('center', h('h1', Msg.tos_title)),
h('p', Msg.tos_legal), h('p', Msg.tos_legal),
h('p', Msg.tos_availability), h('p', Msg.tos_availability),
h('p', Msg.tos_e2ee), h('p', Msg.tos_e2ee),
h('p', Msg.tos_logs), h('p', Msg.tos_logs),
h('p', Msg.tos_3rdparties), h('p', Msg.tos_3rdparties),
]),
infopageFooter()
]); ]);
}; };
@ -202,6 +212,18 @@ define([
]); ]);
}; };
Pages['/what-is-cryptpad.html'] = function () {
return h('div#cp-main.cp-page-what-is-cryptpad', [
infopageTopbar(),
h('div.container.cp-container', [
h('center', h('h1', 'What is Cryptpad')), //TODO: add translation
setHTML(h('p'), Msg.main_about_p2)
]),
infopageFooter(),
]);
};
var userForm = function () { var userForm = function () {
return h('div#userForm.form-group.hidden', [ return h('div#userForm.form-group.hidden', [
h('input#name.form-control', { h('input#name.form-control', {

Loading…
Cancel
Save