From 44696a15e78f0ce34a914f1a257ed8b1dd18e951 Mon Sep 17 00:00:00 2001 From: "kay.one" Date: Tue, 4 Jun 2013 22:22:07 -0700 Subject: [PATCH] added series route as a mutator to series model. --- UI/Calendar/CalendarItemTemplate.html | 6 ++++-- UI/Missing/SeriesTitleTemplate.html | 2 +- UI/Series/Index/List/ItemTemplate.html | 6 +++--- UI/Series/Index/Posters/ItemTemplate.html | 4 ++-- UI/Series/Index/Table/SeriesTitleTemplate.html | 2 +- UI/Series/SeriesModel.js | 3 +++ 6 files changed, 14 insertions(+), 9 deletions(-) diff --git a/UI/Calendar/CalendarItemTemplate.html b/UI/Calendar/CalendarItemTemplate.html index 678dd9b0c..4a0062894 100644 --- a/UI/Calendar/CalendarItemTemplate.html +++ b/UI/Calendar/CalendarItemTemplate.html @@ -3,6 +3,8 @@

{{day}}

{{month}}

-

{{series.title}}

+ +

{{series.title}}

+

{{startTime}} {{bestDateString}}{{seasonNumber}}x{{paddedEpisodeNumber}}
{{episodeTitle}}

- \ No newline at end of file + diff --git a/UI/Missing/SeriesTitleTemplate.html b/UI/Missing/SeriesTitleTemplate.html index 0a8c3ae09..a5bb2e609 100644 --- a/UI/Missing/SeriesTitleTemplate.html +++ b/UI/Missing/SeriesTitleTemplate.html @@ -1 +1 @@ -{{series.title}} \ No newline at end of file +{{series.title}} diff --git a/UI/Series/Index/List/ItemTemplate.html b/UI/Series/Index/List/ItemTemplate.html index 6aa01aba2..805bb5a3f 100644 --- a/UI/Series/Index/List/ItemTemplate.html +++ b/UI/Series/Index/List/ItemTemplate.html @@ -1,14 +1,14 @@ 
- \ No newline at end of file + diff --git a/UI/Series/Index/Table/SeriesTitleTemplate.html b/UI/Series/Index/Table/SeriesTitleTemplate.html index cbc4e9d37..b4786d5b1 100644 --- a/UI/Series/Index/Table/SeriesTitleTemplate.html +++ b/UI/Series/Index/Table/SeriesTitleTemplate.html @@ -1 +1 @@ -{{title}} \ No newline at end of file +{{title}} diff --git a/UI/Series/SeriesModel.js b/UI/Series/SeriesModel.js index 324c81f4c..0590ad829 100644 --- a/UI/Series/SeriesModel.js +++ b/UI/Series/SeriesModel.js @@ -44,6 +44,9 @@ define(['app', 'Quality/QualityProfileCollection', 'AddSeries/RootFolders/RootFo } return Date.create(date).short(); + }, + route : function(){ + return '/series/details/' + this.get('titleSlug'); } },