From 8274cb30cfeda99e30230cc59d6228575f224230 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Fri, 7 Jun 2013 08:42:28 -0700 Subject: [PATCH] Added trakt/imdb links to series details --- UI/Series/Details/SeriesDetailsTemplate.html | 6 ++++++ UI/Series/Edit/EditSeriesTemplate.html | 6 +++--- UI/Series/SeriesModel.js | 3 +++ 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/UI/Series/Details/SeriesDetailsTemplate.html b/UI/Series/Details/SeriesDetailsTemplate.html index 05514ab24..5fa0990cd 100644 --- a/UI/Series/Details/SeriesDetailsTemplate.html +++ b/UI/Series/Details/SeriesDetailsTemplate.html @@ -10,6 +10,12 @@ {{network}} {{runtime}} minutes {{path}} + + Trakt + {{#if imdbId}} + IMDB + {{/if}} + diff --git a/UI/Series/Edit/EditSeriesTemplate.html b/UI/Series/Edit/EditSeriesTemplate.html index 8b4c4858b..1d96802d0 100644 --- a/UI/Series/Edit/EditSeriesTemplate.html +++ b/UI/Series/Edit/EditSeriesTemplate.html @@ -77,9 +77,9 @@
diff --git a/UI/Series/SeriesModel.js b/UI/Series/SeriesModel.js index 7de1e7971..44b8249e1 100644 --- a/UI/Series/SeriesModel.js +++ b/UI/Series/SeriesModel.js @@ -29,6 +29,9 @@ define(['app', 'Quality/QualityProfileCollection', 'AddSeries/RootFolders/RootFo traktUrl : function () { return "http://trakt.tv/show/" + this.get('titleSlug'); }, + imdbUrl : function () { + return "http://imdb.com/title/" + this.get('imdbId'); + }, isContinuing : function () { return this.get('status') === 'continuing'; },