Remove templates/EbookProjects.php

378555d removed the reference to it in `www/ebook-placeholders/get.php`
This commit is contained in:
Mike Colagrosso 2024-12-31 21:10:53 -07:00 committed by Alex Cabal
parent dacd2db3b3
commit eacd7306b0

View file

@ -1,19 +0,0 @@
<?
/**
* @var Ebook $ebook
*/
$showAddButton = $showAddButton ?? false;
$showEditButton = $showEditButton ?? false;
?>
<section id="projects">
<h2>Projects</h2>
<? if($showAddButton){ ?>
<p>
<a href="<?= $ebook->Url ?>/projects/new">New project</a>
</p>
<? } ?>
<? if(sizeof($ebook->Projects) > 0){ ?>
<?= Template::ProjectsTable(['projects' => $ebook->Projects, 'includeTitle' => false, 'showEditButton' => $showEditButton]) ?>
<? } ?>
</section>