mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-25 09:03:12 +03:00
Revert "Updated profile page for Authors & Contributors"
This reverts commit c5940ab57b
.
This commit is contained in:
parent
c5940ab57b
commit
0ddca821d6
@ -1,10 +0,0 @@
|
||||
import Controller from '@ember/controller';
|
||||
import {alias} from '@ember/object/computed';
|
||||
import {inject as service} from '@ember/service';
|
||||
|
||||
export default Controller.extend({
|
||||
session: service(),
|
||||
|
||||
user: alias('model'),
|
||||
currentUser: alias('session.user')
|
||||
});
|
@ -6,16 +6,6 @@ export default class IndexRoute extends AuthenticatedRoute {
|
||||
@service infinity;
|
||||
@service session;
|
||||
|
||||
beforeModel() {
|
||||
super.beforeModel(...arguments);
|
||||
|
||||
const user = this.session.user;
|
||||
|
||||
if (!user.isAdmin) {
|
||||
return this.transitionTo('settings.staff.user', user);
|
||||
}
|
||||
}
|
||||
|
||||
model() {
|
||||
return this.session.user;
|
||||
}
|
||||
|
@ -1,17 +1,12 @@
|
||||
<section class="gh-canvas">
|
||||
<GhCanvasHeader class="gh-canvas-header">
|
||||
{{!-- Remove breadcrumbs for Authors and Contributors --}}
|
||||
{{#if this.currentUser.isAuthorOrContributor}}
|
||||
<h2 class="gh-canvas-title" data-test-screen-title>Your profile</h2>
|
||||
{{else}}
|
||||
<h2 class="gh-canvas-title" data-test-screen-title>
|
||||
<LinkTo @route="settings">Settings</LinkTo>
|
||||
<span>{{svg-jar "arrow-right"}}</span>
|
||||
<LinkTo @route="settings.staff" data-test-staff-link={{true}}>Staff</LinkTo>
|
||||
<span>{{svg-jar "arrow-right"}}</span>
|
||||
{{this.user.name}}
|
||||
</h2>
|
||||
{{/if}}
|
||||
<h2 class="gh-canvas-title" data-test-screen-title>
|
||||
<LinkTo @route="settings">Settings</LinkTo>
|
||||
<span>{{svg-jar "arrow-right"}}</span>
|
||||
<LinkTo @route="settings.staff" data-test-staff-link={{true}}>Staff</LinkTo>
|
||||
<span>{{svg-jar "arrow-right"}}</span>
|
||||
{{this.user.name}}
|
||||
</h2>
|
||||
|
||||
<section class="view-actions">
|
||||
<div class="gh-btn gh-btn-primary"><span>Save</span></div>
|
||||
|
Loading…
Reference in New Issue
Block a user