|
@@ -618,7 +618,7 @@
|
618
|
618
|
so += 1;
|
619
|
619
|
}
|
620
|
620
|
});
|
621
|
|
- if(c > 0 || s > 0) {
|
|
621
|
+ if(c > 0 || so > 0) {
|
622
|
622
|
output.writeStartElement("a");
|
623
|
623
|
output.writeAttribute("href", "typica://script/reminders");
|
624
|
624
|
startCell(output, TTR("navwindow", "Reminders"));
|
|
@@ -626,12 +626,25 @@
|
626
|
626
|
var summaryText;
|
627
|
627
|
if(c > 0) {
|
628
|
628
|
summaryText = "" + c + TTR("navwindow", " reminders due");
|
|
629
|
+ for(var i = 0; i < c; i++) {
|
|
630
|
+ output.writeStartElement("div");
|
|
631
|
+ output.writeAttribute("class", "reminder");
|
|
632
|
+ output.writeTextElement("p", s[i].title);
|
|
633
|
+ output.writeTextElement("p", Math.floor(s[i].completion * 100) + "%");
|
|
634
|
+ output.writeTextElement("p", s[i].detail);
|
|
635
|
+ output.writeEndElement();
|
|
636
|
+ }
|
629
|
637
|
} else {
|
630
|
|
- summaryText = "" + s + TTR("navwindow", " reminders due soon");
|
|
638
|
+ summaryText = "" + so + TTR("navwindow", " reminders due soon");
|
|
639
|
+ for(var i = 0; i < so; i++) {
|
|
640
|
+ output.writeStartElement("div");
|
|
641
|
+ output.writeAttribute("class", "reminder");
|
|
642
|
+ output.writeTextElement("p", s[i].title);
|
|
643
|
+ output.writeTextElement("p", Math.floor(s[i].completion * 100) + "%");
|
|
644
|
+ output.writeTextElement("p", s[i].detail);
|
|
645
|
+ output.writeEndElement();
|
|
646
|
+ }
|
631
|
647
|
}
|
632
|
|
- output.writeTextElement("p", s[0].title);
|
633
|
|
- output.writeTextElement("p", Math.floor(s[0].completion * 100) + "%");
|
634
|
|
- output.writeTextElement("p", s[0].detail);
|
635
|
648
|
endStage(output);
|
636
|
649
|
endCell(output, summaryText);
|
637
|
650
|
output.writeEndElement();
|