Added the new labels to the search

pull/1011/head
tidusjar 8 years ago
parent a1eb944f83
commit ef0bc77771

@ -472,9 +472,10 @@ $(function () {
approved: result.approved, approved: result.approved,
available: result.available, available: result.available,
url: result.plexUrl, url: result.plexUrl,
trailer: result.trailer, trailer: result.trailer,
homepage: result.homepage, homepage: result.homepage,
releaseDate: Humanize(result.releaseDate) releaseDate: Humanize(result.releaseDate),
status: result.status
}; };
return context; return context;

@ -283,7 +283,7 @@
</script> </script>
<!-- Movie and TV Results template --> <!-- Movie and TV Results template -->
<script id="search-template" type="text/x-handlebars-template"> <script id="search-template" type="text/x-handlebars-template">
<div class="row"> <div class="row">
<div id="{{id}}imgDiv" class="col-sm-2"> <div id="{{id}}imgDiv" class="col-sm-2">
@ -299,28 +299,30 @@
{{/if_eq}} {{/if_eq}}
</div> </div>
<div class="col-sm-5 "> <div class="col-sm-8">
<div> <div>
{{#if_eq type "movie"}} {{#if_eq type "movie"}}
<a href="https://www.themoviedb.org/movie/{{id}}/" target="_blank"> <a href="https://www.themoviedb.org/movie/{{id}}/" target="_blank">
<h4>{{title}} ({{year}})</h4> <h4>{{title}} ({{year}})</h4>
</a> </a>
{{else}} {{else}}
<a href="http://www.imdb.com/title/{{imdb}}/" target="_blank"> <h4>
<h4>{{title}} ({{year}})</h4> <a href="http://www.imdb.com/title/{{imdb}}/" target="_blank">
</a> {{title}} ({{year}})
</a>{{#if status}}<span class="label label-primary" style="font-size:60%" target="_blank">{{status}}</span>{{/if}}
</h4>
{{/if_eq}} {{/if_eq}}
{{#if status}} {{#if status}}
<span class="label label-info" target="_blank">{{status}}</span> <span class="label label-info" target="_blank">{{status}}</span>
{{/if}} {{/if}}
{{#if homepage}}
<a href="{{homepage}}" target="_blank"><span class="label label-info">HomePage</span></a>
{{/if}}
{{#if trailer}}
<a href="{{trailer}}" target="_blank"><span class="label label-info">Trailer</span></a>
{{/if}}
{{#if firstAired}} {{#if firstAired}}
<span class="label label-info" target="_blank">First Aired: {{firstAired}}</span> <span class="label label-info" target="_blank">Air Date: {{firstAired}}</span>
{{/if}}
{{#if releaseDate}}
<span class="label label-info" target="_blank">Release Date: {{releaseDate}}</span>
{{/if}} {{/if}}
{{#if available}} {{#if available}}
<span class="label label-success">@UI.Search_Available_on_plex</span> <span class="label label-success">@UI.Search_Available_on_plex</span>
@ -334,14 +336,22 @@
{{/if}} {{/if}}
{{/if}} {{/if}}
<span id="{{id}}netflixTab"></span> <span id="{{id}}netflixTab"></span>
{{#if homepage}}
<a href="{{homepage}}" target="_blank"><span class="label label-info">HomePage</span></a>
{{/if}}
{{#if trailer}}
<a href="{{trailer}}" target="_blank"><span class="label label-info">Trailer</span></a>
{{/if}}
<br /> <br />
<br /> <br />
</div> </div>
<p>{{overview}}</p> <p style="font-size:0.9rem !important">{{overview}}</p>
</div> </div>
<div class="col-sm-2 col-sm-push-3"> <div class="col-sm-2">
<form method="POST" action="@url/search/request/{{type}}" id="form{{id}}"> <form method="POST" action="@url/search/request/{{type}}" id="form{{id}}">
<input name="{{type}}Id" type="text" value="{{id}}" hidden="hidden" /> <input name="{{type}}Id" type="text" value="{{id}}" hidden="hidden" />
{{#if_eq type "movie"}} {{#if_eq type "movie"}}

Loading…
Cancel
Save