Skip to content

Commit

Permalink
Added tooltip with episode air date to episode teaser xbmc#170
Browse files Browse the repository at this point in the history
  • Loading branch information
jez500 committed Jan 26, 2017
1 parent ec0eafb commit 9d8f80a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/js/apps/tvshow/episode/episode_view.js.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@
epNum = @themeTag('span', {class: 'ep-num'}, @model.get('season') + 'x' + @model.get('episode') + ' ')
epNumFull = @themeTag('span', {class: 'ep-num-full'}, t.gettext('Episode') + ' ' + @model.get('episode'))
showLink = @themeLink(@model.get('showtitle') + ' ', 'tvshow/' + @model.get('tvshowid'), {className: 'show-name'})
subTitleTip = if @model.get('firstaired') then {title: tr('First aired') + ': ' + @model.get('firstaired')} else {}
@model.set
label: epNum + @model.get('title')
subtitle: showLink + epNumFull
subtitle: @themeTag('div', subTitleTip, showLink + epNumFull)


class Episode.Empty extends App.Views.EmptyViewResults
Expand Down
4 changes: 2 additions & 2 deletions src/js/entities/kodi/episode.js.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@

fields:
minimal: ['title']
small: ['thumbnail', 'playcount', 'lastplayed', 'dateadded', 'episode', 'season', 'rating', 'file', 'cast', 'showtitle', 'tvshowid', 'uniqueid', 'resume']
full: ['fanart', 'plot', 'firstaired', 'director', 'writer', 'runtime', 'streamdetails']
small: ['thumbnail', 'playcount', 'lastplayed', 'dateadded', 'episode', 'season', 'rating', 'file', 'cast', 'showtitle', 'tvshowid', 'uniqueid', 'resume', 'firstaired']
full: ['fanart', 'plot', 'director', 'writer', 'runtime', 'streamdetails']

## Fetch a single entity
getEntity: (id, options) ->
Expand Down

0 comments on commit 9d8f80a

Please sign in to comment.