summaryrefslogtreecommitdiffstats
path: root/views/anime/index.html.php
diff options
context:
space:
mode:
authorraylu <raylu@mixpanel.com>2011-07-12 00:50:00 -0700
committerraylu <raylu@mixpanel.com>2011-07-12 00:50:00 -0700
commit657d270864c6f8f77d083fe4aa6ba636ecbbd372 (patch)
tree1dc4ecd23df4486f6ea637c608513dc87c1e1b50 /views/anime/index.html.php
parentfa1c7d7646da4552dd5894f7c8440f89d1c10c53 (diff)
downloadotakuhub-657d270864c6f8f77d083fe4aa6ba636ecbbd372.tar.xz
rework a lot of search
/search will eventually search all /search/anime searches only anime
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')) ?>