summaryrefslogtreecommitdiffstats
path: root/views
diff options
context:
space:
mode:
authorraylu <raylu@mixpanel.com>2011-07-10 23:32:14 -0700
committerraylu <raylu@mixpanel.com>2011-07-10 23:33:03 -0700
commit2e6016922cfeaf32e69f65df8178d71387782e2c (patch)
tree45222803c2b386ed39af4530c9eddc7090f4a60b /views
parent913bca163e3c00c2f956b7882945b73a5d47ce71 (diff)
downloadotakuhub-2e6016922cfeaf32e69f65df8178d71387782e2c.tar.xz
/anime works
Diffstat (limited to 'views')
-rw-r--r--views/anime/index.html.php40
1 files changed, 40 insertions, 0 deletions
diff --git a/views/anime/index.html.php b/views/anime/index.html.php
new file mode 100644
index 0000000..a67fd5e
--- /dev/null
+++ b/views/anime/index.html.php
@@ -0,0 +1,40 @@
+<?php
+$this->styles($this->html->style('anime'));
+?>
+
+<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' => '')) ?>