From db8a490f134b2c48eb1ef89ce2fb1644c7961b61 Mon Sep 17 00:00:00 2001 From: Andreas Mair Date: Fri, 1 Jun 2007 11:04:08 +0000 Subject: In list view: - Added "switch channel" button. - Added IMDb button. - Added progress bar. - Added station column. - Toggle "list view" / "detail view" links. --- css/styles.css | 13 +++++++++++++ pages/whats_on.ecpp | 22 +++++++++++++++++----- 2 files changed, 30 insertions(+), 5 deletions(-) diff --git a/css/styles.css b/css/styles.css index 04b3caf..31d764a 100644 --- a/css/styles.css +++ b/css/styles.css @@ -440,6 +440,19 @@ div.station div div div a:hover { text-decoration: underline; } +td div.station { + vertical-align: middle; +} + +td div.station a { + color: black; + font-weight: bold; + text-decoration: none; +} + +td div.station a:hover { + text-decoration: underline; +} div.content { width: 253px; diff --git a/pages/whats_on.ecpp b/pages/whats_on.ecpp index e975551..81a40b7 100644 --- a/pages/whats_on.ecpp +++ b/pages/whats_on.ecpp @@ -156,14 +156,24 @@ if (type == "now") { % } else { // mode == "list" "> <& pageelems.event_timer channelid=(channel_id) eventid=(event) &> +% if (type == "now") { + <& pageelems.ajax_action_href action="switch_channel" tip=(tr("Switch to this channel.")) param=(channel_id) image="zap.png" alt="" &> +% } % if (LiveSetup().HaveEPGSearch()) { > % } + > + + +
<$ (epgEvent->StartTime(tr("%I:%M %p"))) $> - <$ (epgEvent->EndTime(tr("%I:%M %p"))) $>
+% if (epgEvent->Elapsed() >= 0) { +
<& pageelems.progressbar progress=(epgEvent->Elapsed()) &>
+% } - <$ (epgEvent->StartTime(tr("%I:%M %p"))) $> - <$ (epgEvent->EndTime(tr("%I:%M %p"))) $>
LongDescr(), 300, truncated)) + string("
") + string(tr("Click to view details."))) &><& tooltip.display domId=(epgEvent->Id()) &>><$ (epgEvent->Title()) $>
<$ (epgEvent->ShortDescr()) $>
+
><$ (epgEvent->Caption()) $>
  % } @@ -187,7 +197,7 @@ if (type == "now") { }> % if (mode == "list") { -   +   % } @@ -219,7 +229,9 @@ if (type == "now") { <$ tr("at") $> " onchange="showspectime(this)"/> | -<$ tr("Detailview") $> -| -<$ tr("Listview") $> +% if ( current_mode == "list" ) { +<$ tr("Details view") $> +% } else { +<$ tr("List view") $> +% } -- cgit v1.2.3