diff options
author | Andreas Mair <mail (at) andreas (dot) vdr-developer (dot) org> | 2007-06-01 11:04:08 +0000 |
---|---|---|
committer | Andreas Mair <mail (at) andreas (dot) vdr-developer (dot) org> | 2007-06-01 11:04:08 +0000 |
commit | db8a490f134b2c48eb1ef89ce2fb1644c7961b61 (patch) | |
tree | 028beb7e7b449b06abe3f39df5cd102a4341c9a4 /pages | |
parent | 4bb2cc172549bcf9f86a94e5d3d0d5ade5f91dfe (diff) | |
download | vdr-plugin-live-db8a490f134b2c48eb1ef89ce2fb1644c7961b61.tar.gz vdr-plugin-live-db8a490f134b2c48eb1ef89ce2fb1644c7961b61.tar.bz2 |
In list view:
- Added "switch channel" button.
- Added IMDb button.
- Added progress bar.
- Added station column.
- Toggle "list view" / "detail view" links.
Diffstat (limited to 'pages')
-rw-r--r-- | pages/whats_on.ecpp | 22 |
1 files changed, 17 insertions, 5 deletions
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" <tr class="<? active_line ? "active" ?>"> <td style="border-left: 1px solid black"><& 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()) { <a href="searchresults.html?searchplain=<$ StringUrlEncode(epgEvent->Title()) $>"><img src="/search.png" border="0" alt="" <& tooltip.hint text=(tr("Search for repeats.")) &>></img></a> % } + <a href="http://akas.imdb.com/Tsearch?title=<$ StringUrlEncode(epgEvent->Title()) $>"><img src="imdb.png" border="0" alt="" <& tooltip.hint text=(tr("Find more at the Internet Movie Database.")) &>></img></a> + </td> + <td> + <div><$ (epgEvent->StartTime(tr("%I:%M %p"))) $> - <$ (epgEvent->EndTime(tr("%I:%M %p"))) $></div> +% if (epgEvent->Elapsed() >= 0) { + <div class="progress"><div><& pageelems.progressbar progress=(epgEvent->Elapsed()) &></div></div> +% } </td> - <td><$ (epgEvent->StartTime(tr("%I:%M %p"))) $> - <$ (epgEvent->EndTime(tr("%I:%M %p"))) $></td> <td> <div class="more"<& tooltip.hint text=(StringEscapeAndBreak(StringWordTruncate(epgEvent->LongDescr(), 300, truncated)) + string("<br />") + string(tr("Click to view details."))) &><& tooltip.display domId=(epgEvent->Id()) &>><strong><$ (epgEvent->Title()) $></strong></div><$ (epgEvent->ShortDescr()) $><br /> </td> + <td><div class="station"><a href="schedule.html?channel=<$ Channel->Number() $>" <& tooltip.hint text=(tr("View the schedule of this channel")) &>><$ (epgEvent->Caption()) $></a></div></td> <td style="border-right: 1px solid black"> </td> </tr> % } @@ -187,7 +197,7 @@ if (type == "now") { }> % if (mode == "list") { <tr> - <td colspan="4" style="border-top: 1px solid black; background-image: none; border-bottom: none"> </td> + <td colspan="5" style="border-top: 1px solid black; background-image: none; border-bottom: none"> </td> </tr> </table> % } @@ -219,7 +229,9 @@ if (type == "now") { <span><$ tr("at") $></span> <input type="text" size="6" name="spectime" id="spectime" value = "<? current_attime != "" ? current_displaytime ?>" onchange="showspectime(this)"/> <span class="sep">|</span> -<a href="whats_on.html?mode=detail&type=<$ current_type $>&attime=<$ current_attime $>&fixtime=<$ current_fixtime $>"><$ tr("Detailview") $></a> -<span class="sep">|</span> -<a href="whats_on.html?mode=list&type=<$ current_type $>&attime=<$ current_attime $>&fixtime=<$ current_fixtime $>"><$ tr("Listview") $></a> +% if ( current_mode == "list" ) { +<a href="whats_on.html?mode=detail&type=<$ current_type $>&attime=<$ current_attime $>&fixtime=<$ current_fixtime $>"><$ tr("Details view") $></a> +% } else { +<a href="whats_on.html?mode=list&type=<$ current_type $>&attime=<$ current_attime $>&fixtime=<$ current_fixtime $>"><$ tr("List view") $></a> +% } </%def> |