mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-04 17:04:59 +03:00
fix users template rendering
This commit is contained in:
parent
f2f10ac7a6
commit
f6a116b3c1
@ -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: {
|
||||
reload: function () {
|
||||
this.refresh();
|
||||
|
@ -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');
|
||||
|
@ -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">
|
||||
<h1 class="view-title">Team</h1>
|
||||
<section class="view-actions">
|
||||
@ -67,5 +66,3 @@
|
||||
</section>
|
||||
|
||||
</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';
|
||||
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 () {
|
||||
|
Loading…
Reference in New Issue
Block a user