summaryrefslogtreecommitdiff
path: root/pages
diff options
context:
space:
mode:
authorChristian Wieninger <cwieninger (at) gmx (dot) de>2007-05-06 18:59:41 +0000
committerChristian Wieninger <cwieninger (at) gmx (dot) de>2007-05-06 18:59:41 +0000
commit1e7cf6c574e8e7286100274d1bfbcb1f5800d711 (patch)
tree792e17a7613706a88f304cb1558ae8d4a0ba0837 /pages
parentf05b2dab839898859a0b0e7d4429d8cf9aa4965e (diff)
downloadvdr-plugin-live-1e7cf6c574e8e7286100274d1bfbcb1f5800d711.tar.gz
vdr-plugin-live-1e7cf6c574e8e7286100274d1bfbcb1f5800d711.tar.bz2
- display of series timer was broken, if a series timer was at top
- gab between series timer and following standard timer was missing
Diffstat (limited to 'pages')
-rw-r--r--pages/timers.ecpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/pages/timers.ecpp b/pages/timers.ecpp
index 7e38444..2cdf5f7 100644
--- a/pages/timers.ecpp
+++ b/pages/timers.ecpp
@@ -39,7 +39,7 @@ using namespace vdrlive;
LiveTimerManager().ToggleTimerActive(timer);
}
- int previousDay = 0;
+ string previousDay = "";
</%cpp>
<& pageelems.doc_type &>
<html>
@@ -59,15 +59,16 @@ using namespace vdrlive;
<table class="timers" cellspacing="0" cellpadding="0">
<%cpp>
for (SortedTimers::iterator timer = timers.begin(); timer != timers.end(); ++timer) {
- if (previousDay != timer->Day()) {
- if (previousDay > 0) {
+ string currentDay = timer->WeekDays() > 0 ? *cTimer::PrintDay(0, timer->WeekDays()) : FormatDateTime(tr("%A, %x"), timer->Day());
+ if (previousDay != currentDay) {
+ if (!previousDay.empty()) {
</%cpp>
<tr>
<td colspan="10" style="border-top: 1px solid black; border-bottom: none; background-image: none">&nbsp;</td>
</tr>
<%cpp>
}
- previousDay = timer->Day();
+ previousDay = currentDay;
</%cpp>
<tr class="head">
<td style="background: url(bg_box_l.png); width: 3px;"></td>