diff --git a/app/views/anime/details.php b/app/views/anime/details.php
index f7d4b313..7860abf8 100644
--- a/app/views/anime/details.php
+++ b/app/views/anime/details.php
@@ -17,6 +17,13 @@ use function Aviat\AnimeClient\getLocalImg;
Show Type |
= (strlen($data['show_type']) > 3) ? ucfirst(strtolower($data['show_type'])) : $data['show_type'] ?> |
@@ -122,8 +129,8 @@ use function Aviat\AnimeClient\getLocalImg;
= $link['meta']['name'] ?>
- = implode(', ', $link['subs']) ?> |
- = implode(', ', $link['dubs']) ?> |
+ = implode(', ', array_map(fn ($sub) => Locale::getDisplayLanguage($sub, 'en'), $link['subs'])) ?> |
+ = implode(', ', array_map(fn ($dub) => Locale::getDisplayLanguage($dub, 'en'), $link['dubs'])) ?> |
diff --git a/frontEndSrc/css/src/general.css b/frontEndSrc/css/src/general.css
index 29efb1f5..9d00cff3 100644
--- a/frontEndSrc/css/src/general.css
+++ b/frontEndSrc/css/src/general.css
@@ -628,6 +628,14 @@ picture.cover {
background-size: contain;
background-repeat: no-repeat;
}
+/* There are two .name elements, just darken them both in this case! */
+.media.search.disabled .name {
+ background-color: #000;
+ background-color: rgba(0, 0, 0, 0.75);
+ background-size: cover;
+ background-size: contain;
+ background-repeat: no-repeat;
+}
.media.search > .row {
z-index: 6;
diff --git a/frontEndSrc/js/anime.js b/frontEndSrc/js/anime.js
index 77ec194b..f82a496a 100644
--- a/frontEndSrc/js/anime.js
+++ b/frontEndSrc/js/anime.js
@@ -1,5 +1,5 @@
import _ from './anime-client.js'
-import { renderAnimeSearchResults } from './template-helpers.js'
+import { renderSearchResults } from './template-helpers.js'
const search = (query) => {
// Show the loader
@@ -13,7 +13,7 @@ const search = (query) => {
_.hide('.cssload-loader');
// Show the results
- _.$('#series-list')[ 0 ].innerHTML = renderAnimeSearchResults(searchResults);
+ _.$('#series-list')[ 0 ].innerHTML = renderSearchResults('anime', searchResults);
});
};
diff --git a/frontEndSrc/js/manga.js b/frontEndSrc/js/manga.js
index 21992d26..d07907bb 100644
--- a/frontEndSrc/js/manga.js
+++ b/frontEndSrc/js/manga.js
@@ -1,12 +1,12 @@
import _ from './anime-client.js'
-import { renderMangaSearchResults } from './template-helpers.js'
+import { renderSearchResults } from './template-helpers.js'
const search = (query) => {
_.show('.cssload-loader');
return _.get(_.url('/manga/search'), { query }, (searchResults, status) => {
searchResults = JSON.parse(searchResults);
_.hide('.cssload-loader');
- _.$('#series-list')[ 0 ].innerHTML = renderMangaSearchResults(searchResults);
+ _.$('#series-list')[ 0 ].innerHTML = renderSearchResults('manga', searchResults);
});
};
diff --git a/frontEndSrc/js/template-helpers.js b/frontEndSrc/js/template-helpers.js
index 33bdeb5c..55c33aa8 100644
--- a/frontEndSrc/js/template-helpers.js
+++ b/frontEndSrc/js/template-helpers.js
@@ -7,52 +7,55 @@ _.on('main', 'change', '.big-check', (e) => {
document.getElementById(`mal_${id}`).checked = true;
});
-export function renderAnimeSearchResults (data) {
- return data.map(item => {
- const titles = item.titles.join('