Show markers for Sone statuses.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 19 Oct 2010 07:01:46 +0000 (09:01 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 19 Oct 2010 07:01:46 +0000 (09:01 +0200)
src/main/resources/static/css/sone.css
src/main/resources/templates/include/viewSone.html

index 0ae0e32..cc94ce0 100644 (file)
        display: inline;
 }
 
+#sone .sone .download-marker, #sone .sone .insert-marker, #sone .sone .idle-marker {
+       display: inline;
+}
+
+#sone .sone.idle .download-marker, #sone .sone.idle .insert-marker {
+       display: none;
+}
+
+#sone .sone.downloading .insert-marker, #sone .sone.downloading .idle-marker {
+       display: none;
+}
+
+#sone .sone.inserting .download-marker, #sone .sone.inserting .idle-marker {
+       display: none;
+}
+
+#sone .sone .modified-marker {
+       display: none;
+}
+
+#sone .sone.modified .modified-marker {
+       display: inline;
+}
+
 #sone .sone .last-update {
        display: inline;
 }
index a5debbc..868cd70 100644 (file)
@@ -1,6 +1,10 @@
-<div class="sone">
+<div class="sone <% sone.status><%if sone.modified> modified<%/if>">
        <div class="profile-link"><a href="viewSone.html?sone=<% sone.id>" title="<% sone.requestUri|html>"><% sone.niceName|html></a></div>
        <div class="last-update">(<%= View.Sone.Label.LastUpdate|l10n|html> <% sone.time|date format="MMM d, yyyy, HH:mm:ss">)</div>
+       <div class="modified-marker">!</div>
+       <div class="download-marker">⬊</div>
+       <div class="insert-marker">⬈</div>
+       <div class="idle-marker"></div>
        <%ifnull ! currentSone>
                <%if ! sone.current>
                        <%if sone.friend>