diff --git a/less/account.less b/less/account.less index 4aeef82..0e00ab7 100644 --- a/less/account.less +++ b/less/account.less @@ -37,7 +37,7 @@ left: auto; right: 0px; - .avatar { + .avatar-wrapper { position: absolute; left: 50%; margin-left: -64px; @@ -177,7 +177,7 @@ line-height: 300px; } - .avatar { + .avatar-wrapper { top: 230px; } } @@ -277,10 +277,6 @@ } } -.user-profile-picture { - .user-icon-style(128px, 7.5rem, 50%); -} - .user-picture-label { font-size:20px; } diff --git a/lib/client/chats.js b/lib/client/chats.js new file mode 100644 index 0000000..39871f9 --- /dev/null +++ b/lib/client/chats.js @@ -0,0 +1,16 @@ +define('persona/chats', ['components', 'forum/chats'], function(components, coreChats) { + var Chats = {}; + + Chats.init = function() { + components.get('chat/recent').off('click').on('click', 'li', function(e) { + var env = utils.findBootstrapEnvironment(); + if (env === 'xs' || env === 'sm') { + app.openChat($(this).attr('data-username'), $(this).attr('data-uid')); + } else { + coreChats.switchChat(parseInt($(this).attr('data-uid'), 10), $(this).attr('data-username')); + } + }); + }; + + return Chats; +}); \ No newline at end of file diff --git a/templates/account/edit.tpl b/templates/account/edit.tpl index c2dac28..d6767ce 100644 --- a/templates/account/edit.tpl +++ b/templates/account/edit.tpl @@ -7,9 +7,9 @@
diff --git a/templates/partials/account/header.tpl b/templates/partials/account/header.tpl index f0feee5..eea2cda 100644 --- a/templates/partials/account/header.tpl +++ b/templates/partials/account/header.tpl @@ -1,11 +1,11 @@
-
+
- + - +
{icon:text}