mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-08 06:00:51 -07:00
Revert "Info pages"
This commit is contained in:
parent
3d5706002d
commit
2d19accdd1
3 changed files with 27 additions and 54 deletions
|
@ -23,7 +23,7 @@ select {
|
||||||
outline: none;
|
outline: none;
|
||||||
}
|
}
|
||||||
select.input-sm {
|
select.input-sm {
|
||||||
margin: 5px 0 5px 0;
|
margin: 5px 0 5px 0;
|
||||||
border: 2px solid #444;
|
border: 2px solid #444;
|
||||||
background: #333;
|
background: #333;
|
||||||
-webkit-border-radius: 2px;
|
-webkit-border-radius: 2px;
|
||||||
|
@ -34,8 +34,8 @@ select.input-sm {
|
||||||
}
|
}
|
||||||
img {
|
img {
|
||||||
-webkit-box-sizing: content-box;
|
-webkit-box-sizing: content-box;
|
||||||
-moz-box-sizing: content-box;
|
-moz-box-sizing: content-box;
|
||||||
box-sizing: content-box;
|
box-sizing: content-box;
|
||||||
}
|
}
|
||||||
.navbar {
|
.navbar {
|
||||||
background: #000;
|
background: #000;
|
||||||
|
@ -792,11 +792,6 @@ input[type="color"],
|
||||||
width: 174px;
|
width: 174px;
|
||||||
height: 260px;
|
height: 260px;
|
||||||
}
|
}
|
||||||
.summary-content-poster a:hover .poster-face {
|
|
||||||
webkit-box-shadow: inset 0 0 0 2px #e9a049;
|
|
||||||
-moz-box-shadow: inset 0 0 0 2px #e9a049;
|
|
||||||
box-shadow: inset 0 0 0 2px #e9a049;
|
|
||||||
}
|
|
||||||
.summary-content-poster img {
|
.summary-content-poster img {
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
@ -848,13 +843,6 @@ input[type="color"],
|
||||||
line-height: 32px;
|
line-height: 32px;
|
||||||
float: left;
|
float: left;
|
||||||
}
|
}
|
||||||
.summary-content-title h1 a{
|
|
||||||
color: #F9AA03;
|
|
||||||
}
|
|
||||||
.summary-content-title h1 a:hover{
|
|
||||||
color: #F9AA03;
|
|
||||||
text-decoration: underline;
|
|
||||||
}
|
|
||||||
.summary-content-details-wrapper {
|
.summary-content-details-wrapper {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding-bottom: 15px;
|
padding-bottom: 15px;
|
||||||
|
@ -921,8 +909,6 @@ input[type="color"],
|
||||||
}
|
}
|
||||||
.summary-content-people-wrapper {
|
.summary-content-people-wrapper {
|
||||||
margin-top: 25px;
|
margin-top: 25px;
|
||||||
margin-right: 25px;
|
|
||||||
float: left;
|
|
||||||
}
|
}
|
||||||
.summary-content-people-wrapper hidden-phone hidden-tablet {
|
.summary-content-people-wrapper hidden-phone hidden-tablet {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|
|
@ -54,18 +54,10 @@ DOCUMENTATION :: END
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-9">
|
<div class="col-md-9">
|
||||||
<div class="summary-content-poster hidden-xs hidden-sm">
|
<div class="summary-content-poster hidden-xs hidden-sm">
|
||||||
% if data['type'] == 'episode':
|
% if data['type'] == 'episode' and data['parent_thumb']:
|
||||||
<a href="info?item_id=${data['parent_rating_key']}">
|
<div class="poster-face" style="background-image: url(pms_image_proxy?img=${data['parent_thumb']}&width=300&height=450&fallback=poster);"></div>
|
||||||
% if data['parent_thumb']:
|
% elif data['type'] == 'episode':
|
||||||
<div class="poster-face" style="background-image: url(pms_image_proxy?img=${data['parent_thumb']}&width=300&height=450&fallback=poster);"></div>
|
<div class="poster-face" style="background-image: url(pms_image_proxy?img=${data['grandparent_thumb']}&width=300&height=450&fallback=poster);"></div>
|
||||||
% else:
|
|
||||||
<div class="poster-face" style="background-image: url(pms_image_proxy?img=${data['grandparent_thumb']}&width=300&height=450&fallback=poster);"></div>
|
|
||||||
%endif
|
|
||||||
</a>
|
|
||||||
% elif data['type'] == 'season':
|
|
||||||
<a href="info?item_id=${data['parent_rating_key']}">
|
|
||||||
<div class="poster-face" style="background-image: url(pms_image_proxy?img=${data['thumb']}&width=300&height=450&fallback=poster);"></div>
|
|
||||||
</a>
|
|
||||||
% else:
|
% else:
|
||||||
<div class="poster-face" style="background-image: url(pms_image_proxy?img=${data['thumb']}&width=300&height=450&fallback=poster);"></div>
|
<div class="poster-face" style="background-image: url(pms_image_proxy?img=${data['thumb']}&width=300&height=450&fallback=poster);"></div>
|
||||||
% endif
|
% endif
|
||||||
|
@ -75,10 +67,10 @@ DOCUMENTATION :: END
|
||||||
% if data['type'] == 'movie':
|
% if data['type'] == 'movie':
|
||||||
<h1>${data['title']}</h1>
|
<h1>${data['title']}</h1>
|
||||||
% elif data['type'] == 'season':
|
% elif data['type'] == 'season':
|
||||||
<h1><a href="info?item_id=${data['parent_rating_key']}">${data['parent_title']}</a> (${data['title']})</h1>
|
<h1>${data['parent_title']} (${data['title']})</h1>
|
||||||
% elif data['type'] == 'episode':
|
% elif data['type'] == 'episode':
|
||||||
<h1><a href="info?item_id=${data['grandparent_rating_key']}">${data['grandparent_title']}</a> - ${data['title']}
|
<h1>${data['grandparent_title']} - ${data['title']}
|
||||||
(<a href="info?item_id=${data['parent_rating_key']}">Season ${data['parent_index']}</a>, Episode ${data['index']})</h1>
|
(Season ${data['parent_index']}, Episode ${data['index']})</h1>
|
||||||
% else:
|
% else:
|
||||||
<h1>${data['title']}</h1>
|
<h1>${data['title']}</h1>
|
||||||
% endif
|
% endif
|
||||||
|
@ -123,6 +115,20 @@ DOCUMENTATION :: END
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
<div class="summary-content-people-wrapper hidden-xs hidden-sm">
|
<div class="summary-content-people-wrapper hidden-xs hidden-sm">
|
||||||
|
% if (data['type'] == 'movie' or data['type'] == 'show') and data['genres']:
|
||||||
|
<div class="summary-content-genres">
|
||||||
|
<strong>Genres</strong>
|
||||||
|
<ul>
|
||||||
|
% for genre in data['genres']:
|
||||||
|
% if loop.index < 5:
|
||||||
|
<li>
|
||||||
|
${genre}
|
||||||
|
</li>
|
||||||
|
% endif
|
||||||
|
% endfor
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
% endif
|
||||||
% if (data['type'] == 'episode' or data['type'] == 'movie') and data['writers']:
|
% if (data['type'] == 'episode' or data['type'] == 'movie') and data['writers']:
|
||||||
<div class="summary-content-writers">
|
<div class="summary-content-writers">
|
||||||
<strong>Written by</strong>
|
<strong>Written by</strong>
|
||||||
|
@ -152,22 +158,6 @@ DOCUMENTATION :: END
|
||||||
</div>
|
</div>
|
||||||
% endif
|
% endif
|
||||||
</div>
|
</div>
|
||||||
<div class="summary-content-people-wrapper hidden-xs hidden-sm">
|
|
||||||
% if (data['type'] == 'movie' or data['type'] == 'show') and data['genres']:
|
|
||||||
<div class="summary-content-genres">
|
|
||||||
<strong>Genres</strong>
|
|
||||||
<ul>
|
|
||||||
% for genre in data['genres']:
|
|
||||||
% if loop.index < 5:
|
|
||||||
<li>
|
|
||||||
${genre}
|
|
||||||
</li>
|
|
||||||
% endif
|
|
||||||
% endfor
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
% endif
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -342,8 +332,8 @@ DOCUMENTATION :: END
|
||||||
</script>
|
</script>
|
||||||
% endif
|
% endif
|
||||||
<script>
|
<script>
|
||||||
$("#airdate").html(moment($("#airdate").text()).format('MMM DD, YYYY'));
|
$("#airdate").html(moment($("#airdate")).format('MMM DD, YYYY'));
|
||||||
$("#runtime").html(millisecondsToMinutes($("#runtime").text(), true));
|
$("#runtime").html(millisecondsToMinutes($("#runtime").html(), true));
|
||||||
</script>
|
</script>
|
||||||
% endif
|
% endif
|
||||||
</%def>
|
</%def>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# This file is part of PlexPy.
|
# This file is part of PlexPy.
|
||||||
#
|
#
|
||||||
# PlexPy is free software: you can redistribute it and/or modify
|
# PlexPy is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU General Public License as published by
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
@ -334,8 +334,6 @@ class PmsConnect(object):
|
||||||
elif metadata_type == 'episode':
|
elif metadata_type == 'episode':
|
||||||
metadata = {'type': metadata_type,
|
metadata = {'type': metadata_type,
|
||||||
'rating_key': helpers.get_xml_attr(metadata_main, 'ratingKey'),
|
'rating_key': helpers.get_xml_attr(metadata_main, 'ratingKey'),
|
||||||
'parent_rating_key': helpers.get_xml_attr(metadata_main, 'parentRatingKey'),
|
|
||||||
'grandparent_rating_key': helpers.get_xml_attr(metadata_main, 'grandparentRatingKey'),
|
|
||||||
'grandparent_title': helpers.get_xml_attr(metadata_main, 'grandparentTitle'),
|
'grandparent_title': helpers.get_xml_attr(metadata_main, 'grandparentTitle'),
|
||||||
'parent_index': helpers.get_xml_attr(metadata_main, 'parentIndex'),
|
'parent_index': helpers.get_xml_attr(metadata_main, 'parentIndex'),
|
||||||
'parent_title': helpers.get_xml_attr(metadata_main, 'parentTitle'),
|
'parent_title': helpers.get_xml_attr(metadata_main, 'parentTitle'),
|
||||||
|
@ -396,7 +394,6 @@ class PmsConnect(object):
|
||||||
show_details = self.get_metadata_details(parent_rating_key)
|
show_details = self.get_metadata_details(parent_rating_key)
|
||||||
metadata = {'type': metadata_type,
|
metadata = {'type': metadata_type,
|
||||||
'rating_key': helpers.get_xml_attr(metadata_main, 'ratingKey'),
|
'rating_key': helpers.get_xml_attr(metadata_main, 'ratingKey'),
|
||||||
'parent_rating_key': helpers.get_xml_attr(metadata_main, 'parentRatingKey'),
|
|
||||||
'grandparent_title': helpers.get_xml_attr(metadata_main, 'grandparentTitle'),
|
'grandparent_title': helpers.get_xml_attr(metadata_main, 'grandparentTitle'),
|
||||||
'parent_index': helpers.get_xml_attr(metadata_main, 'parentIndex'),
|
'parent_index': helpers.get_xml_attr(metadata_main, 'parentIndex'),
|
||||||
'parent_title': helpers.get_xml_attr(metadata_main, 'parentTitle'),
|
'parent_title': helpers.get_xml_attr(metadata_main, 'parentTitle'),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue