From ff170db465b8b91b9732cb49bccb47a3110e2388 Mon Sep 17 00:00:00 2001 From: Dieter Hametner Date: Fri, 20 Jul 2007 23:37:11 +0000 Subject: - Made epg images better stylable. Moved epg image info into span area, which floats right of the normal epg description text. --- css/styles.css | 16 +++++++++++----- doc/ChangeLog | 8 +++++++- live/css/siteprefs.css | 6 ++++++ pages/pageelems.ecpp | 25 +++++++++++++++---------- 4 files changed, 39 insertions(+), 16 deletions(-) diff --git a/css/styles.css b/css/styles.css index 9117b33..8d41458 100644 --- a/css/styles.css +++ b/css/styles.css @@ -236,10 +236,6 @@ div.info-win { margin-right: -26px; } -.info-win .description { - margin-bottom: 0px; -} - .hint-title { display: none; } @@ -587,7 +583,8 @@ div.content div { } div.description { - margin: 5px; + margin: 5px 5px 0px 5px; + overflow: hidden; } div.title { @@ -936,6 +933,15 @@ table.login tr td { margin-top: 5px; } +.info-win span.epg_images { + float: right; + margin-left: 5px; +} + +.info-win span.epg_images img.epg_image { + width: 100%; +} + .info-win div.boxheader { display: none; } diff --git a/doc/ChangeLog b/doc/ChangeLog index ade99b5..f5dda08 100644 --- a/doc/ChangeLog +++ b/doc/ChangeLog @@ -1,6 +1,12 @@ +2007-07-21 Dieter Hametner + + Made epgimages better styleable. Displaying them as floats right + of the epg description text. + 2007-07-20 Christian Wieninger + Added support for EPG images: Specify the directory with your - EPG images via the new commandline option '-e ' or + EPG images via the new commandline option '-e ' or '--epgimages= like -P'live -e /video/epgimages' diff --git a/live/css/siteprefs.css b/live/css/siteprefs.css index ed92cb0..9fa03cc 100644 --- a/live/css/siteprefs.css +++ b/live/css/siteprefs.css @@ -15,3 +15,9 @@ table { width: 100%; } */ + +/* comment this out, if you want epg images at their native size */ +.info-win span.epg_images { + width: 120px; +} + diff --git a/pages/pageelems.ecpp b/pages/pageelems.ecpp index 1116d51..e2fdb8d 100644 --- a/pages/pageelems.ecpp +++ b/pages/pageelems.ecpp @@ -180,22 +180,27 @@ int update_status(1);
<%cpp> if (!archived.empty()) { <$ (archived + " ") $><%cpp> } <$ (time) $>
-% if (elapsed >= 0) { +<%cpp> + if (elapsed >= 0) { +
<& pageelems.progressbar progress=(elapsed) &>
-% } +<%cpp> + } +
<$ (title) $>
<$ (short_descr) $>
- <%cpp> reply.out() << StringEscapeAndBreak(long_descr); -
-
-
-<%cpp> list images = EpgEvents::EpgImages(boxId); - for(std::list::iterator it = images.begin(); it != images.end(); ++it ) { + +<%cpp> + list images = EpgEvents::EpgImages(boxId); + for(std::list::iterator it = images.begin(); it != images.end(); ++it ) { - -<%cpp> } + +<%cpp> + } + + <%cpp> reply.out() << StringEscapeAndBreak(long_descr);
-- cgit v1.2.3