Added TVDB and TVRage links on series details

This commit is contained in:
Mark McDowall 2013-07-24 08:24:06 -07:00
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;
});