From f84c4ca73c98c63536b3ec3506a126d1e31d5efa Mon Sep 17 00:00:00 2001
From: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com>
Date: Fri, 2 Oct 2020 21:58:13 -0700
Subject: [PATCH] Add thumb popover to lists on info page
---
data/interfaces/default/css/tautulli.css | 2 +-
.../default/info_children_list.html | 57 +++++++++++++++----
2 files changed, 47 insertions(+), 12 deletions(-)
diff --git a/data/interfaces/default/css/tautulli.css b/data/interfaces/default/css/tautulli.css
index 63f2ed43..31a79cf7 100644
--- a/data/interfaces/default/css/tautulli.css
+++ b/data/interfaces/default/css/tautulli.css
@@ -1971,7 +1971,7 @@ a:hover .summary-poster-face-track .summary-poster-face-overlay span {
overflow: auto;
}
.item-children-instance.max-height {
- max-height: 875px;
+ max-height: 700px;
}
.item-children-instance li {
float: left;
diff --git a/data/interfaces/default/info_children_list.html b/data/interfaces/default/info_children_list.html
index 3f470a94..5be46e83 100644
--- a/data/interfaces/default/info_children_list.html
+++ b/data/interfaces/default/info_children_list.html
@@ -32,7 +32,7 @@ DOCUMENTATION :: END
%>
% if data['children_count'] > 0:
- <% max_height ='max-height' if data['children_type'] == 'photo' or media_type == 'playlist' else '' %>
+ <% max_height ='max-height' if data['children_type'] in ('track', 'photo') or media_type == 'playlist' else '' %>
% for child in data['children_list']:
% if child['rating_key']:
@@ -129,7 +129,11 @@ DOCUMENTATION :: END
${child['media_index']}
- ${child['title']}
+
+
+ ${child['title']}
+
+
% if child['original_title']:
- ${child['original_title']}
% endif
@@ -151,7 +155,11 @@ DOCUMENTATION :: END
% else:
% endif
- ${child['title']}
+
+
+ ${child['title']}
+
+
% if child['duration']:
@@ -168,42 +176,58 @@ DOCUMENTATION :: END
% if child['media_type'] == 'movie':
- ${child['title']}
+
+ ${child['title']}
+
(${child['year']})
% elif child['media_type'] == 'episode':
- ${child['grandparent_title']}
+
+ ${child['grandparent_title']}
+
-
- ${child['title']}
+
+ ${child['title']}
+
(S${child['parent_media_index']} · E${child['media_index']})
% elif child['media_type'] == 'track':
- ${child['title']}
+
+ ${child['title']}
+
-
- ${child['grandparent_title']}
+
+ ${child['grandparent_title']}
+
(${child['parent_title']})
% elif child['media_type'] == 'photo':
- ${child['title']}
+
+ ${child['title']}
+
% if child['grandparent_title']:
-
- ${child['grandparent_title']}
+
+ ${child['grandparent_title']}
+
% endif
(${child['parent_title']})
% elif child['media_type'] == 'clip':
- ${child['title']}
+
+ ${child['title']}
+
(${child['parent_title']})
% endif
@@ -226,6 +250,17 @@ DOCUMENTATION :: END
selector: '[data-toggle="tooltip"]',
container: 'body'
});
+ $('body').popover({
+ selector: '[data-toggle="popover"]',
+ html: true,
+ container: 'body',
+ trigger: 'hover',
+ placement: 'right',
+ template: '',
+ content: function () {
+ return '';
+ }
+ });
% endif
% endif