summaryrefslogtreecommitdiffstats
path: root/views/search
diff options
context:
space:
mode:
authorraylu <raylu@mixpanel.com>2011-07-16 21:27:12 -0700
committerraylu <raylu@mixpanel.com>2011-07-16 21:27:12 -0700
commit3404aebda95c78a98e477c120354f20891f55c7b (patch)
treec00b0f0ff1c47f9134bc6987a7e3bcfea53a7aca /views/search
parent30bd3dc2c8e1dea9fb394115138f4f5ef9aedc33 (diff)
downloadotakuhub-3404aebda95c78a98e477c120354f20891f55c7b.tar.xz
search page styling
Diffstat (limited to 'views/search')
-rw-r--r--views/search/anime.html.php1
-rw-r--r--views/search/index.html.php36
2 files changed, 27 insertions, 10 deletions
diff --git a/views/search/anime.html.php b/views/search/anime.html.php
index 94acb84..7fbb6d8 100644
--- a/views/search/anime.html.php
+++ b/views/search/anime.html.php
@@ -1,6 +1,7 @@
<?php
$this->styles($this->html->style('pagination'));
$this->styles($this->html->style('table'));
+$this->styles($this->html->style('search'));
?>
<?= $this->_render('element', 'search') ?>
diff --git a/views/search/index.html.php b/views/search/index.html.php
index a05f269..f8889e2 100644
--- a/views/search/index.html.php
+++ b/views/search/index.html.php
@@ -1,15 +1,31 @@
<?php
$this->styles($this->html->style('table'));
+$this->styles($this->html->style('search'));
?>
-<h3>Anime</h3>
+<?= $this->_render('element', 'search') ?>
+
+<h2 class="ribbon">Anime</h2>
+<div class="triangle-ribbon"></div>
<?= $this->_render('element', 'animetable', compact('anime')) ?>
-<?= $this->html->link("More", array('controller' => 'search',
- 'action' => 'anime')); ?>
-<h3>Manga</h3>
-<?= $this->html->link("More", array('controller' => 'search',
- 'action' => 'anime')); ?>
-
-<h3>K Drama</h3>
-<?= $this->html->link("More", array('controller' => 'search',
- 'action' => 'anime')); ?>
+<p class="more">
+<a href="/search/anime/<?= $q ?>">More</a>
+</p>
+
+<h2 class="ribbon">Manga</h2>
+<div class="triangle-ribbon"></div>
+<p>results</p>
+<?php if(count($manga) > 0): ?>
+<p class="more">
+<a href="/search/manga/<?= $q ?>">More</a>
+</p>
+<?php endif ?>
+
+<h2 class="ribbon">K-Drama</h2>
+<div class="triangle-ribbon"></div>
+<p>results</p>
+<?php if(count($kdrama) > 0): ?>
+<p class="more">
+<a href="/search/kdrama/<?= $q ?>">More</a>
+</p>
+<?php endif ?>