DTL panel - add thumb
This commit is contained in:
parent
24f807abbd
commit
ea6c304072
2 changed files with 15 additions and 1 deletions
|
|
@ -91,6 +91,19 @@ function processDTLProposals($page) {
|
||||||
}
|
}
|
||||||
|
|
||||||
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;
|
$numberedGlobalGrade = (int) $proposal->DTLGrade()->value() ?? 0;
|
||||||
|
|
||||||
$DTLProposal["grades"] = [
|
$DTLProposal["grades"] = [
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,7 @@
|
||||||
</button>
|
</button>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
<img v-if="activeProposal.thumb" :src="activeProposal.thumb" alt="" />
|
||||||
<p>Données basées sur la proposition du {{ activeProposal.date }}</p>
|
<p>Données basées sur la proposition du {{ activeProposal.date }}</p>
|
||||||
<p>{{ activeProposal.stepLabel }}</p>
|
<p>{{ activeProposal.stepLabel }}</p>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue