pyc-website
main website for pyc inc.
git clone https://9o.is/git/pyc-website.git
commit 0b8d127557611af42f46cbff48cba2e185aa0462 parent 12a6eb9f1df73f88a468b0a5fc3b2b5bcef07310 Author: Jul <jul@9o.is> Date: Sun, 6 Jul 2014 23:51:29 -0400 HtmlEmail support for simple message in text Diffstat:
| M | src/main/scala/inc/pyc/lib/HtmlEmail.scala | | | 17 | +++++++++++++++++ |
1 file changed, 17 insertions(+), 0 deletions(-)
diff --git a/src/main/scala/inc/pyc/lib/HtmlEmail.scala b/src/main/scala/inc/pyc/lib/HtmlEmail.scala @@ -44,6 +44,23 @@ object HtmlEmail { /** * Creates main HTML template message with an action button. */ + def simpleMessage( + title: String, + subtitle: String, + body: String): Box[NodeSeq] = { + + create(body.take(50), title, subtitle, + <span> + <br/> + {Text(body)} + <br/> + </span> + ) + } + + /** + * Creates main HTML template message with an action button. + */ def createAction( teaser: String, title: String,