[Xfce4-commits] <postler:master> Show a Send Again button next to own messages

Christian Dywan noreply at xfce.org
Mon Jul 18 00:50:03 CEST 2011


Updating branch refs/heads/master
         to ee915c1e96b27cbccf2db34bb7de79f470be0471 (commit)
       from da8c2d56a95becb40071a75d50cce52556ca0b86 (commit)

commit ee915c1e96b27cbccf2db34bb7de79f470be0471
Author: Christian Dywan <christian at twotoasts.de>
Date:   Sun Jul 17 22:46:39 2011 +0200

    Show a Send Again button next to own messages

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

diff --git a/postler/postler-content.vala b/postler/postler-content.vala
index fb371a6..0f8079b 100644
--- a/postler/postler-content.vala
+++ b/postler/postler-content.vala
@@ -788,8 +788,15 @@ public class Postler.Content : WebKit.WebView {
                             sender_name, html_escape (Contact.address_from_string (child.sender))))));
                     }
 
-                    reply_chunk.append ("""
-                        <div class="actions">
+                    reply_chunk.append ("<div class=\"actions\">");
+                    if (sender_name == _("You")) {
+                        reply_chunk.append_printf ("""
+                            <a href="mailto:%s" class="button">%s</a>
+                            """.printf (
+                            html_escape (reply_uri (child, "")), _("Send Again")));
+                    }
+                    reply_chunk.append_printf (
+                        """
                         <a href="mailto:%s" class="button">%s</a>
                         <a href="mailto:%s" class="button">%s</a></div>
                         """.printf (



More information about the Xfce4-commits mailing list