Added TVDB and TVRage links on series details

pull/4/head
Mark McDowall 12 years ago
parent 84af2be14a
commit d122693703

@ -23,6 +23,14 @@ define(
return 'http://imdb.com/title/' + this.imdbId; 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 () { Handlebars.registerHelper('route', function () {
return '/series/' + this.titleSlug; return '/series/' + this.titleSlug;
}); });

@ -22,9 +22,18 @@
<span class="label label-info">{{path}}</span> <span class="label label-info">{{path}}</span>
<span class="pull-right"> <span class="pull-right">
<a href="{{traktUrl}}" class="label label-info">Trakt</a> <a href="{{traktUrl}}" class="label label-info">Trakt</a>
{{#if imdbId}} {{#if imdbId}}
<a href="{{imdbUrl}}" class="label label-info">IMDB</a> <a href="{{imdbUrl}}" class="label label-info">IMDB</a>
{{/if}} {{/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> </span>
</div> </div>
</div> </div>

Loading…
Cancel
Save