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"' ?>>
-
- = $anime->cast[$i]->character ?>
-
-
- cast[$i]->people)): ?>
- cast[$i]->people as $actor): ?>
-
-
- = $actor->name ?>
- = $actor->language ?>
-
-
-
-
-
-
-
-Cast ↑
-
-
+cast) > 1): // why is this 1? ?>
+
+
+ Cast ↓
+
+
+ cast); $i++): ?>
+ 0) echo ' class="char"' ?>>
+
+ = $anime->cast[$i]->character ?>
+
+
+ cast[$i]->people)): ?>
+ cast[$i]->people as $actor): ?>
+
+
+ = $actor->name ?>
+ = $actor->language ?>
+
+
+
+
+
+
+
+ Cast ↑
+
+
+
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++) {
} ?>= $str ?>
Duration: = $anime->episode_duration ?>
Rating: = $anime->rated ?>
-Related: = $related ?>
+Related: 0) $str .= ',';
+ $str .= ' ' . $keys[$i] . ' ';
+} ?>= $str ?>
--
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 @@
-= $user->username ?>'s AnimeList
-
-= print_r($watching); ?>
\ 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 @@
-= $user->username ?>'s AnimeList
-
-= $this->html->link("Completed", "/animelist/view/$user->username/completed"); ?>
-
-
-Watching
-Entry # Anime Title Score Type Progress
-
-
-
- = $i ?>
- = $anime->series_title ?>
- = ($anime->my_score != 0) ? $anime->my_score : "-"; ?>
- = $anime->series_type ?>
- = $anime->my_watched_episodes ?>/= ($anime->series_episodes != 0) ? $anime->series_episodes : "-"; ?>
-
-
-
-
-
-
-
-Plans to Watch
-
-Entry # Anime Title Score Type Progress
-
-
-
- = $i ?>
- = $anime->series_title ?>
- = ($anime->my_score != 0) ? $anime->my_score : "-"; ?>
- = $anime->series_type ?>
- = $anime->my_watched_episodes ?>/= ($anime->series_episodes != 0) ? $anime->series_episodes : "-"; ?>
-
-
-
-
-
-
-
-Paused
-
-Entry # Anime Title Score Type Progress
-
-
-
- = $i ?>
- = $anime->series_title ?>
- = ($anime->my_score != 0) ? $anime->my_score : "-"; ?>
- = $anime->series_type ?>
- = $anime->my_watched_episodes ?>/= ($anime->series_episodes != 0) ? $anime->series_episodes : "-"; ?>
-
-
-
-
-
-
-
-Dropped
-
-Entry # Anime Title Score Type Progress
-
-
-
- = $i ?>
- = $anime->series_title ?>
- = ($anime->my_score != 0) ? $anime->my_score : "-"; ?>
- = $anime->series_type ?>
- = $anime->my_watched_episodes ?>/= ($anime->series_episodes != 0) ? $anime->series_episodes : "-"; ?>
-
-
-
-
-
\ No newline at end of file
--
cgit v1.2.3
From db1e0926ca3055f49234dacb168b2122c1da9191 Mon Sep 17 00:00:00 2001
From: raylu
Date: Sun, 24 Jul 2011 20:05:13 -0700
Subject: add sweet cast table animations
---
webroot/js/functions.js | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/webroot/js/functions.js b/webroot/js/functions.js
index 5f7d7ae..19cef9b 100644
--- a/webroot/js/functions.js
+++ b/webroot/js/functions.js
@@ -18,14 +18,14 @@ jQuery(document).ready(function($) {
function toggleCast() {
var table = $('#cast table');
- if (table.css('display') == 'block') {
- table.css('display', 'none');
- $('#cast > p > a').text('Cast ↓');
- $('#castlink').css('display', 'none');
- } else {
- table.css('display', 'block');
+ if (table.css('display') == 'none') {
+ table.show(500);
$('#cast > p > a').text('Cast ↑');
$('#castlink').css('display', 'block');
+ } else {
+ table.hide(500);
+ $('#cast > p > a').text('Cast ↓');
+ $('#castlink').css('display', 'none');
}
return false;
}
--
cgit v1.2.3
From bb06d45da99d1a551979f6f694a5bed4d02673c4 Mon Sep 17 00:00:00 2001
From: raylu
Date: Sun, 24 Jul 2011 20:35:59 -0700
Subject: add 'add' button on anime view page
logged out users will be redirected anyway
---
views/anime/view.html.php | 23 ++++++++++++++---------
webroot/css/view.css | 4 ++--
2 files changed, 16 insertions(+), 11 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 .= ' ' . $keys[$i] . ' ';
} ?>= $str ?>
-
-
-MAL Stats
-Score: = $anime->mal_score ?>
-Votes: = $anime->mal_score_voted ?>
-Ranked: = $anime->mal_rank ?>
-Popularity: = $anime->mal_popularity ?>
-Members: = $anime->mal_score ?>
+Add
-
cast) > 1): // why is this 1? ?>
@@ -99,6 +91,19 @@ for ($i = 0; $i < count($keys); $i++) {
+
+
+
+MAL Stats
+
+Score: = $anime->mal_score ?>
+Votes: = $anime->mal_score_voted ?>
+Ranked: = $anime->mal_rank ?>
+Popularity: = $anime->mal_popularity ?>
+Members: = $anime->mal_score ?>
+
+
+
Synopsis
diff --git a/webroot/css/view.css b/webroot/css/view.css
index d5734a1..5d5db7d 100644
--- a/webroot/css/view.css
+++ b/webroot/css/view.css
@@ -15,7 +15,7 @@ section#cast {
float: left;
width: 620px;
}
-section#cast a {
+section#cast a, #add {
padding: 4px 7px;
border: 1px solid #aaa;
-moz-border-radius: 3px;
@@ -28,7 +28,7 @@ section#cast a {
color: #111;
outline: none;
}
-section#cast a:hover {
+section#cast a:hover, #add:hover {
background: #eee;
background: -moz-linear-gradient(top, #eee, #ccc);
background: -webkit-linear-gradient(top, #eee, #ccc);
--
cgit v1.2.3