2018-08-10 20:09:28 -04:00
|
|
|
<main class="media-list">
|
2017-02-15 16:30:14 -05:00
|
|
|
<?php if ($auth->isAuthenticated()): ?>
|
2017-03-30 16:16:40 -04:00
|
|
|
<a class="bracketed" href="<?= $url->generate('manga.add.get') ?>">Add Item</a>
|
2017-01-05 22:24:45 -05:00
|
|
|
<?php endif ?>
|
2015-07-02 14:04:04 -04:00
|
|
|
<?php if (empty($sections)): ?>
|
|
|
|
<h3>There's nothing here!</h3>
|
|
|
|
<?php else: ?>
|
2019-07-10 13:32:05 -04:00
|
|
|
<br />
|
|
|
|
<label>Filter: <input type='text' class='media-filter' /></label>
|
|
|
|
<br />
|
2015-06-16 11:11:35 -04:00
|
|
|
<?php foreach ($sections as $name => $items): ?>
|
2017-09-14 17:33:24 -04:00
|
|
|
<?php if (empty($items)): ?>
|
|
|
|
<section class="status">
|
|
|
|
<h2><?= $escape->html($name) ?></h2>
|
|
|
|
<h3>There's nothing here!</h3>
|
|
|
|
</section>
|
|
|
|
<?php else: ?>
|
2015-06-16 11:11:35 -04:00
|
|
|
<section class="status">
|
2015-09-17 23:11:18 -04:00
|
|
|
<h2><?= $escape->html($name) ?></h2>
|
2015-06-16 11:11:35 -04:00
|
|
|
<section class="media-wrap">
|
|
|
|
<?php foreach($items as $item): ?>
|
2020-08-26 17:26:42 -04:00
|
|
|
<?= $component->mangaCover($item, $name) ?>
|
2015-06-16 11:11:35 -04:00
|
|
|
<?php endforeach ?>
|
|
|
|
</section>
|
|
|
|
</section>
|
2017-09-14 17:33:24 -04:00
|
|
|
<?php endif ?>
|
2015-06-16 11:11:35 -04:00
|
|
|
<?php endforeach ?>
|
2015-07-02 14:04:04 -04:00
|
|
|
<?php endif ?>
|
2015-06-24 16:01:35 -04:00
|
|
|
</main>
|