From: Bart Lantz Date: Sat, 17 Dec 2011 19:27:50 +0000 (-0700) Subject: Added original date and updated date to bookmark output if different. X-Git-Url: https://projects.mako.cc/source/scuttle/commitdiff_plain/fbab1fbe884c9f1f0fbd419ad0db0793ef52dbaf?ds=sidebyside;hp=915b57486bf9e069ba8589753330849d4cee54a2 Added original date and updated date to bookmark output if different. If bModified is different from bDatetime, the bookmark is ordered by modified time from a previous commit, this commit prints both the modified date as well as the original date if they are different, to avoid confusion. --- diff --git a/templates/bookmarks.tpl.php b/templates/bookmarks.tpl.php index c79655e..d068a9a 100644 --- a/templates/bookmarks.tpl.php +++ b/templates/bookmarks.tpl.php @@ -100,7 +100,11 @@ if (count($bookmarks) > 0) { if ($row['bDescription'] != '') { echo '
'. filter($row['bDescription']) ."
\n"; } - echo '
'. date($GLOBALS['shortdate'], strtotime($row['bDatetime'])) . $cats . $copy . $edit ."
\n"; + if ($row['bDatetime'] == $row['bModified']) { + echo '
'. date($GLOBALS['shortdate'], strtotime($row['bDatetime'])) . $cats . $copy . $edit ."
\n"; + } else { + echo '
updated: '. date($GLOBALS['shortdate'], strtotime($row['bModified'])) . ", original: ". date($GLOBALS['shortdate'], strtotime($row['bDatetime'])) . $cats . $copy . $edit ."
\n"; + } echo "\n"; } ?>