summaryrefslogtreecommitdiffstats
path: root/views
diff options
context:
space:
mode:
authorraylu <raylu@mixpanel.com>2011-07-24 20:35:59 -0700
committerraylu <raylu@mixpanel.com>2011-07-24 20:35:59 -0700
commitbb06d45da99d1a551979f6f694a5bed4d02673c4 (patch)
tree126f4e9def064aeda90b60f510733cd100ac6318 /views
parentdb1e0926ca3055f49234dacb168b2122c1da9191 (diff)
downloadotakuhub-bb06d45da99d1a551979f6f694a5bed4d02673c4.tar.xz
add 'add' button on anime view page
logged out users will be redirected anyway
Diffstat (limited to 'views')
-rw-r--r--views/anime/view.html.php23
1 files changed, 14 insertions, 9 deletions
diff --git a/views/anime/view.html.php b/views/anime/view.html.php
index f51e863..11a1f75 100644
--- a/views/anime/view.html.php
+++ b/views/anime/view.html.php
@@ -56,18 +56,10 @@ for ($i = 0; $i < count($keys); $i++) {
$str .= ' <a href="/anime/view/' . $related[$keys[$i]] . '">' . $keys[$i] . '</a>';
} ?><?= $str ?>
</p>
-</section>
-<aside id="malstats">
-<h2>MAL Stats</h2>
<p>
-<b>Score:</b> <?= $anime->mal_score ?><br>
-<b>Votes:</b> <?= $anime->mal_score_voted ?><br>
-<b>Ranked:</b> <?= $anime->mal_rank ?><br>
-<b>Popularity:</b> <?= $anime->mal_popularity ?><br>
-<b>Members:</b> <?= $anime->mal_score ?>
+<a href="/animelist/add/<?= $anime->special_id ?>" id="add">Add</a>
</p>
-</aside>
<?php if (count($anime->cast) > 1): // why is this 1? ?>
<section id="cast">
@@ -99,6 +91,19 @@ for ($i = 0; $i < count($keys); $i++) {
</section>
<?php endif; ?>
+</section>
+
+<aside id="malstats">
+<h2>MAL Stats</h2>
+<p>
+<b>Score:</b> <?= $anime->mal_score ?><br>
+<b>Votes:</b> <?= $anime->mal_score_voted ?><br>
+<b>Ranked:</b> <?= $anime->mal_rank ?><br>
+<b>Popularity:</b> <?= $anime->mal_popularity ?><br>
+<b>Members:</b> <?= $anime->mal_score ?>
+</p>
+</aside>
+
<br class="cl">
<h2 class="ribbon">Synopsis</h2>