ui: Prefix $FILES$ by base path
This commit is contained in:
parent
4cce95245e
commit
01a9bb2e94
@ -1,4 +1,6 @@
|
||||
<script>
|
||||
import { base } from '$app/paths';
|
||||
|
||||
import {
|
||||
CardBody,
|
||||
Icon,
|
||||
@ -8,7 +10,7 @@
|
||||
</script>
|
||||
|
||||
<CardBody class="text-indent ratio ratio-16x9">
|
||||
<iframe type="text/html" src="{uri.replace('$FILES$','/resolution')}" class="embed-responsive-item" title="Vidéo de résolution">
|
||||
Regardez la vidéo de résolution de ce défi : <a href="{uri.replace('$FILES$','/resolution')}">{uri.replace('$FILES$','/resolution')}</a>.
|
||||
<iframe type="text/html" src="{uri.replace('$FILES$', base+'/resolution')}" class="embed-responsive-item" title="Vidéo de résolution">
|
||||
Regardez la vidéo de résolution de ce défi : <a href="{uri.replace('$FILES$',base+'/resolution')}">{uri.replace('$FILES$',base+'/resolution')}</a>.
|
||||
</iframe>
|
||||
</CardBody>
|
||||
|
@ -1,4 +1,6 @@
|
||||
<script>
|
||||
import { base } from '$app/paths';
|
||||
|
||||
import {
|
||||
Badge,
|
||||
Button,
|
||||
@ -45,7 +47,7 @@
|
||||
<a href="." style="max-width: 50%">
|
||||
{#if $challengeInfo && $challengeInfo.main_logo}
|
||||
{#each $challengeInfo.main_logo as logo, i}
|
||||
<img src={logo.replace('$FILES$', '/files/')} alt={'Logo principal #' + i} class={'h-100' + (i > 0?' d-none d-md-inline ms-2':'')}>
|
||||
<img src={logo.replace('$FILES$', base + '/files/')} alt={'Logo principal #' + i} class={'h-100' + (i > 0?' d-none d-md-inline ms-2':'')}>
|
||||
{/each}
|
||||
{/if}
|
||||
</a>
|
||||
|
@ -1,4 +1,6 @@
|
||||
<script>
|
||||
import { base } from '$app/paths';
|
||||
|
||||
import {
|
||||
Carousel,
|
||||
CarouselItem,
|
||||
@ -16,10 +18,10 @@
|
||||
<CarouselItem bind:activeIndex={activePartner} itemIndex={index} class="h-100 text-end">
|
||||
{#if partner.href}
|
||||
<a href="{partner.href}" target="_blank" class="h-100">
|
||||
<img src={partner.img.replace('$FILES$', '/files')} class="h-100" alt={partner.alt}>
|
||||
<img src={partner.img.replace('$FILES$', base + '/files')} class="h-100" alt={partner.alt}>
|
||||
</a>
|
||||
{:else}
|
||||
<img src={partner.img.replace('$FILES$', '/files')} class="h-100" alt={partner.alt}>
|
||||
<img src={partner.img.replace('$FILES$', base + '/files')} class="h-100" alt={partner.alt}>
|
||||
{/if}
|
||||
</CarouselItem>
|
||||
{/each}
|
||||
|
Loading…
Reference in New Issue
Block a user