From: Jaroslav Kysela Date: Tue, 22 Mar 2016 14:47:24 +0000 (+0100) Subject: webui: epg / dvr event dialogs - some visual improvements X-Git-Tag: v4.2.1~825 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0b84f018fcd25e1780cbc3a6a42fe94b96830842;p=thirdparty%2Ftvheadend.git webui: epg / dvr event dialogs - some visual improvements --- diff --git a/src/webui/static/app/dvr.js b/src/webui/static/app/dvr.js index c532f6f14..16a6065be 100644 --- a/src/webui/static/app/dvr.js +++ b/src/webui/static/app/dvr.js @@ -30,7 +30,7 @@ tvheadend.dvrDetails = function(uuid) { content += ''; if (duplicate) - content += '
' + _('Will be skipped') + '
' + _('because it is a rerun of:') + '
' + tvheadend.niceDate(duplicate * 1000) + '
'; + content += '
' + _('Will be skipped') + '
' + _('because it is a rerun of:') + '
' + tvheadend.niceDate(duplicate * 1000) + '
'; if (title) content += '
' + title + '
'; @@ -39,26 +39,26 @@ tvheadend.dvrDetails = function(uuid) { if (episode) content += '
' + episode + '
'; if (start_real) - content += '
' + _('Scheduled Start Time') + ':
' + tvheadend.niceDate(start_real * 1000) + '
'; + content += '
' + _('Scheduled Start Time') + ':' + tvheadend.niceDate(start_real * 1000) + '
'; if (stop_real) - content += '
' + _('Scheduled Stop Time') + ':
' + tvheadend.niceDate(stop_real * 1000) + '
'; + content += '
' + _('Scheduled Stop Time') + ':' + tvheadend.niceDate(stop_real * 1000) + '
'; if (duration) - content += '
' + _('Duration') + ':
' + parseInt(duration / 60) + ' ' + _('min') + '
'; - content += '
'; + content += '
' + _('Duration') + ':' + parseInt(duration / 60) + ' ' + _('min') + '
'; + content += '
'; if (desc) { content += '
' + desc + '
'; - content += '
'; + content += '
'; } if (status) - content += '
' + _('Status') + ':
' + status + '
'; + content += '
' + _('Status') + ':' + status + '
'; if (filesize) - content += '
' + _('File size') + ':
' + parseInt(filesize / 1000000) + ' MB
'; + content += '
' + _('File size') + ':' + parseInt(filesize / 1000000) + ' MB
'; if (comment) - content += '
' + _('Comment') + ':
' + comment + '
'; + content += '
' + _('Comment') + ':' + comment + '
'; if (autorec_caption) - content += '
' + _('Autorec') + ':
' + autorec_caption + '
'; + content += '
' + _('Autorec') + ':' + autorec_caption + '
'; if (timerec_caption) - content += '
' + _('Time Scheduler') + ':
' + timerec_caption + '
'; + content += '
' + _('Time Scheduler') + ':' + timerec_caption + '
'; var buttons = []; diff --git a/src/webui/static/app/epg.js b/src/webui/static/app/epg.js index 967fde44b..7df78be40 100644 --- a/src/webui/static/app/epg.js +++ b/src/webui/static/app/epg.js @@ -104,22 +104,22 @@ tvheadend.epgDetails = function(event) { if (event.episodeOnscreen) content += '
' + event.episodeOnscreen + '
'; if (event.start) - content += '
' + _('Start Time') + ':
' + tvheadend.niceDate(event.start) + '
'; + content += '
' + _('Start Time') + ':' + tvheadend.niceDate(event.start) + '
'; if (event.stop) - content += '
' + _('End Time') + ':
' + tvheadend.niceDate(event.stop) + '
'; + content += '
' + _('End Time') + ':' + tvheadend.niceDate(event.stop) + '
'; if (duration) - content += '
' + _('Duration') + ':
' + parseInt(duration / 60) + ' min
'; - content += '
'; + content += '
' + _('Duration') + ':' + parseInt(duration / 60) + ' ' + _('min') + '
'; + content += '
'; if (event.summary) content += '
' + event.summary + '
'; if (event.description) content += '
' + event.description + '
'; if (event.summary || event.description) - content += '
'; + content += '
'; if (event.starRating) - content += '
' + _('Star Rating') + ':
' + event.starRating + '
'; + content += '
' + _('Star Rating') + ':' + event.starRating + '
'; if (event.ageRating) - content += '
' + _('Age Rating') + ':
' + event.ageRating + '
'; + content += '
' + _('Age Rating') + ':' + event.ageRating + '
'; if (event.genre) { var genre = []; Ext.each(event.genre, function(g) { @@ -130,7 +130,7 @@ tvheadend.epgDetails = function(event) { if (g1 || g2) genre.push((g1 ? '[' + g1 + '] ' : '') + g2); }); - content += '
' + _('Content Type') + ':
' + genre.join(', ') + '
'; + content += '
' + _('Content Type') + ':' + genre.join(', ') + '
'; } var tags = []; if (event.hd > 1) @@ -154,7 +154,7 @@ tvheadend.epgDetails = function(event) { if (event.audiodesc) tags.push(_('Audio description#EPG').split('#')[0]); if (tags.length > 0) - content += '
' + _('Parameters') + ':
' + tags.join(', ') + '
'; + content += '
' + _('Parameters') + ':' + tags.join(', ') + '
'; content += ''; content += '
'; diff --git a/src/webui/static/app/ext.css b/src/webui/static/app/ext.css index b029c61bd..0bc759fe8 100644 --- a/src/webui/static/app/ext.css +++ b/src/webui/static/app/ext.css @@ -639,10 +639,17 @@ white-space: nowrap; } +.x-epg-hr { + margin: 0; +} + .x-epg-title { margin: 5px; + padding: 5px; font: normal 16px arial, tahoma, helvetica, sans-serif; font-weight: bold; + text-align: center; + border-bottom: 1px solid #000000; } .x-epg-subtitle { @@ -651,19 +658,19 @@ font-weight: bold; } -.x-epg-time { - font-style: italic; - margin: 5px; -} - .x-epg-prefix { display: inline-block; width: 12em; font-weight: bold; } +.x-epg-body { + margin-left: 5px; + display: inline-block; +} + .x-epg-summary { - margin: 5px 5px 5px 5px; + margin: 5px; font-weight: bold; } @@ -678,9 +685,12 @@ max-height: 99px; } +.x-epg-time { + margin: 5px 5px 5px 10px; +} + .x-epg-meta { - font-style: italic; - margin: 5px; + margin: 5px 5px 5px 10px; } .tv-video-player {