diff --git a/core/client/templates/settings/general.hbs b/core/client/templates/settings/general.hbs index 776046f640..70ace546e2 100644 --- a/core/client/templates/settings/general.hbs +++ b/core/client/templates/settings/general.hbs @@ -1,9 +1,13 @@
-

General

-
- -
+ +
+ + +
+ +
+
diff --git a/core/client/templates/settings/user.hbs b/core/client/templates/settings/user.hbs index 6bdb515ed5..6fac346876 100644 --- a/core/client/templates/settings/user.hbs +++ b/core/client/templates/settings/user.hbs @@ -1,9 +1,28 @@ -
- +
@@ -24,8 +43,8 @@
- - {{input value=user.name id="user-name" placeholder="Full Name" autocorrect="off"}} + + {{input value=user.name id="user-name" class="user-name" placeholder="Full Name" autocorrect="off"}}

Use your real name so people can recognise you

@@ -33,12 +52,27 @@
+ {{!--
+ + {{input value=user.slug id="user-slug" placeholder="Slug" autocorrect="off"}} +

http://blog-url.com/user/{{user.slug}}

+
--}} +
{{input type="email" value=user.email id="user-email" placeholder="Email Address" autocapitalize="off" autocorrect="off"}}

Used for notifications

+ {{!--
+ + +

What permissions should this user have?

+
--}} +
{{input type="text" value=user.location id="user-location"}} diff --git a/core/client/templates/user-actions-menu.hbs b/core/client/templates/user-actions-menu.hbs new file mode 100644 index 0000000000..3d5f85f361 --- /dev/null +++ b/core/client/templates/user-actions-menu.hbs @@ -0,0 +1,2 @@ +Make Owner +Delete User \ No newline at end of file diff --git a/core/client/views/settings.js b/core/client/views/settings.js index 4143ab627e..6bb4eb31cc 100644 --- a/core/client/views/settings.js +++ b/core/client/views/settings.js @@ -7,21 +7,29 @@ var SettingsView = Ember.View.extend({ var responsiveAction = mobileUtils.responsiveAction; Ember.run.scheduleOnce('afterRender', this, function () { + + // ### Hide settings page nav items (save, back etc) if the menu is showing + responsiveAction(event, '(max-width: 650px)', function () { + if ($('.settings-sidebar[style]').length === 0) { + $('.settings-header-inner').css('display', 'none'); + } + }); + // ### Show settings options page when swiping left on settings menu link $('.settings').on('click', '.settings-menu li', function (event) { responsiveAction(event, '(max-width: 800px)', function () { - $('.settings-sidebar').animate({right: '100%', left: '-102%', 'margin-right': '15px'}, 300); + $('.settings-sidebar').animate({right: '100%', left: '-110%', 'margin-right': '15px'}, 300); $('.settings-content').animate({right: '0', left: '0', 'margin-left': '0'}, 300); - $('.settings-content .button-back, .settings-content .button-save').css('display', 'inline-block'); + $('.settings-header-inner').css('display', 'block'); }); }); // ### Hide settings options page $('.settings').on('click', '.settings-content .button-back', function (event) { responsiveAction(event, '(max-width: 800px)', function () { + $('.settings-header-inner').css('display', 'none'); $('.settings-sidebar').animate({right: '0', left: '0', 'margin-right': '0'}, 300); $('.settings-content').animate({right: '-100%', left: '100%', 'margin-left': '15'}, 300); - $('.settings-content .button-back, .settings-content .button-save').css('display', 'none'); }); }); });