From 029073a4ea2badf284d5abccf30044d072b04e46 Mon Sep 17 00:00:00 2001 From: Timothy J Warren Date: Thu, 13 Apr 2017 11:44:03 -0400 Subject: [PATCH] Get images from proxy or cache for Manga views, and Add views --- app/views/manga/cover.php | 2 +- app/views/manga/details.php | 6 +++--- app/views/manga/edit.php | 2 +- public/templates/anime-ajax-search-results.html | 3 ++- public/templates/manga-ajax-search-results.html | 3 ++- src/API/Kitsu/Transformer/MangaListTransformer.php | 1 + src/API/Kitsu/Transformer/MangaTransformer.php | 7 ++++--- 7 files changed, 14 insertions(+), 10 deletions(-) diff --git a/app/views/manga/cover.php b/app/views/manga/cover.php index fc4fa9ad..e334ba74 100644 --- a/app/views/manga/cover.php +++ b/app/views/manga/cover.php @@ -17,7 +17,7 @@ +1 Volume */ ?> - + " />
html(array_shift($item['manga']['titles'])) ?> diff --git a/app/views/manga/details.php b/app/views/manga/details.php index a4dbf48d..7faeb5d6 100644 --- a/app/views/manga/details.php +++ b/app/views/manga/details.php @@ -1,7 +1,7 @@
- <?= $data['title'] ?> cover image + " alt=" cover image" />

@@ -39,7 +39,7 @@ 0): ?>

Characters

- + $char): ?>
diff --git a/public/templates/anime-ajax-search-results.html b/public/templates/anime-ajax-search-results.html index c5a64562..3e9f5682 100644 --- a/public/templates/anime-ajax-search-results.html +++ b/public/templates/anime-ajax-search-results.html @@ -1,8 +1,9 @@ {{#data}}
- img($item['manga']['image']); ?> + img($urlGenerator->assetUrl('images/manga', "{$item['manga']['id']}.jpg")); ?>