diff --git a/public/site/templates/project.json.php b/public/site/templates/project.json.php index 39a1c4f..cb17600 100644 --- a/public/site/templates/project.json.php +++ b/public/site/templates/project.json.php @@ -90,7 +90,20 @@ function processDTLProposals($page) { break; } - if ($DTLProposal) { + if ($DTLProposal) { + if ($proposalFile->cover()->isNotEmpty()) { + $DTLProposal["thumb"] = $proposalFile->cover()->toFile()->thumb([ + "width" => 200, + "format" => "webp" + ])->url(); + } + if ($proposalPage->views()->isNotEmpty()) { + $DTLProposal["thumb"] = $proposalPage->views()->toFile()->thumb([ + "width" => 200, + "format" => "webp" + ])->url(); + } + $numberedGlobalGrade = (int) $proposal->DTLGrade()->value() ?? 0; $DTLProposal["grades"] = [ diff --git a/src/components/design-to-light/DTLPanel.vue b/src/components/design-to-light/DTLPanel.vue index b1f32a1..790e8b4 100644 --- a/src/components/design-to-light/DTLPanel.vue +++ b/src/components/design-to-light/DTLPanel.vue @@ -8,6 +8,7 @@ +

Données basées sur la proposition du {{ activeProposal.date }}

{{ activeProposal.stepLabel }}