diff --git a/ghost/admin/app/components/posts-list/list-item-old.hbs b/ghost/admin/app/components/posts-list/list-item-old.hbs deleted file mode 100644 index 83533a2c53..0000000000 --- a/ghost/admin/app/components/posts-list/list-item-old.hbs +++ /dev/null @@ -1,200 +0,0 @@ -{{!-- template-lint-disable no-invalid-interactive --}} -
  • - - {{!-- Title column --}} - {{#if (and this.session.user.isContributor @post.isPublished)}} - - {{else}} - -

    - {{@post.title}} - {{#if @post.lexical}} - L - {{/if}} -

    - {{#unless @hideAuthor }} - -

    - {{#if @post.isScheduled}} - - - Scheduled - {{#if this.isHovered}} - - {{#if @post.emailOnly}} - to be sent - {{else}} - to be published {{if @post.newsletter "and sent "}} - {{/if}} - {{this.scheduledText}} to {{humanize-recipient-filter @post.emailSegment}} - - {{/if}} - - {{/if}} - - {{#if @post.isDraft}} - - - Draft - - {{/if}} - - {{#if @post.isPublished}} - - Published - {{#if @post.didEmailFail}} - but failed to send newsletter - {{else if @post.hasBeenEmailed}} - and sent - {{#if this.isHovered}} - to {{gh-pluralize @post.email.emailCount "member"}} - {{/if}} - {{/if}} - - {{/if}} - - {{#if @post.isSent}} - - {{#if @post.didEmailFail}} - Failed to send newsletter - {{else}} - Sent - {{#if this.isHovered}} - to {{gh-pluralize @post.email.emailCount "member"}} - {{/if}} - {{/if}} - - {{/if}} -

    - {{/unless}} -
    - {{/if}} - - {{!-- Opened / Signups column --}} - {{#if (and @post.showEmailOpenAnalytics @post.showEmailClickAnalytics) }} - - - {{#if this.isHovered}} - {{format-number @post.email.openedCount}} - {{else}} - {{@post.email.openRate}}% - {{/if}} - - - opened - - - {{else}} - - {{!-- Empty on purpose --}} - - {{/if}} - - {{!-- Clicked / Conversions column --}} - {{#if @post.showEmailClickAnalytics }} - - - {{#if this.isHovered}} - {{format-number @post.count.clicks}} - {{else}} - {{@post.clickRate}}% - {{/if}} - - - clicked - - - {{else}} - {{#if @post.showEmailOpenAnalytics }} - - - {{#if this.isHovered}} - {{format-number @post.email.openedCount}} - {{else}} - {{@post.email.openRate}}% - {{/if}} - - - opened - - - {{else}} - - {{!-- Empty on purpose --}} - - {{/if}} - {{/if}} - - {{!-- Button column --}} - {{#if @post.hasAnalyticsPage }} - - - {{svg-jar "stats" title="Go to Analytics"}} - - - {{else}} - - - {{svg-jar "pen" title="Go to Editor"}} - - - {{/if}} -
  • diff --git a/ghost/admin/app/components/posts-list/list-item-old.js b/ghost/admin/app/components/posts-list/list-item-old.js deleted file mode 100644 index b237f0fd6b..0000000000 --- a/ghost/admin/app/components/posts-list/list-item-old.js +++ /dev/null @@ -1,46 +0,0 @@ -import Component from '@glimmer/component'; -import {action} from '@ember/object'; -import {formatPostTime} from 'ghost-admin/helpers/gh-format-post-time'; -import {inject as service} from '@ember/service'; -import {tracked} from '@glimmer/tracking'; - -export default class PostsListItemClicks extends Component { - @service feature; - @service session; - @service settings; - - @tracked isHovered = false; - - get post() { - return this.args.post; - } - - get errorClass() { - if (this.post.didEmailFail) { - return 'error'; - } - return ''; - } - - get scheduledText() { - let text = []; - - let formattedTime = formatPostTime( - this.post.publishedAtUTC, - {timezone: this.settings.timezone, scheduled: true} - ); - text.push(formattedTime); - - return text.join(' '); - } - - @action - mouseOver() { - this.isHovered = true; - } - - @action - mouseLeave() { - this.isHovered = false; - } -}