[Xfce4-commits] <postler:master> Render avatar images in fallback style sheet

Christian Dywan noreply at xfce.org
Tue Jul 5 18:14:07 CEST 2011


Updating branch refs/heads/master
         to db7802c4260a8b8b371f68c29b6440b794f8dbda (commit)
       from 26f7b5e44a35f5ca6a5920e1de8c34fe8de5cf12 (commit)

commit db7802c4260a8b8b371f68c29b6440b794f8dbda
Author: Christian Dywan <christian at twotoasts.de>
Date:   Tue Jul 5 02:03:11 2011 +0200

    Render avatar images in fallback style sheet

 postler/postler-content.vala |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/postler/postler-content.vala b/postler/postler-content.vala
index a486be8..67f9703 100644
--- a/postler/postler-content.vala
+++ b/postler/postler-content.vala
@@ -52,6 +52,13 @@ public class Postler.Content : WebKit.WebView {
         .sender {
             margin-bottom: 0.5em;
         }
+        .avatar {
+            display: none;
+        }
+        .avatar[src^=file] {
+            display: inline;
+            float: right;
+        }
         .button, .button[href] {
             padding: 0.4em 1em !important;
             -webkit-appearance: push-button !important;
@@ -730,7 +737,7 @@ public class Postler.Content : WebKit.WebView {
                 content_template = outgoing_template = """
                     <div class="reply">
                     <div class="sender">%sender%<div class="time">%time{%X}%</div></div>
-                    %message%
+                    <img src="%userIconPath%" class="avatar">%message%
                     </div>
                     </div>
                     """;



More information about the Xfce4-commits mailing list