mirror of
https://github.com/standardebooks/web.git
synced 2025-07-07 15:20:32 -04:00
19 lines
465 B
PHP
19 lines
465 B
PHP
<?
|
|
/**
|
|
* @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>
|