create steps redirections to dialogs
This commit is contained in:
parent
2f7a3796d2
commit
e9561e85c2
7 changed files with 40 additions and 12 deletions
|
|
@ -8,7 +8,9 @@
|
|||
<article class="card" v-if="step.id !== 'proposal'">
|
||||
<hgroup class="order-last">
|
||||
<h3 class="card__title | font-serif | text-lg">
|
||||
<router-link :to="'/' + step.uri" class="link-full">{{ step.label }}</router-link>
|
||||
<router-link :to="'/' + step.uri" class="link-full">{{
|
||||
step.label
|
||||
}}</router-link>
|
||||
</h3>
|
||||
</hgroup>
|
||||
<div class="card__meta | flex">
|
||||
|
|
@ -34,11 +36,16 @@
|
|||
/>
|
||||
</figure>
|
||||
<!-- First image -->
|
||||
<figure v-if="step.id === 'virtualSample'" class="card__images">
|
||||
<figure
|
||||
v-if="step.id === 'virtualSample'"
|
||||
class="card__images"
|
||||
:data-count="step.files.length > 3 ? step.files.length - 3 : 0"
|
||||
>
|
||||
<img
|
||||
:key="step.files[0].uuid"
|
||||
:src="step.files[0].url"
|
||||
:alt="step.files[0].alt"
|
||||
v-for="track in step.files"
|
||||
:key="track.files[0].slug"
|
||||
:src="track.files[0].url"
|
||||
:alt="track.files[0].alt"
|
||||
/>
|
||||
</figure>
|
||||
<!-- Document -->
|
||||
|
|
@ -47,7 +54,10 @@
|
|||
class="card__images"
|
||||
data-icon="document"
|
||||
></div>
|
||||
<footer v-if="step?.files[0]?.comments?.length > 0" class="order-last | text-sm text-primary font-medium">
|
||||
<footer
|
||||
v-if="step?.files[0]?.comments?.length > 0"
|
||||
class="order-last | text-sm text-primary font-medium"
|
||||
>
|
||||
{{ step.files[0].comments.length }} commentaire{{
|
||||
step.files[0].comments.length > 1 ? "s" : ""
|
||||
}}
|
||||
|
|
@ -62,8 +72,13 @@
|
|||
>
|
||||
<hgroup class="order-last">
|
||||
<h3 class="card__title | font-serif | text-lg">
|
||||
<router-link :to="'/' + step.uri + '&fileIndex=' + index" class="link-full">
|
||||
{{ file.label.length ? file.label : file.name.replace(".pdf", "") }}
|
||||
<router-link
|
||||
:to="'/' + step.uri + '&fileIndex=' + index"
|
||||
class="link-full"
|
||||
>
|
||||
{{
|
||||
file.label.length ? file.label : file.name.replace(".pdf", "")
|
||||
}}
|
||||
</router-link>
|
||||
</h3>
|
||||
</hgroup>
|
||||
|
|
@ -79,7 +94,10 @@
|
|||
class="card__images"
|
||||
data-icon="document"
|
||||
></div>
|
||||
<footer v-if="file.comments?.length > 0" class="order-last | text-sm text-primary font-medium">
|
||||
<footer
|
||||
v-if="file.comments?.length > 0"
|
||||
class="order-last | text-sm text-primary font-medium"
|
||||
>
|
||||
{{ file.comments.length }} commentaire{{
|
||||
file.comments.length > 1 ? "s" : ""
|
||||
}}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue