From fc15bf3616f30b5e94647fd27a0d6360a192a0b2 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Tue, 24 Jun 2014 23:00:45 +0200 Subject: [PATCH] webui: set title for the Play links (... playlists) --- src/webui/static/app/chconf.js | 7 ++++++- src/webui/static/app/dvr.js | 6 +++++- src/webui/static/app/epg.js | 9 +++++++-- src/webui/static/app/mpegts.js | 8 ++++++-- 4 files changed, 24 insertions(+), 6 deletions(-) diff --git a/src/webui/static/app/chconf.js b/src/webui/static/app/chconf.js index 04d6a087..1b70bfb1 100644 --- a/src/webui/static/app/chconf.js +++ b/src/webui/static/app/chconf.js @@ -211,7 +211,12 @@ tvheadend.channel_tab = function(panel) width: 50, header: 'Play', renderer: function(v, o, r) { - return "Play"; + var title = ''; + if (r.data['number']) + title += r.data['number'] + ' : '; + title += r.data['name']; + return "Play"; } } ], diff --git a/src/webui/static/app/dvr.js b/src/webui/static/app/dvr.js index 56d46924..6705884e 100644 --- a/src/webui/static/app/dvr.js +++ b/src/webui/static/app/dvr.js @@ -218,7 +218,11 @@ tvheadend.dvrschedule = function(title, iconCls, dvrStore) { width: 40, header: "Play", renderer: function(v, o, r) { - return 'Play'; + var title = r.data['title']; + if (r.data['episode']) + title += ' / ' + r.data['episode']; + return 'Play'; } }); cols.push({ diff --git a/src/webui/static/app/epg.js b/src/webui/static/app/epg.js index 896feb6b..a2775fe3 100644 --- a/src/webui/static/app/epg.js +++ b/src/webui/static/app/epg.js @@ -60,8 +60,13 @@ tvheadend.epgDetails = function(event) { content += '
'; now = new Date(); - if (event.start < now && event.end > now) - content += '
Play
'; + if (event.start < now && event.end > now) { + var title = event.title; + if (event.episode) + title += ' / ' + event.episode; + content += '
Play
'; + } var confcombo = new Ext.form.ComboBox({ store: tvheadend.configNames, diff --git a/src/webui/static/app/mpegts.js b/src/webui/static/app/mpegts.js index 4f72b01e..877e8512 100644 --- a/src/webui/static/app/mpegts.js +++ b/src/webui/static/app/mpegts.js @@ -84,7 +84,9 @@ tvheadend.muxes = function(panel) width: 50, header: 'Play', renderer: function(v, o, r) { - return "Play"; + var title = r.data['name'] + ' / ' + r.data['network']; + return "Play"; } } ], @@ -239,7 +241,9 @@ tvheadend.services = function(panel) width: 50, header: 'Play', renderer: function(v, o, r) { - return "Play"; + var title = r.data['svcname'] + ' / ' + r.data['provider']; + return "Play"; } }, actions