You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by ru...@apache.org on 2016/09/29 22:53:22 UTC
[whimsy] branch master updated: flow message bodies
This is an automated email from the ASF dual-hosted git repository.
rubys pushed a commit to branch master
in repository https://git-dual.apache.org/repos/asf/whimsy.git
The following commit(s) were added to refs/heads/master by this push:
new 9c2b0cb flow message bodies
9c2b0cb is described below
commit 9c2b0cb9098a797cacf44d2816a99028f994e7fe
Author: Sam Ruby <ru...@intertwingly.net>
AuthorDate: Thu Sep 29 18:52:51 2016 -0400
flow message bodies
---
www/secmail/server.rb | 1 +
www/secmail/views/body.html.rb | 5 ++++-
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/www/secmail/server.rb b/www/secmail/server.rb
index 03f9221..216376d 100644
--- a/www/secmail/server.rb
+++ b/www/secmail/server.rb
@@ -122,6 +122,7 @@ end
# message body for a single message
get %r{^/(\d{6})/(\w+)/_body_$} do |month, hash|
@message = Mailbox.new(month).find(hash)
+ @cssmtime = File.mtime('public/secmail.css').to_i
pass unless @message
_html :body
end
diff --git a/www/secmail/views/body.html.rb b/www/secmail/views/body.html.rb
index 1aab465..204c02d 100644
--- a/www/secmail/views/body.html.rb
+++ b/www/secmail/views/body.html.rb
@@ -3,6 +3,9 @@
#
_html do
+ _link rel: 'stylesheet', type: 'text/css',
+ href: "../../secmail.css?#{@cssmtime}"
+
#
# Selected headers
#
@@ -54,6 +57,6 @@ _html do
body.force_encoding(@message.text_part.charset)
end
- _pre body.encode('utf-8', invalid: :replace, undef: :replace)
+ _pre.bg_info body.encode('utf-8', invalid: :replace, undef: :replace)
end
end
--
To stop receiving notification emails like this one, please contact
['"commits@whimsical.apache.org" <co...@whimsical.apache.org>'].