Add CSS class for new Sones.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 8 Nov 2010 19:46:47 +0000 (20:46 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 10 Nov 2010 19:50:11 +0000 (20:50 +0100)
src/main/resources/static/css/sone.css
src/main/resources/templates/include/viewSone.html

index 74f9c93..2883b2b 100644 (file)
@@ -296,6 +296,10 @@ textarea {
        background-color: #f0fff0;
 }
 
+#sone .sone.new {
+       background-color: #ffffa0;
+}
+
 #sone .sone .id {
        display: none;
 }
index 9cebc9c..453a093 100644 (file)
@@ -1,4 +1,4 @@
-<div class="sone <% sone.status|html><%if sone.modified> modified<%/if> <% sone.id|css|html><%if sone.local> local<%/if>">
+<div class="sone <% sone.status|html><%if sone.modified> modified<%/if> <% sone.id|css|html><%if sone.local> local<%/if><%if sone.new> new<%/if>">
        <div class="id"><% sone.id|html></div>
        <div class="unknown-marker" title="<%= View.Sone.Status.Unknown|l10n|html>">?</div>
        <div class="modified-marker" title="<%= View.Sone.Status.Modified|l10n|html>">!</div>