[Xfce4-commits] <postler:master> Render Reply and Forward below each reply

Christian Dywan noreply at xfce.org
Wed Jun 29 20:02:02 CEST 2011


Updating branch refs/heads/master
         to 2a058ce85f7bd5e6a830765498e3c4516827df62 (commit)
       from 8ea33c0649f90a3aea47a41bdb42f991ad9aa046 (commit)

commit 2a058ce85f7bd5e6a830765498e3c4516827df62
Author: Christian Dywan <christian at twotoasts.de>
Date:   Tue Jun 28 22:29:40 2011 +0200

    Render Reply and Forward below each reply
    
    This is the design part, logic will follow.

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

diff --git a/postler/postler-content.vala b/postler/postler-content.vala
index 99b2a4a..f4c1bc7 100644
--- a/postler/postler-content.vala
+++ b/postler/postler-content.vala
@@ -107,10 +107,10 @@ public class Postler.Content : WebKit.WebView {
         .signature:before {
             content: "——";
         }
-        .attachments {
+        .actions {
             float: right;
         }
-        .attachments a, .attachments a[href] {
+        .actions a, .actions a[href] {
             padding: 0.4em 1em;
             -webkit-appearance: push-button;
             color: ButtonText !important;
@@ -704,6 +704,14 @@ public class Postler.Content : WebKit.WebView {
                     reply_chunk.append (render_plain_text (text_part.body.str, child.project));
                 else
                     reply_chunk.append (child.parts.nth_data (0).body.str);
+                /* FIXME: Move Bureau.compose_message () here */
+                reply_chunk.append ("""
+                    <div class="actions">
+                    <a href="mailto:%s?subject=Re: %s">%s</a>
+                    <a href="mailto:%s?subject=Fw: %s">%s</a></div>
+                    """.printf (
+                    child.sender, child.subject, _("Reply"),
+                    child.sender, child.subject, _("Forward")));
 
                 string reply_markup;
                 reply_markup = content_template.replace ("%message%", reply_chunk.str);
@@ -724,7 +732,7 @@ public class Postler.Content : WebKit.WebView {
                         reply_markup = status_template.replace ("%time%", "");
                         reply_markup = reply_markup.replace ("%message%",
                             """
-                            <b>%s</b><div class="attachments">
+                            <b>%s</b><div class="actions">
                             <a href="message-part:save:%d">%s</a>
                             <a href="message-part:open:%d">%s</a></div>
                             """.printf (



More information about the Xfce4-commits mailing list