diff options
Diffstat (limited to 'pages/timers.ecpp')
-rw-r--r-- | pages/timers.ecpp | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/pages/timers.ecpp b/pages/timers.ecpp index 0eaacd6..581e51c 100644 --- a/pages/timers.ecpp +++ b/pages/timers.ecpp @@ -74,7 +74,7 @@ static const size_t maximumDescriptionLength = 300; longDescription = StringEscapeAndBreak(SortedTimers::GetTimerInfo(*timer)) + "<hr>" + StringEscapeAndBreak(StringWordTruncate(epgEvent->LongDescr(), maximumDescriptionLength)) + "<br/><br/>" + tr("Click to view details."); - } + } string currentDay = SortedTimers::GetTimerDays(*timer); SortedTimers::iterator nextTimer = timer; ++nextTimer; bool bottom = false; @@ -114,19 +114,24 @@ static const size_t maximumDescriptionLength = 300; <%cpp> } std::string timerStateImg = "transparent.png"; - if (timer->Recording()) + std::string timerStateHint; + if (timer->Recording()) { timerStateImg = "arrow_rec.gif"; - else if (timer->Flags() & tfActive) + timerStateHint = tr("Timer is recording."); + } + else if (timer->Flags() & tfActive) { timerStateImg = "arrow.png"; + timerStateHint = tr("Timer is active."); + } </%cpp> <tr> - <td class="leftcol <? bottom ? "bottomrow" ?>"><img src="<$ LiveSetup().GetThemedLink("img", timerStateImg) $>" alt=""></img></td> + <td class="leftcol <? bottom ? "bottomrow" ?>"><img src="<$ LiveSetup().GetThemedLink("img", timerStateImg) $>" alt="" <%cpp> if (!timerStateHint.empty()) { </%cpp><& tooltip.hint text=(timerStateHint) &><%cpp> } </%cpp>></img></td> <td class="<? bottom ? "bottomrow" ?>"><div class="withmargin"><a href="schedule.html?channel=<$ timer->Channel()->Number()$>"><$ timer->Channel()->Name() $></a></div></td> <td class="<? bottom ? "bottomrow" ?>"><div class="withmargin"><$ FormatDateTime(tr("%I:%M %p"), timer->StartTime()) $></div></td> <td class="<? bottom ? "bottomrow" ?>"><div class="withmargin"><$ FormatDateTime(tr("%I:%M %p"), timer->StopTime()) $></div></td> <td class="<? bottom ? "bottomrow" ?>"><div class="withmargin"><a -% if (!longDescription.empty()) { +% if (!longDescription.empty()) { <& tooltip.hint text=(longDescription) &><& tooltip.display domId=(epgEvent->Id()) &> % } ><$ timer->File() $></a></div> |