Added year to seaarch results
This commit is contained in:
parent
399760e04b
commit
ba5702021b
|
@ -8,7 +8,7 @@
|
||||||
<div class="span9">
|
<div class="span9">
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<h2>{{title}}</h2>
|
<h2>{{titleWithYear}}</h2>
|
||||||
</div>
|
</div>
|
||||||
<div class="row new-series-overview x-overview">
|
<div class="row new-series-overview x-overview">
|
||||||
{{overview}}
|
{{overview}}
|
||||||
|
|
|
@ -62,4 +62,12 @@ define(
|
||||||
|
|
||||||
return new Handlebars.SafeString('<span class="label label-info">{0} Seasons</span>'.format(seasonCount))
|
return new Handlebars.SafeString('<span class="label label-info">{0} Seasons</span>'.format(seasonCount))
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Handlebars.registerHelper('titleWithYear', function () {
|
||||||
|
if (this.title.endsWith(' ({0})'.format(this.year))) {
|
||||||
|
return this.title;
|
||||||
|
}
|
||||||
|
|
||||||
|
return '{0} ({1})'.format(this.title, this.year);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue