mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-10 23:36:14 -05:00
fix users template rendering
This commit is contained in:
parent
f2f10ac7a6
commit
f6a116b3c1
8 changed files with 16 additions and 21 deletions
|
@ -1,5 +0,0 @@
|
||||||
import AuthenticatedRoute from 'ghost/routes/authenticated';
|
|
||||||
|
|
||||||
var UsersRoute = AuthenticatedRoute.extend();
|
|
||||||
|
|
||||||
export default UsersRoute;
|
|
|
@ -47,6 +47,10 @@ UsersIndexRoute = AuthenticatedRoute.extend(styleBody, CurrentUserSettings, Pagi
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
renderTemplate: function () {
|
||||||
|
this.render('settings/users/index', {into: 'application'});
|
||||||
|
},
|
||||||
|
|
||||||
actions: {
|
actions: {
|
||||||
reload: function () {
|
reload: function () {
|
||||||
this.refresh();
|
this.refresh();
|
||||||
|
|
|
@ -49,6 +49,10 @@ var SettingsUserRoute = AuthenticatedRoute.extend(styleBody, CurrentUserSettings
|
||||||
this._super();
|
this._super();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
renderTemplate: function () {
|
||||||
|
this.render('settings/users/user', {into: 'application'});
|
||||||
|
},
|
||||||
|
|
||||||
actions: {
|
actions: {
|
||||||
save: function () {
|
save: function () {
|
||||||
this.get('controller').send('save');
|
this.get('controller').send('save');
|
||||||
|
|
|
@ -1,6 +0,0 @@
|
||||||
{{!
|
|
||||||
Yes, this is the template default,
|
|
||||||
but for some reason things break without it in this instance.
|
|
||||||
@TODO Find a better fix?
|
|
||||||
}}
|
|
||||||
{{outlet}}
|
|
|
@ -1,4 +1,3 @@
|
||||||
{{#view "settings/users/users-list-view" class="users-list-wrapper js-users-list-view"}}
|
|
||||||
<header class="view-header">
|
<header class="view-header">
|
||||||
<h1 class="view-title">Team</h1>
|
<h1 class="view-title">Team</h1>
|
||||||
<section class="view-actions">
|
<section class="view-actions">
|
||||||
|
@ -67,5 +66,3 @@
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
</section>{{! .content settings-users }}
|
</section>{{! .content settings-users }}
|
||||||
|
|
||||||
{{/view}}
|
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
import BaseView from 'ghost/views/settings/content-base';
|
|
||||||
|
|
||||||
var SettingsUsersView = BaseView.extend();
|
|
||||||
|
|
||||||
export default SettingsUsersView;
|
|
5
core/client/app/views/settings/users/index.js
Normal file
5
core/client/app/views/settings/users/index.js
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
import BaseView from 'ghost/views/settings/content-base';
|
||||||
|
|
||||||
|
var SettingsUserIndexView = BaseView.extend();
|
||||||
|
|
||||||
|
export default SettingsUserIndexView;
|
|
@ -1,5 +1,6 @@
|
||||||
import Ember from 'ember';
|
import BaseView from 'ghost/views/settings/content-base';
|
||||||
var SettingsUserView = Ember.View.extend({
|
|
||||||
|
var SettingsUserView = BaseView.extend({
|
||||||
currentUser: Ember.computed.alias('controller.session.user'),
|
currentUser: Ember.computed.alias('controller.session.user'),
|
||||||
|
|
||||||
isNotOwnProfile: Ember.computed('controller.user.id', 'currentUser.id', function () {
|
isNotOwnProfile: Ember.computed('controller.user.id', 'currentUser.id', function () {
|
||||||
|
|
Loading…
Add table
Reference in a new issue