pull/963/head
Jamie.Rees 8 years ago
parent 9886c40499
commit d17c0ef88a

@ -480,7 +480,7 @@ $(function () {
var date = new Date(result.firstAired); var date = new Date(result.firstAired);
var year = date.getFullYear(); var year = date.getFullYear();
var context = { var context = {
status : result.status, status: result.status,
posterPath: result.banner, posterPath: result.banner,
id: result.id, id: result.id,
title: result.seriesName, title: result.seriesName,
@ -499,8 +499,9 @@ $(function () {
disableTvRequestsBySeason: result.disableTvRequestsBySeason, disableTvRequestsBySeason: result.disableTvRequestsBySeason,
enableTvRequestsForOnlySeries: result.enableTvRequestsForOnlySeries, enableTvRequestsForOnlySeries: result.enableTvRequestsForOnlySeries,
trailer: result.trailer, trailer: result.trailer,
homepage: result.homepage homepage: result.homepage,
}; firstAired: Humanize(result.firstAired)
};
return context; return context;
} }

@ -118,7 +118,7 @@
} }
<!-- 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">
@ -129,7 +129,7 @@
{{/if_eq}} {{/if_eq}}
{{#if_eq type "tv"}} {{#if_eq type "tv"}}
{{#if posterPath}} {{#if posterPath}}
<img class="img-responsive" width="150" src="{{posterPath}}" alt="poster"> <img class="img-responsive" width="150" src="{{posterPath}}" alt="poster">
{{/if}} {{/if}}
{{/if_eq}} {{/if_eq}}
@ -154,6 +154,9 @@
{{#if trailer}} {{#if trailer}}
<a href="{{trailer}}" target="_blank"><span class="label label-info">Trailer</span></a> <a href="{{trailer}}" target="_blank"><span class="label label-info">Trailer</span></a>
{{/if}} {{/if}}
{{#if firstAired}}
<span class="label label-info" target="_blank">First Aired: {{firstAired}}</span>
{{/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>
{{else}} {{else}}

Loading…
Cancel
Save