Add translations, remove useless functions
This commit is contained in:
@@ -223,47 +223,6 @@ define([
|
|||||||
]);
|
]);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
var userForm = function () {
|
|
||||||
return h('div#userForm.form-group.hidden', [
|
|
||||||
h('input#name.form-control', {
|
|
||||||
name: 'name',
|
|
||||||
type: 'text',
|
|
||||||
placeholder: Msg.login_username
|
|
||||||
}),
|
|
||||||
h('input#password.form-control', {
|
|
||||||
name: 'password',
|
|
||||||
type: 'password',
|
|
||||||
placeholder: Msg.login_password
|
|
||||||
}),
|
|
||||||
h('div', {
|
|
||||||
style: { display: 'none' }
|
|
||||||
}, [
|
|
||||||
h('span.remember.form-check', [
|
|
||||||
h('label.form-check-label', {
|
|
||||||
'for': 'rememberme',
|
|
||||||
placeholder: Msg.login_remember,
|
|
||||||
}, [
|
|
||||||
h('input#rememberme.form-check-input', {
|
|
||||||
type: 'checkbox',
|
|
||||||
checked: true
|
|
||||||
})
|
|
||||||
])
|
|
||||||
])
|
|
||||||
]),
|
|
||||||
h('button.btn.btn-secondary.login.half.first', Msg.login_login),
|
|
||||||
h('button.btn.btn-success.register.half', Msg.login_register),
|
|
||||||
h('p.separator', Msg.login_orNoLogin),
|
|
||||||
h('p#buttons.buttons'),
|
|
||||||
h('p.driveLink', [
|
|
||||||
h('a.gotodrive', {
|
|
||||||
href: '/drive/'
|
|
||||||
}, Msg.login_nologin)
|
|
||||||
])
|
|
||||||
]);
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
var appButton = function (alt, h2, img, p, url, btn, id) {
|
var appButton = function (alt, h2, img, p, url, btn, id) {
|
||||||
return h('div.app', [
|
return h('div.app', [
|
||||||
h('center', [
|
h('center', [
|
||||||
@@ -284,50 +243,6 @@ define([
|
|||||||
]);
|
]);
|
||||||
};
|
};
|
||||||
|
|
||||||
var tryIt = function () {
|
|
||||||
return [
|
|
||||||
h('div.class.category#tryit', [
|
|
||||||
h('center', [
|
|
||||||
h('h1', Msg.tryIt)
|
|
||||||
])
|
|
||||||
]),
|
|
||||||
h('div.page', [
|
|
||||||
h('div.app-container', [
|
|
||||||
h('div.app-row', [
|
|
||||||
appButton("Rich Text application",
|
|
||||||
Msg.main_richText,
|
|
||||||
'/customize/images/pad.png?' + urlArgs,
|
|
||||||
Msg.main_richText_p,
|
|
||||||
'/pad/',
|
|
||||||
Msg.button_newpad,
|
|
||||||
'create-pad'),
|
|
||||||
appButton('Code application',
|
|
||||||
Msg.main_code,
|
|
||||||
'/customize/images/code.png?' + urlArgs,
|
|
||||||
Msg.main_code_p,
|
|
||||||
'/code/',
|
|
||||||
Msg.button_newcode,
|
|
||||||
'create-code'),
|
|
||||||
appButton('Slide application',
|
|
||||||
Msg.main_slide,
|
|
||||||
'/customize/images/slide.png?' + urlArgs,
|
|
||||||
Msg.main_slide_p,
|
|
||||||
'/slide/',
|
|
||||||
Msg.button_newslide,
|
|
||||||
'create-slide'),
|
|
||||||
appButton('Poll application',
|
|
||||||
Msg.main_poll,
|
|
||||||
'/customize/images/poll.png?' + urlArgs,
|
|
||||||
Msg.main_poll_p,
|
|
||||||
'/poll/',
|
|
||||||
Msg.button_newpoll,
|
|
||||||
'create-poll')
|
|
||||||
])
|
|
||||||
])
|
|
||||||
])
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
var infopageTopbar = function () {
|
var infopageTopbar = function () {
|
||||||
return h('div.cp-topbar',
|
return h('div.cp-topbar',
|
||||||
h('div.navbar.navbar-toggleable-sm.navbar-light.navbar-inverse',
|
h('div.navbar.navbar-toggleable-sm.navbar-light.navbar-inverse',
|
||||||
@@ -337,23 +252,23 @@ define([
|
|||||||
h('div.collapse.navbar-collapse#menuCollapse', [
|
h('div.collapse.navbar-collapse#menuCollapse', [
|
||||||
h('ul.navbar-nav', [
|
h('ul.navbar-nav', [
|
||||||
h('li.nav-item', [
|
h('li.nav-item', [
|
||||||
h('a.nav-link', { href: '/what-is-cryptpad.html'}, 'What is CryptPad'),
|
h('a.nav-link', { href: '/what-is-cryptpad.html'}, Msg.topbar_whatIsCryptpad),
|
||||||
]),
|
]),
|
||||||
h('li.nav-item', [
|
h('li.nav-item', [
|
||||||
h('a.nav-link', { href: 'https://blog.cryptpad.fr/'}, 'Blog'),
|
h('a.nav-link', { href: 'https://blog.cryptpad.fr/'}, Msg.Blog),
|
||||||
]),
|
]),
|
||||||
h('li.nav-item', [
|
h('li.nav-item', [
|
||||||
h('a.nav-link', { href: '/contact.html'}, 'Contact'),
|
h('a.nav-link', { href: '/contact.html'}, Msg.contact),
|
||||||
]),
|
]),
|
||||||
h('li.nav-item', [
|
h('li.nav-item', [
|
||||||
h('a.nav-link', { href: '/about.html'}, 'About'),
|
h('a.nav-link', { href: '/about.html'}, Msg.about),
|
||||||
]),
|
]),
|
||||||
]),
|
]),
|
||||||
]),
|
]),
|
||||||
),
|
),
|
||||||
h('div.cp-right',
|
h('div.cp-right',
|
||||||
h('a.cp-register-btn', { href: '/register'}, 'Register'),
|
h('a.cp-register-btn', { href: '/register'}, Msg.login_register),
|
||||||
h('a.cp-login-btn', { href: '/login'}, 'Log in')
|
h('a.cp-login-btn', { href: '/login'}, Msg.login_login)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -370,7 +285,6 @@ define([
|
|||||||
h('h1', 'CryptPad'),
|
h('h1', 'CryptPad'),
|
||||||
h('p', Msg.main_catch_phrase)
|
h('p', Msg.main_catch_phrase)
|
||||||
]),
|
]),
|
||||||
/*userForm(),*/
|
|
||||||
h('div.col-12.col-sm-6', [
|
h('div.col-12.col-sm-6', [
|
||||||
[
|
[
|
||||||
[ 'pad', '/pad/', Msg.main_richTextPad, 'fa-file-word-o' ],
|
[ 'pad', '/pad/', Msg.main_richTextPad, 'fa-file-word-o' ],
|
||||||
@@ -413,10 +327,8 @@ define([
|
|||||||
])
|
])
|
||||||
])
|
])
|
||||||
]),
|
]),
|
||||||
//h('footer.cp-more', "More")
|
|
||||||
])
|
])
|
||||||
];
|
];
|
||||||
//.concat(tryIt());
|
|
||||||
};
|
};
|
||||||
|
|
||||||
var loadingScreen = function () {
|
var loadingScreen = function () {
|
||||||
@@ -513,7 +425,6 @@ define([
|
|||||||
}),
|
}),
|
||||||
h('div.extra', [
|
h('div.extra', [
|
||||||
h('button.btn.btn-primary.login.first', Msg.login_login),
|
h('button.btn.btn-primary.login.first', Msg.login_login),
|
||||||
h('span', Msg.login_notRegistered),
|
|
||||||
h('button#register.btn.btn-success.register', Msg.login_register)
|
h('button#register.btn.btn-success.register', Msg.login_register)
|
||||||
])
|
])
|
||||||
])
|
])
|
||||||
|
|||||||
@@ -542,5 +542,8 @@ define(function () {
|
|||||||
out.settings_logoutEverywhereButton = "Cerar sesión";
|
out.settings_logoutEverywhereButton = "Cerar sesión";
|
||||||
out.upload_title = "Subir archivo";
|
out.upload_title = "Subir archivo";
|
||||||
|
|
||||||
|
// 1.13.0 - Naiad
|
||||||
|
out.topbar_whatIsCryptpad = "Qué es CryptPad";
|
||||||
|
|
||||||
return out;
|
return out;
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -508,6 +508,8 @@ define(function () {
|
|||||||
out.terms = "Conditions";
|
out.terms = "Conditions";
|
||||||
out.blog = "Blog";
|
out.blog = "Blog";
|
||||||
|
|
||||||
|
out.topbar_whatIsCryptpad = "Qu'est-ce que CryptPad";
|
||||||
|
|
||||||
// privacy.html
|
// privacy.html
|
||||||
|
|
||||||
out.policy_title = 'Politique de confidentialité de CryptPad';
|
out.policy_title = 'Politique de confidentialité de CryptPad';
|
||||||
|
|||||||
@@ -526,6 +526,8 @@ define(function () {
|
|||||||
out.terms = "ToS";
|
out.terms = "ToS";
|
||||||
out.blog = "Blog";
|
out.blog = "Blog";
|
||||||
|
|
||||||
|
out.topbar_whatIsCryptpad = "What is CryptPad";
|
||||||
|
|
||||||
// privacy.html
|
// privacy.html
|
||||||
|
|
||||||
out.policy_title = 'CryptPad Privacy Policy';
|
out.policy_title = 'CryptPad Privacy Policy';
|
||||||
|
|||||||
Reference in New Issue
Block a user