mirror of
https://github.com/maxpozdeev/mytinytodo.git
synced 2026-03-11 08:55:27 +00:00
+ ability to use feed of current tasks (without completed);
+ added date of task completion to feed
This commit is contained in:
parent
4960c0467d
commit
f2aa838179
1 changed files with 6 additions and 0 deletions
|
|
@ -32,6 +32,11 @@ elseif($feedType == 'modified') {
|
|||
$listData['_uid_field'] = 'd_edited';
|
||||
$listData['_feed_descr'] = $lang->get('feed_modified_tasks');
|
||||
}
|
||||
elseif($feedType == 'current') {
|
||||
$listData['_uid_field'] = 'd_created';
|
||||
$listData['_feed_descr'] = $lang->get('feed_new_tasks');
|
||||
$sqlWhere = 'AND compl=0';
|
||||
}
|
||||
else {
|
||||
$listData['_uid_field'] = 'd_created';
|
||||
$listData['_feed_descr'] = $lang->get('feed_new_tasks');
|
||||
|
|
@ -52,6 +57,7 @@ while($r = $q->fetch_assoc($q))
|
|||
$a[] = $lang->get('due'). ": ".formatDate3(Config::get('dateformat'), (int)$ad[0], (int)$ad[1], (int)$ad[2], $lang);
|
||||
}
|
||||
if($r['tags'] != '') $a[] = $lang->get('tags'). ": ". str_replace(',', ', ', $r['tags']);
|
||||
if($r['compl']) $a[] = $lang->get('taskdate_completed'). ": ". timestampToDatetime($r['d_completed']);
|
||||
$r['title'] = strip_tags($r['title']);
|
||||
$r['note'] = escapeTags($r['note']);
|
||||
$r['_descr'] = nl2br($r['note']). ($a && $r['note']!='' ? "<br/><br/>" : ""). implode("<br/>", htmlarray($a));
|
||||
|
|
|
|||
Loading…
Reference in a new issue