Improve the login UI (css and translations)

This commit is contained in:
yflory
2017-01-17 16:21:12 +01:00
parent e006ed7076
commit 73d424b506
9 changed files with 105 additions and 35 deletions

View File

@@ -389,13 +389,18 @@ define([
options.push({
tag: 'a',
attributes: {'class': 'logout'},
content: Messages.user_logout
content: Messages.logoutButton
});
} else {
options.push({
tag: 'a',
attributes: {'class': 'login'},
content: Messages.user_login
content: Messages.login_login
});
options.push({
tag: 'a',
attributes: {'class': 'register'},
content: Messages.login_register
});
}
var $icon = $('<span>', {'class': 'fa fa-user'});
@@ -418,6 +423,9 @@ define([
$userAdmin.find('a.login').click(function (e) {
window.open('/user');
});
$userAdmin.find('a.register').click(function (e) {
window.open('/user#register');
});
if (config.userName && config.userName.setName && config.userName.lastName) {
$userAdmin.find('a.' + USERBUTTON_CLS).click(function (e) {