projects
/
Sone.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
41789ed
)
Show Sone logo when not logged in, show avatar when logged in.
author
David ‘Bombe’ Roden
<bombe@pterodactylus.net>
Fri, 5 Nov 2010 09:49:27 +0000
(10:49 +0100)
committer
David ‘Bombe’ Roden
<bombe@pterodactylus.net>
Fri, 5 Nov 2010 09:49:27 +0000
(10:49 +0100)
src/main/resources/static/css/sone.css
patch
|
blob
|
history
src/main/resources/static/images/sone-offline.png
[deleted file]
patch
|
blob
|
history
src/main/resources/templates/include/head.html
patch
|
blob
|
history
diff --git
a/src/main/resources/static/css/sone.css
b/src/main/resources/static/css/sone.css
index
9250410
..
5f43ae3
100644
(file)
--- a/
src/main/resources/static/css/sone.css
+++ b/
src/main/resources/static/css/sone.css
@@
-67,16
+67,10
@@
textarea {
#sone #profile.online .picture {
position: absolute;
#sone #profile.online .picture {
position: absolute;
- background-image: url("../images/sone.png");
- width: 80px;
- height: 80px;
}
#sone #profile.offline .picture {
position: absolute;
}
#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 {
}
#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
diff --git
a/src/main/resources/templates/include/head.html
b/src/main/resources/templates/include/head.html
index
19a5f38
..
c1ea806
100644
(file)
--- a/
src/main/resources/templates/include/head.html
+++ b/
src/main/resources/templates/include/head.html
@@
-132,7
+132,13
@@
<%/if>
<div id="profile" class="<%ifnull currentSone>offline<%else>online<%/if>">
<%/if>
<div id="profile" class="<%ifnull currentSone>offline<%else>online<%/if>">
- <a class="picture" href="index.html"> </a>
+ <a class="picture" href="index.html">
+ <%ifnull !currentSone>
+ <img src="/WoT/GetIdenticon?identity=<% currentSone.id|html>&width=80&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>
<%ifnull ! currentSone>
<div id="home-sone">
<% currentSone|store key=sone>