Show Sone logo when not logged in, show avatar when logged in.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 5 Nov 2010 09:49:27 +0000 (10:49 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 5 Nov 2010 09:49:27 +0000 (10:49 +0100)
src/main/resources/static/css/sone.css
src/main/resources/static/images/sone-offline.png [deleted file]
src/main/resources/templates/include/head.html

index 9250410..5f43ae3 100644 (file)
@@ -67,16 +67,10 @@ textarea {
 
 #sone #profile.online .picture {
        position: absolute;
-       background-image: url("../images/sone.png");
-       width: 80px;
-       height: 80px;
 }
 
 #sone #profile.offline .picture {
        position: absolute;
-       background-image: url("../images/sone-offline.png");
-       width: 80px;
-       height: 80px;
 }
 
 #sone #profile.offline .edit-profile-link, #sone #profile.offline .profile-link {
diff --git a/src/main/resources/static/images/sone-offline.png b/src/main/resources/static/images/sone-offline.png
deleted file mode 100644 (file)
index 04fda4d..0000000
Binary files a/src/main/resources/static/images/sone-offline.png and /dev/null differ
index 19a5f38..c1ea806 100644 (file)
                <%/if>
 
                <div id="profile" class="<%ifnull currentSone>offline<%else>online<%/if>">
-                       <a class="picture" href="index.html">&nbsp;</a>
+                       <a class="picture" href="index.html">
+                               <%ifnull !currentSone>
+                                       <img src="/WoT/GetIdenticon?identity=<% currentSone.id|html>&amp;width=80&amp;height=80" width="80" height="80" alt="Profile Avatar" />
+                               <%else>
+                                       <img src="images/sone.png" width="80" height="80" alt="Sone is offline" />
+                               <%/if>
+                       </a>
                        <%ifnull ! currentSone>
                                <div id="home-sone">
                                        <% currentSone|store key=sone>