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): ?>
|
|
|
|
<h2><?= $name ?></h2>
|
|
|
|
<table>
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Title</th>
|
|
|
|
<th>Rating</th>
|
|
|
|
<th>Chapters</th>
|
2015-06-26 16:39:10 -04:00
|
|
|
<th>Volumes</th>
|
2015-06-16 11:11:35 -04:00
|
|
|
<th>Type</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<?php foreach($items as $item): ?>
|
|
|
|
<tr id="manga-<?= $item['manga']['id'] ?>">
|
|
|
|
<td class="align_left">
|
|
|
|
<a href="https://hummingbird.me/manga/<?= $item['manga']['id'] ?>">
|
2015-06-26 16:39:10 -04:00
|
|
|
<?= $item['manga']['romaji_title'] ?>
|
2015-06-16 11:11:35 -04:00
|
|
|
</a>
|
2015-06-26 16:39:10 -04:00
|
|
|
<?= (array_key_exists('english_title', $item['manga'])) ? " · " . $item['manga']['english_title'] : "" ?>
|
2015-06-16 11:11:35 -04:00
|
|
|
</td>
|
|
|
|
<td><?= ($item['rating'] > 0) ? (int)($item['rating'] * 2) : '-' ?> / 10</td>
|
|
|
|
<td><?= $item['chapters_read'] ?> / <?= ($item['manga']['chapter_count'] > 0) ? $item['manga']['chapter_count'] : "-" ?></td>
|
2015-06-26 16:39:10 -04:00
|
|
|
<td><?= $item['volumes_read'] ?> / <?= ($item['manga']['volume_count'] > 0) ? $item['manga']['volume_count'] : "-" ?></td>
|
2015-06-16 11:11:35 -04:00
|
|
|
<td><?= $item['manga']['manga_type'] ?></td>
|
|
|
|
</tr>
|
|
|
|
<?php endforeach ?>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
<?php endforeach ?>
|
2015-07-02 14:04:04 -04:00
|
|
|
<?php endif ?>
|
2015-06-16 11:11:35 -04:00
|
|
|
</main>
|
2015-07-02 14:04:04 -04:00
|
|
|
<script src="<?= $config->asset_url('js.php?g=table') ?>"></script>
|