Use straight logo, show desaturated logo when no Sone is logged in.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 19 Oct 2010 12:18:28 +0000 (14:18 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 19 Oct 2010 12:18:28 +0000 (14:18 +0200)
src/main/resources/static/css/sone.css
src/main/resources/static/images/sone-offline.png [new file with mode: 0644]
src/main/resources/static/images/sone.png
src/main/resources/templates/include/head.html

index b0d0691..5a4b009 100644 (file)
        color: rgb(28, 131, 191);
 }
 
-#sone #profile .picture {
+#sone #profile.online .picture {
        float: left;
+       background-image: url("../images/sone.png");
+       width: 80px;
+       height: 80px;
+}
+
+#sone #profile.offline .picture {
+       float: left;
+       background-image: url("../images/sone-offline.png");
+       width: 80px;
+       height: 80px;
+}
+
+#sone #profile.offline .edit-profile-link, #sone #profile.offline .profile-link {
+       display: none;
 }
 
 #sone #profile .edit-profile-link {
diff --git a/src/main/resources/static/images/sone-offline.png b/src/main/resources/static/images/sone-offline.png
new file mode 100644 (file)
index 0000000..b10a4b7
Binary files /dev/null and b/src/main/resources/static/images/sone-offline.png differ
index a104124..e9c189d 100644 (file)
Binary files a/src/main/resources/static/images/sone.png and b/src/main/resources/static/images/sone.png differ
index 84af01a..9b27cc7 100644 (file)
@@ -5,8 +5,8 @@
 
        <div id="sidebar">
 
-               <div id="profile">
-                       <div class="picture"><img src="images/sone.png" width="80" height="80" alt="Sone Logo" /></div>
+               <div id="profile" class="<%ifnull currentSone>offline<%else>online<%/if>">
+                       <div class="picture"></div>
                        <div class="nice-name profile-link"><a href="viewSone.html?sone=<% currentSone.id>"><% currentSone.niceName|html></a></div>
                        <div class="edit-profile-link"><a href="editProfile.html"><%= View.Head.ProfileLink.Text|l10n|html></a></div>
                </div>