margin-bottom: 1ex;
}
+#sone .profile-avatar {
+ display: inline-block;
+ width: 80px;
+ height: 80px;
+ overflow: hidden;
+ position: absolute;
+}
+
#sone .profile-link {
font-weight: bold;
color: rgb(28, 131, 191);
margin-right: 1ex;
}
+#sone .menu-avatar {
+ display: inline-block;
+ width: 48px;
+ height: 48px;
+ overflow: hidden;
+}
+
#sone .post .sone-menu .inner-menu {
margin-left: 64px;
padding-left: 1ex;
position: absolute;
}
+#sone .reply-avatar {
+ display: inline-block;
+ width: 36px;
+ height: 36px;
+ overflow: hidden;
+}
+
#sone .post .reply > .inner-part {
margin-left: 36px;
padding-left: 0.5em;
</div>
<div id="profile" class="<%ifnull currentSone>offline<%else>online<%/if>">
- <a class="picture" href="index.html">
- <%ifnull !currentSone>
- <img src="/WebOfTrust/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>
+ <div class="avatar profile-avatar">
+ <a class="picture" href="index.html">
+ <%ifnull !currentSone>
+ <%ifnull !currentSone.avatar>
+ <%currentSone.avatar|image-link max-width=80 max-height=80 mode=enlarge title="Profile Avatar">
+ <%else>
+ <img src="/WebOfTrust/GetIdenticon?identity=<% currentSone.id|html>&width=80&height=80" width="80" height="80" alt="Profile Avatar" />
+ <%/if>
+ <%else>
+ <img src="images/sone.png" width="80" height="80" alt="Sone is offline" />
+ <%/if>
+ </a>
+ </div>
<%ifnull ! currentSone>
<div id="home-sone">
<% currentSone|store key=sone>
<div class="sone-menu <% class|css|html>">
<div class="sone-menu-id hidden"><%sone.id|html></div>
- <img class="avatar" src="/WebOfTrust/GetIdenticon?identity=<%sone.id|html>&width=64&height=64" width="64" height="64" alt="Avatar Image" />
+ <div class="avatar menu-avatar">
+ <%ifnull !sone.avatar>
+ <%sone.avatar|image-link max-width=64 max-height=64 mode=enlarge title==sone.niceName>
+ <%else>
+ <img src="/WebOfTrust/GetIdenticon?identity=<%sone.id|html>&width=64&height=64" width="64" height="64" alt="Avatar Image" />
+ <%/if>
+ </div>
<div class="inner-menu">
<div>
<a class="author" href="viewSone.html?sone=<%sone.id|html>"><%sone.niceName|html></a>
<%include include/soneMenu.html class=="sone-post-menu" sone=post.sone>
<div class="avatar post-avatar" >
<%if post.loaded>
- <img src="/WebOfTrust/GetIdenticon?identity=<% post.sone.id|html>&width=48&height=48" width="48" height="48" alt="Avatar Image" />
+ <%ifnull !post.sone.avatar>
+ <%post.sone.avatar|image-link max-width=48 max-height=48 mode=enlarge title="Avatar Image">
+ <%else>
+ <img src="/WebOfTrust/GetIdenticon?identity=<% post.sone.id|html>&width=48&height=48" width="48" height="48" alt="Avatar Image" />
+ <%/if>
<%else>
<img src="images/sone-avatar.png" width="48" height="48" alt="Avatar Image" />
<%/if>
<div class="reply-author-local hidden"><% reply.sone.local></div>
<%include include/soneMenu.html class=="sone-reply-menu" sone=reply.sone>
<div class="avatar reply-avatar">
- <img src="/WebOfTrust/GetIdenticon?identity=<% reply.sone.id|html>&width=36&height=36" width="36" height="36" alt="Avatar Image" />
+ <%ifnull !reply.sone.avatar>
+ <% reply.sone.avatar|image-link max-width=36 max-height=36 mode=enlarge title="Avatar Image">
+ <%else>
+ <img src="/WebOfTrust/GetIdenticon?identity=<% reply.sone.id|html>&width=36&height=36" width="36" height="36" alt="Avatar Image" />
+ <%/if>
</div>
<div class="inner-part">
<div>