From: Bart Lantz Date: Sat, 17 Dec 2011 22:45:40 +0000 (-0700) Subject: Added span's for the modified/original date fields so they can be styled X-Git-Url: https://projects.mako.cc/source/scuttle/commitdiff_plain/6fb8790fb4ced6b18a5c7a22d02e0cf15516231a?ds=sidebyside Added span's for the modified/original date fields so they can be styled I added separate spans for the updated and original field's of the bookmarks, I also added some default CSS styling. --- diff --git a/scuttle.css b/scuttle.css index fba6933..57b1ae0 100644 --- a/scuttle.css +++ b/scuttle.css @@ -181,6 +181,14 @@ div.meta { div.meta span { color: #F00; } +/* bookmark date fields: updated and created */ +div.meta span#date-updated { + color: #285; +} +div.meta span#date-original { + background: #eee; + color: #aaa; +} li.xfolkentry { border-bottom: 1px solid #DDD; margin-bottom: 0; diff --git a/templates/bookmarks.tpl.php b/templates/bookmarks.tpl.php index d068a9a..a535590 100644 --- a/templates/bookmarks.tpl.php +++ b/templates/bookmarks.tpl.php @@ -103,7 +103,7 @@ if (count($bookmarks) > 0) { 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 '
updated: '. date($GLOBALS['shortdate'], strtotime($row['bModified'])) . ', original: '. date($GLOBALS['shortdate'], strtotime($row['bDatetime'])) . "" . $cats . $copy . $edit ."
\n"; } echo "\n"; }