From aba821e79cdcf657f84fd1be7c574e29f7835d12 Mon Sep 17 00:00:00 2001 From: Dieter Hametner Date: Sat, 5 May 2007 23:57:05 +0000 Subject: - General cleanup of recordings. Made design more like other pages - Bugfix for #289, #291 - Adapted styles and helper classes. - recordings should be now strict XHTML. --- pages/pageelems.ecpp | 47 +++---------- pages/recordings.ecpp | 184 +++++++++++++++++++++++++++++--------------------- pages/tooltip.ecpp | 8 +-- 3 files changed, 121 insertions(+), 118 deletions(-) (limited to 'pages') diff --git a/pages/pageelems.ecpp b/pages/pageelems.ecpp index 7acf72a..a7fcf33 100644 --- a/pages/pageelems.ecpp +++ b/pages/pageelems.ecpp @@ -79,7 +79,7 @@ using namespace vdrlive; string progress = "0"; string id; -
px">
+
if (!id.empty()) { id="<$ id $>"<%cpp> } style="width: <$ progress $>px">
<# ---------------------------------------------------------------------- #> @@ -90,7 +90,7 @@ using namespace vdrlive; tEventID eventid; <%cpp> const cTimer* timer = LiveTimerManager().GetTimer(eventid, channelid); - if (timer) { + if (timer) { /> @@ -104,8 +104,8 @@ using namespace vdrlive; <# ---------------------------------------------------------------------- #> <%def ajax_js> - - + + <# ---------------------------------------------------------------------- #> @@ -119,7 +119,7 @@ using namespace vdrlive; string alt; string id; -<%cpp> { .xml', 'param', '<$ param $>');" <%cpp>if (!tip.empty()) { <& tooltip.hint text=(tip) &> <%cpp> } ><$ alt $> <%cpp> } +<%cpp> { if (!id.empty()) { id="<$ id $>" <%cpp> } <& hide_element hide=(!id.empty()) &> href="javascript:LiveSimpleAjaxRequest('<$ action $>.xml', 'param', '<$ param $>');" <%cpp>if (!tip.empty()) { <& tooltip.hint text=(tip) &> <%cpp> } ><$ alt $> <%cpp> } <# ---------------------------------------------------------------------- #> @@ -133,6 +133,7 @@ using namespace vdrlive; string title; string short_descr; string long_descr; + string archived; int elapsed = -1;
@@ -141,50 +142,20 @@ using namespace vdrlive;
- <& (tools_comp) id=(boxId) &> + <& (tools_comp) id=(boxId) archived=(archived) &>
-
<$ (time) $>
+
<%cpp> if (!archived.empty()) { <$ (archived + " ") $><%cpp> } <$ (time) $>
% if (elapsed >= 0) {
<& pageelems.progressbar progress=(elapsed) &>
% }
<$ (title) $>
<$ (short_descr) $>
- <{ reply.out() << StringEscapeAndBreak(long_descr); }> + <%cpp> reply.out() << StringEscapeAndBreak(long_descr);
-<# ---------------------------------------------------------------------- #> - -<%def status_box> -<%args> - string type; - string currentTime; - string caption; - string title; - string duration; - int elapsed; - string prev_chan; - string next_chan; - -
-
-
<$ caption $>
-
 <$ currentTime $>
-
-
-
<$ title $>
-
 <$ duration $>
-
-
-
><%cpp>if (!prev_chan.empty()) { <& ajax_action_href action=("switch_channel") param=(prev_chan) image=("one_downarrow.png") tip=(tr("previous channel")) &><%cpp> } if (!next_chan.empty()) { <& ajax_action_href action=("switch_channel") param=(next_chan) image=("one_uparrow.png") tip=(tr("next channel")) &><%cpp> }
-% if (elapsed >= 0) { -
<& pageelems.progressbar progress=(elapsed) &>
-% } -
-
- diff --git a/pages/recordings.ecpp b/pages/recordings.ecpp index 87c534e..c9f9432 100644 --- a/pages/recordings.ecpp +++ b/pages/recordings.ecpp @@ -16,7 +16,7 @@ using namespace std; <%args> <%session scope="global"> -bool logged_in(false); + bool logged_in(false); <%request scope="page"> RecordingsTree recordingsTree(LiveRecordingsManager()); @@ -36,17 +36,20 @@ if (!logged_in && LiveSetup().UseAuth()) return reply.redirect("login.html"); <& tooltip.javascript var=("domTT_styleClass") value=("domTTepg") &> <& pageelems.ajax_js &> - + <& pageelems.logo &> <& menu active=("recordings") &>
+
<$ tr("List of recordings") $>
% if (Recordings.Count() == 0) { - Keine Aufnahmen vorhanden + <$ tr("No recordings found") $> % } else {
+
    <& recordings.recordings_item &> +