Timothy J. Warren
1b74df5269
All checks were successful
timw4mail/HummingBirdAnimeClient/pipeline/pr-master This commit looks good
30 lines
830 B
PHP
30 lines
830 B
PHP
<main class="media-list">
|
|
<?php if ($auth->isAuthenticated()): ?>
|
|
<a class="bracketed" href="<?= $url->generate('manga.add.get') ?>">Add Item</a>
|
|
<?php endif ?>
|
|
<?php if (empty($sections)): ?>
|
|
<h3>There's nothing here!</h3>
|
|
<?php else: ?>
|
|
<br />
|
|
<label>Filter: <input type='text' class='media-filter' /></label>
|
|
<br />
|
|
<?php foreach ($sections as $name => $items): ?>
|
|
<?php if (empty($items)): ?>
|
|
<section class="status">
|
|
<h2><?= $escape->html($name) ?></h2>
|
|
<h3>There's nothing here!</h3>
|
|
</section>
|
|
<?php else: ?>
|
|
<section class="status">
|
|
<h2><?= $escape->html($name) ?></h2>
|
|
<section class="media-wrap">
|
|
<?php foreach($items as $item): ?>
|
|
<?= $component->mangaCover($item, $name) ?>
|
|
<?php endforeach ?>
|
|
</section>
|
|
</section>
|
|
<?php endif ?>
|
|
<?php endforeach ?>
|
|
<?php endif ?>
|
|
</main>
|