mirror of
https://github.com/standardebooks/web.git
synced 2025-07-12 17:42:29 -04:00
Don't show placeholder difficulty if it's not set
This commit is contained in:
parent
98e09f414e
commit
18bcde3bf6
1 changed files with 6 additions and 4 deletions
|
@ -32,11 +32,13 @@ $showPlaceholderMetadata = $showPlaceholderMetadata ?? false;
|
|||
<td>Is Patron selection:</td>
|
||||
<td><? if($ebook->EbookPlaceholder->IsPatron){ ?>☑<? }else{ ?>☐<? } ?></td>
|
||||
</tr>
|
||||
<? if($ebook->EbookPlaceholder->Difficulty !== null){ ?>
|
||||
<tr>
|
||||
<td>Difficulty:</td>
|
||||
<td><?= ucfirst($ebook->EbookPlaceholder->Difficulty->value) ?></td>
|
||||
</tr>
|
||||
<? } ?>
|
||||
<? } ?>
|
||||
<tr>
|
||||
<td>Difficulty:</td>
|
||||
<td><?= ucfirst($ebook->EbookPlaceholder->Difficulty->value ?? '') ?></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</section>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue