summaryrefslogtreecommitdiffstats
path: root/views/anime/index.html.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/anime/index.html.php')
-rw-r--r--views/anime/index.html.php34
1 files changed, 1 insertions, 33 deletions
diff --git a/views/anime/index.html.php b/views/anime/index.html.php
index 2b95fcf..270ed76 100644
--- a/views/anime/index.html.php
+++ b/views/anime/index.html.php
@@ -6,36 +6,4 @@ $this->styles($this->html->style('pagination'));
<h2 class="ribbon full">Anime</h2>
<div class="triangle-ribbon"></div>
-<?= $this->Paginator->paginate(array('separator' => '')) ?>
-
-<table>
-<th>Title</th>
-<th>Date</th>
-<th>Type</th>
-<?php foreach ($content as $anime): ?>
- <tr>
- <td>
- <a href="/anime/view/<?= $anime->special_id ?>"><?= $anime->title ?></a>
- <?php if ($anime->foreign_titles || $anime->alternative_titles): ?>
- <span class="alt_titles">
- <?php if ($anime->foreign_titles): ?>
- <?= $anime->foreign_titles[0] ?>
- <?php endif ?>
- <?php if ($anime->alternative_titles): ?>
- &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
- <?= $anime->alternative_titles[0] ?>
- <?php endif ?>
- </span>
- <?php endif ?>
- </td>
- <td>
- <?= $anime->aired ?>
- </td>
- <td>
- <?= $anime->view_type ?>
- </td>
- </tr>
-<?php endforeach ?>
-</table>
-
-<?= $this->Paginator->paginate(array('separator' => '')) ?>
+<?= $this->_render('element', 'animetable', compact('anime')) ?>