Loading template/app/controller/Auth.js +1 −1 Original line number Diff line number Diff line Loading @@ -63,7 +63,7 @@ Ext.define('Docs.controller.Auth', { }, setLoggedIn: function() { this.getAuthForm().showLoggedIn(Docs.Auth.getUser().userName); this.getAuthForm().showLoggedIn(Docs.Auth.getUser()); this.getController("Tabs").showCommentsTab(); }, Loading template/app/view/auth/Form.js +8 −4 Original line number Diff line number Diff line Loading @@ -4,7 +4,10 @@ Ext.define('Docs.view.auth.Form', { extend: 'Ext.container.Container', alias: 'widget.authForm', requires: ['Docs.Tip'], requires: [ 'Docs.Tip', 'Docs.Comments' ], loginTplHtml: [ '<form class="loginForm">', Loading Loading @@ -83,10 +86,11 @@ Ext.define('Docs.view.auth.Form', { /** * Shows message about who's logged in. * @param {String} username * @param {Object} user */ showLoggedIn: function(username) { this.update('Welcome, ' + username + ' | <a href="#" class="logout">Logout</a>'); showLoggedIn: function(user) { var userSignature = Docs.Comments.avatar(user.emailHash) + ' ' + user.userName; this.update('<span>' + userSignature + '</span> | <a href="#" class="logout">Logout</a>'); }, /** Loading template/resources/sass/_header.scss +7 −0 Original line number Diff line number Diff line Loading @@ -30,6 +30,13 @@ #loginContainer { text-align: right; color: #fff; span { position: relative; img.avatar { @include border-radius(2px); position: absolute; top: -5px; left: -35px; } } .register { font-weight: bold; } a { Loading Loading
template/app/controller/Auth.js +1 −1 Original line number Diff line number Diff line Loading @@ -63,7 +63,7 @@ Ext.define('Docs.controller.Auth', { }, setLoggedIn: function() { this.getAuthForm().showLoggedIn(Docs.Auth.getUser().userName); this.getAuthForm().showLoggedIn(Docs.Auth.getUser()); this.getController("Tabs").showCommentsTab(); }, Loading
template/app/view/auth/Form.js +8 −4 Original line number Diff line number Diff line Loading @@ -4,7 +4,10 @@ Ext.define('Docs.view.auth.Form', { extend: 'Ext.container.Container', alias: 'widget.authForm', requires: ['Docs.Tip'], requires: [ 'Docs.Tip', 'Docs.Comments' ], loginTplHtml: [ '<form class="loginForm">', Loading Loading @@ -83,10 +86,11 @@ Ext.define('Docs.view.auth.Form', { /** * Shows message about who's logged in. * @param {String} username * @param {Object} user */ showLoggedIn: function(username) { this.update('Welcome, ' + username + ' | <a href="#" class="logout">Logout</a>'); showLoggedIn: function(user) { var userSignature = Docs.Comments.avatar(user.emailHash) + ' ' + user.userName; this.update('<span>' + userSignature + '</span> | <a href="#" class="logout">Logout</a>'); }, /** Loading
template/resources/sass/_header.scss +7 −0 Original line number Diff line number Diff line Loading @@ -30,6 +30,13 @@ #loginContainer { text-align: right; color: #fff; span { position: relative; img.avatar { @include border-radius(2px); position: absolute; top: -5px; left: -35px; } } .register { font-weight: bold; } a { Loading