mirror of
https://github.com/TryGhost/Ghost-Admin.git
synced 2023-12-14 02:33:04 +01:00
38b138d759
requires https://github.com/TryGhost/Ghost/pull/9426 - fixed default token component display in {{gh-token-input}} - if no `tokenComponent` is passed to `{{gh-token-input}}` then it should default to the ember-drag-drop `draggable-object` component but instead it didn't output anything - put `draggable-object` in quotes because `{{component}}` needs a component name rather than an object - rename `option` attribute to `content` to match the default `{{draggable-object}}` interface - add embedded `authors` attr to the Post model - ensure authors is populated when starting new post - add validation for empty authors list - swap author dropdown for a token input in PSM - show all post authors in posts list - update tests for `authors` - always provide through an authors array - fix mirage serialisation for paginated responses (embedded records were not being serialised) - unify tags and author inputs design - remove highlight of primary tags - highlight internal tags - remove unnecessary/redundant title attributes on tags - use SVG icon for "remove option" button in token inputs
35 lines
1.2 KiB
Handlebars
35 lines
1.2 KiB
Handlebars
<h3 class="gh-content-entry-title">{{#link-to "editor.edit" post.id class="permalink" title="Edit this post"}}{{post.title}}{{/link-to}}</h3>
|
|
<p>{{subText}}</p>
|
|
|
|
<section class="gh-content-entry-meta">
|
|
{{#if isPage}}
|
|
<span class="gh-content-status-draft gh-badge gh-badge-black">Page</span>
|
|
{{/if}}
|
|
|
|
{{#if isScheduled}}
|
|
<span class="gh-content-status-draft gh-badge">Scheduled</span>
|
|
{{/if}}
|
|
|
|
{{#if isDraft}}
|
|
<span class="gh-content-status-draft gh-badge gh-badge-red">Draft</span>
|
|
{{/if}}
|
|
|
|
{{#if isFeatured}}
|
|
<span class="gh-content-status-featured gh-badge gh-badge-blue">Featured</span>
|
|
{{/if}}
|
|
|
|
{{#if (and isPublished (not post.page))}}
|
|
<span class="gh-content-status-published">Published</span>
|
|
{{/if}}
|
|
|
|
by <span class="gh-content-entry-author">{{authorNames}}</span> —
|
|
|
|
{{#if isPublished}}
|
|
{{gh-format-post-time post.publishedAtUTC published=true}}
|
|
{{else if isScheduled}}
|
|
<span class="green">Will go live {{gh-format-post-time post.publishedAtUTC scheduled=true}}</span>
|
|
{{else}}
|
|
Last edited {{gh-format-post-time post.updatedAtUTC draft=true}}
|
|
{{/if}}
|
|
</section>
|