mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-24 23:48:13 -05:00
Revert "Updated Author & Contributor views"
This reverts commit 8bcb534feb
.
This commit is contained in:
parent
0ddca821d6
commit
4404dc179f
2 changed files with 16 additions and 40 deletions
|
@ -32,24 +32,6 @@
|
||||||
<li class="gh-nav-list-new relative">
|
<li class="gh-nav-list-new relative">
|
||||||
<GhLinkToCustomViewsIndex @route="posts" @query={{reset-query-params "posts"}} data-test-nav="posts">{{svg-jar "posts"}}Posts</GhLinkToCustomViewsIndex>
|
<GhLinkToCustomViewsIndex @route="posts" @query={{reset-query-params "posts"}} data-test-nav="posts">{{svg-jar "posts"}}Posts</GhLinkToCustomViewsIndex>
|
||||||
<LinkTo @route="editor.new" @model="post" @classNames="gh-secondary-action gh-nav-new-post" @alt="New post" @title="New post" data-test-nav="new-story"><span>{{svg-jar "add-stroke"}}</span></LinkTo>
|
<LinkTo @route="editor.new" @model="post" @classNames="gh-secondary-action gh-nav-new-post" @alt="New post" @title="New post" data-test-nav="new-story"><span>{{svg-jar "add-stroke"}}</span></LinkTo>
|
||||||
{{#if this.session.user.isAuthorOrContributor}}
|
|
||||||
{{#if this.customViews.forPosts}}
|
|
||||||
<ul class="gh-nav-view-list">
|
|
||||||
{{#each this.customViews.forPosts as |view|}}
|
|
||||||
<li>
|
|
||||||
<LinkTo @route="posts" @query={{reset-query-params "posts" view.filter}} data-test-nav-custom="{{view.route}}-{{view.name}}" title="{{view.name}}">
|
|
||||||
<span class="gh-nav-viewname">{{view.name}}</span>
|
|
||||||
<span class="flex items-center svg-{{view.color}}">
|
|
||||||
{{#unless view.icon}}
|
|
||||||
<span class="absolute circle"></span>
|
|
||||||
{{/unless}}
|
|
||||||
</span>
|
|
||||||
</LinkTo>
|
|
||||||
</li>
|
|
||||||
{{/each}}
|
|
||||||
</ul>
|
|
||||||
{{/if}}
|
|
||||||
{{else}}
|
|
||||||
{{#if this.customViews.forPosts}}
|
{{#if this.customViews.forPosts}}
|
||||||
<button type="button" class="gh-nav-button-expand {{if this.navigation.settings.expanded.posts "expanded"}}" {{on "click" (fn this.navigation.toggleExpansion "posts")}} aria-label="{{if this.navigation.settings.expanded.posts "Collapse custom post types" "Expand custom post types"}}">
|
<button type="button" class="gh-nav-button-expand {{if this.navigation.settings.expanded.posts "expanded"}}" {{on "click" (fn this.navigation.toggleExpansion "posts")}} aria-label="{{if this.navigation.settings.expanded.posts "Collapse custom post types" "Expand custom post types"}}">
|
||||||
{{svg-jar (if this.navigation.settings.expanded.posts "arrow-down-stroke" "arrow-right-stroke")}}
|
{{svg-jar (if this.navigation.settings.expanded.posts "arrow-down-stroke" "arrow-right-stroke")}}
|
||||||
|
@ -71,7 +53,6 @@
|
||||||
</ul>
|
</ul>
|
||||||
{{/liquid-if}}
|
{{/liquid-if}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{/if}}
|
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
{{!-- clicking the Content link whilst on the content screen should reset the filter --}}
|
{{!-- clicking the Content link whilst on the content screen should reset the filter --}}
|
||||||
|
|
|
@ -1,9 +1,5 @@
|
||||||
<section class="gh-canvas">
|
<section class="gh-canvas">
|
||||||
<GhCanvasHeader class="gh-canvas-header">
|
<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>
|
<h2 class="gh-canvas-title" data-test-screen-title>
|
||||||
<LinkTo @route="settings">Settings</LinkTo>
|
<LinkTo @route="settings">Settings</LinkTo>
|
||||||
<span>{{svg-jar "arrow-right"}}</span>
|
<span>{{svg-jar "arrow-right"}}</span>
|
||||||
|
@ -15,7 +11,6 @@
|
||||||
<span class="gh-badge suspended" data-test-suspended-badge>Suspended</span>
|
<span class="gh-badge suspended" data-test-suspended-badge>Suspended</span>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</h2>
|
</h2>
|
||||||
{{/if}}
|
|
||||||
|
|
||||||
{{#if this.showLeaveSettingsModal}}
|
{{#if this.showLeaveSettingsModal}}
|
||||||
<GhFullscreenModal @modal="leave-settings"
|
<GhFullscreenModal @modal="leave-settings"
|
||||||
|
|
Loading…
Add table
Reference in a new issue