From 467a1f8635ca93a48024fb80b4b44b4f979a2505 Mon Sep 17 00:00:00 2001 From: raylu Date: Sun, 17 Jul 2011 18:35:17 -0700 Subject: minor style fixes --- views/anime/index.html.php | 2 +- views/anime/view.html.php | 56 ++++++++++++++++++++++++---------------------- views/pages/home.html.php | 8 +++---- webroot/css/search.css | 1 + webroot/css/view.css | 1 + 5 files changed, 36 insertions(+), 32 deletions(-) diff --git a/views/anime/index.html.php b/views/anime/index.html.php index 270ed76..6b1adc0 100644 --- a/views/anime/index.html.php +++ b/views/anime/index.html.php @@ -1,5 +1,5 @@ styles($this->html->style('anime')); +$this->styles($this->html->style('table')); $this->styles($this->html->style('pagination')); ?> diff --git a/views/anime/view.html.php b/views/anime/view.html.php index 11ac437..ce291c5 100644 --- a/views/anime/view.html.php +++ b/views/anime/view.html.php @@ -63,33 +63,35 @@ for ($i = 0; $i < count($anime->genres); $i++) {

-
-

-Cast ↓ -

- -cast); $i++): ?> - 0) echo ' class="char"' ?>> - - - cast[$i]->people)): ?> - cast[$i]->people as $actor): ?> - - - - - - - - -
- cast[$i]->character ?> -
name ?>language ?>
-
- -
+cast) > 1): // why is this 1? ?> +
+

+ Cast ↓ +

+ + cast); $i++): ?> + 0) echo ' class="char"' ?>> + + + cast[$i]->people)): ?> + cast[$i]->people as $actor): ?> + + + + + + + + +
+ cast[$i]->character ?> +
name ?>language ?>
+
+ +
+
diff --git a/views/pages/home.html.php b/views/pages/home.html.php index 53cc58d..227a18b 100644 --- a/views/pages/home.html.php +++ b/views/pages/home.html.php @@ -69,13 +69,13 @@ $this->styles($this->html->style("/css/home.css"));

Why you'll ♡ OtakuHub~


-

For Us By Us

+

For us by us

- Built by Otakus for Otakus, we know what you want, and we work tirelessly to give it to you. + Built by otakus for otakus. We know what you want and we work tirelessly to give it to you.

-

Data Portability

+

Data portability

- Move your data between AnimePlanet AnimeDB or MAL or export your list for your own records + Move your data between AnimePlanet AnimeDB or MAL or export your list for your own records.

Meet others

diff --git a/webroot/css/search.css b/webroot/css/search.css index 20ea164..6ac8596 100644 --- a/webroot/css/search.css +++ b/webroot/css/search.css @@ -19,6 +19,7 @@ p.more a { background: -webkit-linear-gradient(top, #ddd, #bbb); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#dddddd', endColorstr='#bbbbbb'); color: #111; + outline: none; } p.more a:hover { background: #eee; diff --git a/webroot/css/view.css b/webroot/css/view.css index 7d10164..d5734a1 100644 --- a/webroot/css/view.css +++ b/webroot/css/view.css @@ -26,6 +26,7 @@ section#cast a { background: -webkit-linear-gradient(top, #ddd, #bbb); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#dddddd', endColorstr='#bbbbbb'); color: #111; + outline: none; } section#cast a:hover { background: #eee; -- cgit v1.2.3 From 2bd2b4951627ae78631cc292979c84fdff677ba0 Mon Sep 17 00:00:00 2001 From: raylu Date: Sun, 17 Jul 2011 19:10:15 -0700 Subject: move 'related' html out of anime controller --- controllers/AnimeController.php | 12 +++++------- views/anime/view.html.php | 8 +++++++- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/controllers/AnimeController.php b/controllers/AnimeController.php index 3a40cee..4bdacac 100644 --- a/controllers/AnimeController.php +++ b/controllers/AnimeController.php @@ -19,15 +19,13 @@ class AnimeController extends \lithium\action\Controller { if (is_numeric($id)) { $data = Anime::search($id, null, 'special_id'); - $related = $data['anime']->related; - $str = ''; - for ($i = 0; $i < count($related); $i++) + $related = Array(); + foreach ($data['anime']->related as $rid) { - if ($i > 0) $str .= ', '; - $ra = Anime::search($related[$i], null, 'special_id'); - $str .= '' . $ra['anime']->title . ''; + $ra = Anime::search($rid, null, 'special_id'); + $related[$ra['anime']->title] = $rid; } - $data['related'] = $str; + $data['related'] = $related; return $data; } else diff --git a/views/anime/view.html.php b/views/anime/view.html.php index ce291c5..f51e863 100644 --- a/views/anime/view.html.php +++ b/views/anime/view.html.php @@ -48,7 +48,13 @@ for ($i = 0; $i < count($anime->genres); $i++) { } ?>
Duration: episode_duration ?>
Rating: rated ?>
-Related: +Related: 0) $str .= ','; + $str .= ' ' . $keys[$i] . ''; +} ?>

-- cgit v1.2.3 From c62f4d8fb6fb52f10c0c8f16c6faf5d1dd87c2d1 Mon Sep 17 00:00:00 2001 From: raylu Date: Sun, 24 Jul 2011 20:04:48 -0700 Subject: remove unused anime_list index views --- views/anime_list/index.html | 3 -- views/anime_list/index.html.php | 74 ----------------------------------------- 2 files changed, 77 deletions(-) delete mode 100644 views/anime_list/index.html delete mode 100644 views/anime_list/index.html.php diff --git a/views/anime_list/index.html b/views/anime_list/index.html deleted file mode 100644 index ad9911a..0000000 --- a/views/anime_list/index.html +++ /dev/null @@ -1,3 +0,0 @@ -

username ?>'s AnimeList

- - \ No newline at end of file diff --git a/views/anime_list/index.html.php b/views/anime_list/index.html.php deleted file mode 100644 index abe931b..0000000 --- a/views/anime_list/index.html.php +++ /dev/null @@ -1,74 +0,0 @@ -

username ?>'s AnimeList

-
-html->link("Completed", "/animelist/view/$user->username/completed"); ?>
- - -

Watching