2015-06-16 11:11:35 -04:00
|
|
|
<main>
|
2015-07-02 14:04:04 -04:00
|
|
|
<?php if (empty($sections)): ?>
|
|
|
|
<h3>There's nothing here!</h3>
|
|
|
|
<?php else: ?>
|
2015-06-16 11:11:35 -04:00
|
|
|
<?php foreach ($sections as $name => $items): ?>
|
|
|
|
<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): ?>
|
2015-06-24 16:01:35 -04:00
|
|
|
<article class="media" id="manga-<?= $item['id'] ?>">
|
2015-11-13 16:31:01 -05:00
|
|
|
<?php if ($auth->is_authenticated()): ?>
|
2015-06-24 16:01:35 -04:00
|
|
|
<div class="edit_buttons" hidden>
|
|
|
|
<button class="plus_one_chapter">+1 Chapter</button>
|
|
|
|
<button class="plus_one_volume">+1 Volume</button>
|
|
|
|
</div>
|
2015-11-13 16:31:01 -05:00
|
|
|
<?php endif ?>
|
2015-10-01 16:01:23 -04:00
|
|
|
<img src="<?= $escape->attr($item['manga']['image']) ?>" />
|
2015-06-16 11:11:35 -04:00
|
|
|
<div class="name">
|
2015-10-01 16:01:23 -04:00
|
|
|
<a href="<?= $item['manga']['url'] ?>">
|
|
|
|
<?= $escape->html($item['manga']['title']) ?>
|
|
|
|
<?= (isset($item['manga']['alternate_title'])) ? "<br />({$item['manga']['alternate_title']})" : ""; ?>
|
2015-06-24 16:01:35 -04:00
|
|
|
</a>
|
2015-06-16 11:11:35 -04:00
|
|
|
</div>
|
2015-06-24 16:01:35 -04:00
|
|
|
<div class="table">
|
|
|
|
<div class="row">
|
2015-10-01 16:01:23 -04:00
|
|
|
<div class="user_rating">Rating: <?= $item['user_rating'] ?> / 10</div>
|
2015-06-24 16:01:35 -04:00
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="chapter_completion">
|
2015-10-01 16:01:23 -04:00
|
|
|
Chapters: <span class="chapters_read"><?= $item['chapters']['read'] ?></span> /
|
|
|
|
<span class="chapter_count"><?= $item['chapters']['total'] ?></span>
|
2015-06-24 16:01:35 -04:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="volume_completion">
|
2015-10-01 16:01:23 -04:00
|
|
|
Volumes: <span class="volumes_read"><?= $item['volumes']['read'] ?></span> /
|
|
|
|
<span class="volume_count"><?= $item['volumes']['total'] ?></span>
|
2015-06-24 16:01:35 -04:00
|
|
|
</div>
|
2015-06-16 11:11:35 -04:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</article>
|
|
|
|
<?php endforeach ?>
|
|
|
|
</section>
|
|
|
|
</section>
|
|
|
|
<?php endforeach ?>
|
2015-07-02 14:04:04 -04:00
|
|
|
<?php endif ?>
|
2015-06-24 16:01:35 -04:00
|
|
|
</main>
|
2015-11-13 16:31:01 -05:00
|
|
|
<?php if ($auth->is_authenticated()): ?>
|
2015-09-17 23:11:18 -04:00
|
|
|
<script src="<?= $urlGenerator->asset_url('js.php?g=edit') ?>"></script>
|
2015-11-13 16:31:01 -05:00
|
|
|
<?php endif ?>
|