From 7f2b7fc28713f3834a6a037664ca9a3a2edbf8fa Mon Sep 17 00:00:00 2001 From: ansuz Date: Fri, 11 Aug 2017 11:32:21 +0200 Subject: [PATCH] show Your CryptDrive, if logged in. fix typos --- customize.dist/main.js | 3 +++ customize.dist/pages.js | 11 +++++------ customize.dist/translations/messages.js | 1 + 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/customize.dist/main.js b/customize.dist/main.js index 2cf0ae61f..4049ec659 100644 --- a/customize.dist/main.js +++ b/customize.dist/main.js @@ -30,6 +30,9 @@ define([ return; } + $main.find('a[href="/drive/"] div.pad-button-text h4') + .text(Messages.main_yourCryptDrive); + var name = localStorage[Cryptpad.userNameKey] || sessionStorage[Cryptpad.userNameKey]; var $loggedInBlock = $main.find('#loggedIn'); var $hello = $loggedInBlock.find('#loggedInHello'); diff --git a/customize.dist/pages.js b/customize.dist/pages.js index de0a9968a..dfaf3d6b3 100644 --- a/customize.dist/pages.js +++ b/customize.dist/pages.js @@ -84,11 +84,11 @@ define([ var username = window.localStorage.getItem('User_name'); if (username === null) { rightLinks = [ - h('a.nav-item.nav-link.cp-login-btn', { href: '/login'}, Msg.login_login), - h('a.nav-item.nav-link.cp-register-btn', { href: '/register'}, Msg.login_register) + h('a.nav-item.nav-link.cp-login-btn', { href: '/login/'}, Msg.login_login), + h('a.nav-item.nav-link.cp-register-btn', { href: '/register/'}, Msg.login_register) ]; } else { - rightLinks = h('a.nav-item.nav-link.cp-user-btn', { href: '/drive' }, [ + rightLinks = h('a.nav-item.nav-link.cp-user-btn', { href: '/drive/' }, [ h('i.fa.fa-user-circle'), " ", username @@ -153,7 +153,7 @@ define([ h('div.col-md-4', [ h('img.bio-avatar', {'src': '/customize/images/Catalin.jpg'}), h('h3', "Catalin Scripcariu"), - setHTML(h('div#bio'), '

Catalin is a Maths majour and has worked in B2B sales for 12 years. Design was always his passion and 3 years ago he started to dedicate himself to web design and front-end.

At the beginning of 2017 he joined the Xwiki family, where he worked both on the business and the community side of XWiki, including the research team and CryptPad.

') + setHTML(h('div#bio'), '

Catalin is a Maths majour and has worked in B2B sales for 12 years. Design was always his passion and 3 years ago he started to dedicate himself to web design and front-end.

At the beginning of 2017 he joined the XWiki family, where he worked both on the business and the community side of XWiki, including the research team and CryptPad.

') ]), h('div.col-md-4', [ h('img.bio-avatar', {'src': '/customize/images/ludovic.jpg'}), @@ -280,7 +280,7 @@ define([ { href: x[1] }, h('div.bs-callout.cp-callout-' + x[0], [ h('i.fa.' + x[3]), - h('div', [ h('h4', x[2]) ]) + h('div.pad-button-text', [ h('h4', x[2]) ]) ]) ]); }), @@ -325,7 +325,6 @@ define([ ]) ); }; - loadingScreen = loadingScreen; // TODO use this Pages['/user/'] = Pages['/user/index.html'] = function () { return h('div#container'); diff --git a/customize.dist/translations/messages.js b/customize.dist/translations/messages.js index 7c5c64ceb..7d799f199 100644 --- a/customize.dist/translations/messages.js +++ b/customize.dist/translations/messages.js @@ -538,6 +538,7 @@ define(function () { out.main_pollPad = 'Poll or Schedule'; out.main_whiteboardPad = 'Whiteboard'; out.main_localPads = 'Local Pads'; + out.main_yourCryptDrive = 'Your CryptDrive'; out.footer_applications = "Applications"; out.footer_contact = "Contact";