Added span's for the modified/original date fields so they can be styled modified-date
authorBart Lantz <bartlantz@gmail.com>
Sat, 17 Dec 2011 22:45:40 +0000 (15:45 -0700)
committerBenjamin Mako Hill <mako@atdot.cc>
Sun, 8 Apr 2012 18:17:26 +0000 (14:17 -0400)
I added separate spans for the updated and original field's of the bookmarks,
I also added some default CSS styling.

scuttle.css
templates/bookmarks.tpl.php

index fba69334dfe08a46b5a4c341e4d286110978ff3d..57b1ae093319930030738cd4a763af227d6ca5a5 100644 (file)
@@ -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;
index d068a9a725a4ca5b1cc6455f04f150ef45e8d41b..a53559074d03f57f9a69358a7b52dabd3113d601 100644 (file)
@@ -103,7 +103,7 @@ if (count($bookmarks) > 0) {
         if ($row['bDatetime'] == $row['bModified']) {
             echo '<div class="meta">'. date($GLOBALS['shortdate'], strtotime($row['bDatetime'])) . $cats . $copy . $edit ."</div>\n";
         } else {
-            echo '<div class="meta">updated: '. date($GLOBALS['shortdate'], strtotime($row['bModified'])) . ", original: ". date($GLOBALS['shortdate'], strtotime($row['bDatetime'])) . $cats . $copy . $edit ."</div>\n";
+            echo '<div class="meta"><span id="date-updated">updated: '. date($GLOBALS['shortdate'], strtotime($row['bModified'])) . '</span>, <span id="date-original">original: '. date($GLOBALS['shortdate'], strtotime($row['bDatetime'])) . "</span>" . $cats . $copy . $edit ."</div>\n";
         }
         echo "</li>\n";
     }

Benjamin Mako Hill || Want to submit a patch?