From 8885a9ee987e994087195413f593b55d5c119eb4 Mon Sep 17 00:00:00 2001 From: Jared Galanis Date: Mon, 25 Sep 2023 17:39:59 -0400 Subject: [PATCH 1/2] refactor: make file URIs relative Closes: https://github.com/eclipse-pass/main/issues/733 --- app/components/workflow-files/index.hbs | 23 +++++++++++------------ app/components/workflow-files/index.js | 8 +------- app/templates/submissions/detail.hbs | 2 +- 3 files changed, 13 insertions(+), 20 deletions(-) diff --git a/app/components/workflow-files/index.hbs b/app/components/workflow-files/index.hbs index 421e41c0..22e50f5a 100644 --- a/app/components/workflow-files/index.hbs +++ b/app/components/workflow-files/index.hbs @@ -46,13 +46,13 @@ {{#if this.manuscript}} - {{!-- {{#if manuscript.uri}} --}} - {{!-- - {{manuscript.name}} + {{#if this.manuscript.uri}} + + {{this.manuscript.name}} - {{else}} --}} - {{this.manuscript.name}} - {{!-- {{/if}} --}} + {{else}} + {{this.manuscript.name}} + {{/if}} Manuscript @@ -79,20 +79,19 @@ {{#each this.supplementalFiles as |file|}} - {{!-- {{#if file.uri}} - + {{#if file.uri}} + {{file.name}} - {{else}} --}} - {{file.name}} - {{!-- {{/if}} --}} + {{else}} + {{file.name}} + {{/if}}