You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by se...@apache.org on 2019/01/20 09:55:46 UTC

[whimsy] branch mod-gui updated: Show Reply-To (array)

This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch mod-gui
in repository https://gitbox.apache.org/repos/asf/whimsy.git


The following commit(s) were added to refs/heads/mod-gui by this push:
     new 08ed658  Show Reply-To (array)
08ed658 is described below

commit 08ed658ae622f244c5f72a46c3b182c646fbbaee
Author: Sebb <se...@apache.org>
AuthorDate: Sun Jan 20 09:55:45 2019 +0000

    Show Reply-To (array)
---
 www/moderation/desk/models/message.rb  | 4 ++++
 www/moderation/desk/views/body.html.rb | 5 +++++
 2 files changed, 9 insertions(+)

diff --git a/www/moderation/desk/models/message.rb b/www/moderation/desk/models/message.rb
index 78814ea..0efd849 100644
--- a/www/moderation/desk/models/message.rb
+++ b/www/moderation/desk/models/message.rb
@@ -73,6 +73,10 @@ class Message
     mail.return_path
   end
 
+  def reply_to
+    mail.reply_to
+  end
+
   def to
     mail[:to]
   end
diff --git a/www/moderation/desk/views/body.html.rb b/www/moderation/desk/views/body.html.rb
index c980c59..48ef3a3 100644
--- a/www/moderation/desk/views/body.html.rb
+++ b/www/moderation/desk/views/body.html.rb
@@ -27,6 +27,11 @@ _html do
     end
 
     _tr do
+      _td 'Reply-To: '
+      _td @message.reply_to
+    end
+
+    _tr do
       _td 'To:'
       _td @message.to
     end