From: David ‘Bombe’ Roden Date: Wed, 7 Dec 2011 06:24:12 +0000 (+0100) Subject: Show custom avatar where applicable. X-Git-Tag: 0.7.6^2~1^2~12 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=1b25052b79d18b8b7af4eae95358ae0635da46a1;p=Sone.git Show custom avatar where applicable. --- diff --git a/src/main/resources/static/css/sone.css b/src/main/resources/static/css/sone.css index fc09d95..d5880b1 100644 --- a/src/main/resources/static/css/sone.css +++ b/src/main/resources/static/css/sone.css @@ -171,6 +171,14 @@ textarea { 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); @@ -280,6 +288,13 @@ textarea { 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; @@ -445,6 +460,13 @@ textarea { 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; diff --git a/src/main/resources/templates/include/head.html b/src/main/resources/templates/include/head.html index ae642dc..efb5ddf 100644 --- a/src/main/resources/templates/include/head.html +++ b/src/main/resources/templates/include/head.html @@ -40,13 +40,19 @@
- - <%ifnull !currentSone> - Profile Avatar - <%else> - Sone is offline - <%/if> - + <%ifnull ! currentSone>
<% currentSone|store key=sone> diff --git a/src/main/resources/templates/include/soneMenu.html b/src/main/resources/templates/include/soneMenu.html index 128e389..6684ee6 100644 --- a/src/main/resources/templates/include/soneMenu.html +++ b/src/main/resources/templates/include/soneMenu.html @@ -1,6 +1,12 @@
- Avatar Image +
<%sone.niceName|html> diff --git a/src/main/resources/templates/include/viewPost.html b/src/main/resources/templates/include/viewPost.html index a478bba..fd54e5d 100644 --- a/src/main/resources/templates/include/viewPost.html +++ b/src/main/resources/templates/include/viewPost.html @@ -6,7 +6,11 @@ <%include include/soneMenu.html class=="sone-post-menu" sone=post.sone>
<%if post.loaded> - Avatar Image + <%ifnull !post.sone.avatar> + <%post.sone.avatar|image-link max-width=48 max-height=48 mode=enlarge title="Avatar Image"> + <%else> + Avatar Image + <%/if> <%else> Avatar Image <%/if> diff --git a/src/main/resources/templates/include/viewReply.html b/src/main/resources/templates/include/viewReply.html index f8e3e64..3d9c33e 100644 --- a/src/main/resources/templates/include/viewReply.html +++ b/src/main/resources/templates/include/viewReply.html @@ -5,7 +5,11 @@ <%include include/soneMenu.html class=="sone-reply-menu" sone=reply.sone>
- Avatar Image + <%ifnull !reply.sone.avatar> + <% reply.sone.avatar|image-link max-width=36 max-height=36 mode=enlarge title="Avatar Image"> + <%else> + Avatar Image + <%/if>