Change clean up

This commit is contained in:
JackDandy 2024-06-16 17:05:11 +01:00
parent a6122aae66
commit 84d1d81d45
3 changed files with 29 additions and 17 deletions

View file

@ -23,6 +23,7 @@
* Change growl notifier location for Apprise update refactor
* Change systemd remove py2 and add basic hardening options
* Change alphabetically sort list at edit show/Exclude global ignore/require words
* Add search on TVmaze, TMDb, or Trakt for other shows with the actor that is viewed on Person page
### 3.31.1 (2024-06-14 01:00:00 UTC)

View file

@ -146,15 +146,17 @@ def param(visible=True, rid=None, cache_person=None, cache_char=None, person=Non
#end if
<style>
#vitals{clear:both}
.vitals{clear:both}
.details-title{width:90px !important}
.details-info{margin-left:95px !important}
.details-info.akas{max-height:100px; overflow:auto; min-width:300px; word-break:normal}
.details-info i{font-style:normal; font-size:smaller}
.links{display:block; padding:0}
.links{display:block; padding:0; margin:3px 0 0}
.links li{display: inline-block; padding:0 10px 0 0}
.links img{margin-bottom: -1px; vertical-align:initial}
</style>
<div class="#vitals" data-birthdate="$person.birthday" data-deathdate="$person.deathday">
<div class="vitals" data-birthdate="$person.birthday" data-deathdate="$person.deathday">
#if $person.real_name
<div><span class="details-title">Real name</span><span class="details-info">$person.real_name</span></div>
#end if
@ -209,14 +211,21 @@ def param(visible=True, rid=None, cache_person=None, cache_char=None, person=Non
</span>
</div>
#end if
#if $person.ids.get($TVINFO_TRAKT)
<div></div><span><a href="$sbRoot/add-shows/trakt-person?person_trakt_id=$person.ids.get($TVINFO_TRAKT)">Search Shows on Trake</a></span></div>
#set $src = (($TVINFO_TVMAZE, 'tvm'), ($TVINFO_TMDB, 'tmdb'), ($TVINFO_TRAKT, 'trakt'))
#if any([$person.ids.get($cur_src) for ($cur_src, _) in $src])
<div>
<span class="details-title">Other shows</span>
<span class="details-info">
<ul class="links">
#for ($cur_src, $cur_api) in $src
#if $person.ids.get($cur_src)
<img alt="$TVInfoAPI($cur_src).name" height="16" width="16" src="$sbRoot/images/$TVInfoAPI($cur_src).config['icon']">#slurp
<li><a href="$sbRoot/add-shows/${cur_api}-person?person_${cur_api}_id=$person.ids.get($cur_src)">$TVInfoAPI($cur_src).name</a></li>
#end if
#if $person.ids.get($TVINFO_TMDB)
<div><span><a href="$sbRoot/add-shows/tmdb-person?person_tmdb_id=$person.ids.get($TVINFO_TMDB)">Search Shows on TMDB</a></span></div>
#end if
#if $person.ids.get($TVINFO_TVMAZE)
<div><span><a href="$sbRoot/add-shows/tvm-person?person_tvm_id=$person.ids.get($TVINFO_TVMAZE)">Search Shows on TVMaze</a></span></div>
#end for
</ul>
</span>
</div>
#end if
</div>

View file

@ -464,17 +464,19 @@ $(document).ready(function(){
<input id="search_show_name" class="search form-control form-control-inline input-sm input200" type="search" placeholder="Filter Show Name#if $use_network#/Network#end if#">
&nbsp;<button type="button" class="resetshows btn btn-inline">Reset Filter</button>
</div>
#if $p_ref
<div class="browse-image">
<a class="browse-image" href="$sbRoot/imagecache/person?pid=$p_ref&thumb=1" rel="dialog"><img src="$sbRoot/imagecache/person?pid=$p_ref&thumb=0" class="browse-image"></a>
</div>
#end if
<h4 style="float:left;margin:0 0 0 2px">$browse_title</h4>
#if $kwargs and $kwargs.get('oldest')
<div class="grey-text" style="clear:left;margin-left:2px;font-size:0.85em">
First aired from $kwargs['oldest'] until $kwargs['newest']
</div>
#end if
#if $p_ref
<div class="browse-image" style="margin: 10px 2px 30px; border-radius: 5px">
<a class="browse-image" href="$sbRoot/imagecache/person?pid=$p_ref&thumb=1" rel="dialog"><img class="browse-image" src="$sbRoot/imagecache/person?pid=$p_ref&thumb=0"></a>
</div>
#end if
#end if
<div id="container">