diff --git a/app/preprints/detail/controller.ts b/app/preprints/detail/controller.ts index 21ec1e556e..e9e146a7fd 100644 --- a/app/preprints/detail/controller.ts +++ b/app/preprints/detail/controller.ts @@ -115,7 +115,7 @@ export default class PrePrintsDetailController extends Controller { } authors(): ContributorModel[] { - return this.model.contributors; + return this.model.preprint.contributors; } fullLicenseText(): string { diff --git a/app/preprints/detail/route.ts b/app/preprints/detail/route.ts index 29080402b4..22de66e39f 100644 --- a/app/preprints/detail/route.ts +++ b/app/preprints/detail/route.ts @@ -75,7 +75,6 @@ export default class PreprintsDetail extends Route { /* export default Route.extend({ - currentUser: service(), features: service(), model(params) { const opts = { @@ -88,15 +87,6 @@ export default Route.extend({ }, }; - this.get('currentUser').authenticatedAJAX(opts).then((res) => { - if (Array.isArray(res.meta.active_flags)) { - this.get('features').setup(res.meta.active_flags.reduce(function(acc, flag) { - acc[flag] = true; - return acc; - }, {})); - } - }); - return this.store.findRecord( 'preprint', params.preprint_id, { diff --git a/app/preprints/detail/template.hbs b/app/preprints/detail/template.hbs index edb9d071b0..b791eca490 100644 --- a/app/preprints/detail/template.hbs +++ b/app/preprints/detail/template.hbs @@ -1,6 +1,4 @@ -{{page-title this.model.preprint.title replace=true}} -{{ this.theme.provider.id}} -{{ this.theme.provider.brand.primaryColor}} +{{page-title this.model.preprint.title replace=false}}
@@ -10,14 +8,14 @@
-

{{this.model.title}}

+

{{this.model.preprint.title}}

{{#unless this.isWithdrawn}}
{{#if (and this.userIsContrib (not this.isPendingWithdrawal))}} {{t @editButtonLabel documentType=this.model.provider.documentType}} @@ -31,7 +29,7 @@
- {{t 'content.header.authors_label'}} + {{t 'preprints.detail.header.authors_label'}}
    {{#if this.authors}} @@ -57,7 +55,7 @@
- {{author-assertions preprint=this.model}} + {{!author-assertions preprint=this.model.preprint}}
{{!END CONTAINER DIV}}
@@ -152,9 +150,9 @@
{{t this.dateLabel}}: {{moment-format this.model.dateCreated 'MMMM DD, YYYY'}} {{#if this.isWithdrawn}} - | {{t 'content.header.withdrawn_on'}}: {{moment-format this.model.dateWithdrawn 'MMMM DD, YYYY'}} + | {{t 'preprint.detail.header.withdrawn_on'}}: {{moment-format this.model.dateWithdrawn 'MMMM DD, YYYY'}} {{else}} - | {{t 'content.header.last_edited'}}: {{moment-format this.model.dateModified 'MMMM DD, YYYY'}} + | {{t 'preprint.detail.header.last_edited'}}: {{moment-format this.model.dateModified 'MMMM DD, YYYY'}} {{/if}}