Added TVDB and TVRage links on series details

This commit is contained in:
Mark McDowall 2013-07-24 08:24:06 -07:00
parent 84af2be14a
commit d122693703
2 changed files with 17 additions and 0 deletions

View File

@ -23,6 +23,14 @@ define(
return 'http://imdb.com/title/' + this.imdbId;
});
Handlebars.registerHelper('tvdbUrl', function () {
return 'http://www.thetvdb.com/?tab=series&id=' + this.tvdbId;
});
Handlebars.registerHelper('tvRageUrl', function () {
return 'http://www.tvrage.com/shows/id-' + this.tvRageId;
});
Handlebars.registerHelper('route', function () {
return '/series/' + this.titleSlug;
});

View File

@ -22,9 +22,18 @@
<span class="label label-info">{{path}}</span>
<span class="pull-right">
<a href="{{traktUrl}}" class="label label-info">Trakt</a>
{{#if imdbId}}
<a href="{{imdbUrl}}" class="label label-info">IMDB</a>
{{/if}}
{{#if tvdbId}}
<a href="{{tvdbUrl}}" class="label label-info">TVDB</a>
{{/if}}
{{#if tvRageId}}
<a href="{{tvRageUrl}}" class="label label-info">TVRage</a>
{{/if}}
</span>
</div>
</div>