From d12269370351ed3c539e87acadea37ed0b484c05 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Wed, 24 Jul 2013 08:24:06 -0700 Subject: [PATCH] Added TVDB and TVRage links on series details --- UI/Handlebars/Helpers/Series.js | 8 ++++++++ UI/Series/Details/SeriesDetailsTemplate.html | 9 +++++++++ 2 files changed, 17 insertions(+) diff --git a/UI/Handlebars/Helpers/Series.js b/UI/Handlebars/Helpers/Series.js index a47253091..5a2a40013 100644 --- a/UI/Handlebars/Helpers/Series.js +++ b/UI/Handlebars/Helpers/Series.js @@ -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; }); diff --git a/UI/Series/Details/SeriesDetailsTemplate.html b/UI/Series/Details/SeriesDetailsTemplate.html index c665cfad1..f20b53388 100644 --- a/UI/Series/Details/SeriesDetailsTemplate.html +++ b/UI/Series/Details/SeriesDetailsTemplate.html @@ -22,9 +22,18 @@ {{path}} Trakt + {{#if imdbId}} IMDB {{/if}} + + {{#if tvdbId}} + TVDB + {{/if}} + + {{#if tvRageId}} + TVRage + {{/if}}