fix users template rendering

This commit is contained in:
Austin Burdine 2015-05-12 08:10:41 -06:00 committed by Hannah Wolfe
parent f2f10ac7a6
commit f6a116b3c1
8 changed files with 16 additions and 21 deletions

View File

@ -1,5 +0,0 @@
import AuthenticatedRoute from 'ghost/routes/authenticated';
var UsersRoute = AuthenticatedRoute.extend();
export default UsersRoute;

View File

@ -47,6 +47,10 @@ UsersIndexRoute = AuthenticatedRoute.extend(styleBody, CurrentUserSettings, Pagi
});
},
renderTemplate: function () {
this.render('settings/users/index', {into: 'application'});
},
actions: {
reload: function () {
this.refresh();

View File

@ -49,6 +49,10 @@ var SettingsUserRoute = AuthenticatedRoute.extend(styleBody, CurrentUserSettings
this._super();
},
renderTemplate: function () {
this.render('settings/users/user', {into: 'application'});
},
actions: {
save: function () {
this.get('controller').send('save');

View File

@ -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}}

View File

@ -1,4 +1,3 @@
{{#view "settings/users/users-list-view" class="users-list-wrapper js-users-list-view"}}
<header class="view-header">
<h1 class="view-title">Team</h1>
<section class="view-actions">
@ -67,5 +66,3 @@
</section>
</section>{{! .content settings-users }}
{{/view}}

View File

@ -1,5 +0,0 @@
import BaseView from 'ghost/views/settings/content-base';
var SettingsUsersView = BaseView.extend();
export default SettingsUsersView;

View File

@ -0,0 +1,5 @@
import BaseView from 'ghost/views/settings/content-base';
var SettingsUserIndexView = BaseView.extend();
export default SettingsUserIndexView;

View File

@ -1,5 +1,6 @@
import Ember from 'ember';
var SettingsUserView = Ember.View.extend({
import BaseView from 'ghost/views/settings/content-base';
var SettingsUserView = BaseView.extend({
currentUser: Ember.computed.alias('controller.session.user'),
isNotOwnProfile: Ember.computed('controller.user.id', 'currentUser.id', function () {