summaryrefslogtreecommitdiff
path: root/pages/recordings.ecpp
diff options
context:
space:
mode:
Diffstat (limited to 'pages/recordings.ecpp')
-rw-r--r--pages/recordings.ecpp15
1 files changed, 11 insertions, 4 deletions
diff --git a/pages/recordings.ecpp b/pages/recordings.ecpp
index 4993284..ebc68e7 100644
--- a/pages/recordings.ecpp
+++ b/pages/recordings.ecpp
@@ -102,10 +102,10 @@ for (iter = recordingsTree.begin(path); iter != end; ++iter) {
}
string day(FormatDateTime("%a,", recItem->StartTime()));
string dayLen(lexical_cast<string, int>(day.length() - 1) + ".25em;");
- string shortDescr(tr("Click to view details.")); if (epgEvent && !epgEvent->ShortDescr().empty()) shortDescr = (epgEvent->ShortDescr() + string("<br />") + shortDescr);
+ string hint(tr("Click to view details.")); if (epgEvent && !epgEvent->ShortDescr().empty()) hint = (epgEvent->ShortDescr() + "<br />" + hint);
</%cpp>
<li class="recording">
- <& rec_item_file name=(recItem->Name()) level=(level) id=(recItem->Id()) day=(day) dayLen=(dayLen) startTime=(recItem->StartTime()) shortDescr=(shortDescr) archived=(epgEvent ? epgEvent->Archived() : "") archiveId=(recItem->ArchiveId()) &>
+ <& rec_item_file name=(recItem->Name()) level=(level) id=(recItem->Id()) day=(day) dayLen=(dayLen) startTime=(recItem->StartTime()) hint=(hint) shortDescr=(epgEvent ? epgEvent->ShortDescr() : "") archived=(epgEvent ? epgEvent->Archived() : "") archiveId=(recItem->ArchiveId()) &>
</li>
<%cpp>
}
@@ -177,6 +177,7 @@ for (iter = recordingsTree.begin(path); iter != end; ++iter) {
string day;
string dayLen;
time_t startTime;
+ string hint;
string shortDescr;
string archived;
string archiveId;
@@ -187,8 +188,7 @@ for (iter = recordingsTree.begin(path); iter != end; ++iter) {
<div class="recording_day" style="width: <$ dayLen $>"><$ day $></div>
<div class="recording_date"><$ FormatDateTime(tr("%b %d %y"), startTime) $></div>
<div class="recording_time"><$ FormatDateTime(tr("%I:%M %p"), startTime) $></div>
- <div class="recording_name" <& tooltip.hint text=(shortDescr) &><& tooltip.display domId=(id) &>><$ name $></div>
- <%cpp> if (! archived.empty()) { </%cpp><div><$ archived $></div><%cpp> } </%cpp>
+ <div class="recording_name" <& tooltip.hint text=(hint) &><& tooltip.display domId=(id) &>><$ name $><br /><%cpp>if ((name != shortDescr) && (!shortDescr.empty())) {</%cpp><span><$ shortDescr $></span><%cpp> } else { </%cpp><span>&nbsp;</span><%cpp> } </%cpp></div>
</div>
<div class="recording_actions">
<%cpp>
@@ -206,5 +206,12 @@ for (iter = recordingsTree.begin(path); iter != end; ++iter) {
<img src="edit.png" alt="" />
<img src="del.png" alt="" />
</div>
+<%cpp>
+ if (! archived.empty()) {
+</%cpp>
+ <div class="recording_arch"><$ archived $></div>
+<%cpp>
+ }
+</%cpp>
</div>
</%def>