From fa544b236d00229ee6c000758b794ad597d4933a Mon Sep 17 00:00:00 2001 From: Andrew Nicols Date: Fri, 22 Jan 2016 09:49:33 +0800 Subject: [PATCH] MDL-52137 mod_forum: Move digest body to shared template --- .../forum_post_email_htmlemail.mustache | 56 +------- .../forum_post_email_htmlemail_body.mustache | 134 ++++++++++++++++++ ...um_post_emaildigestfull_htmlemail.mustache | 2 +- 3 files changed, 136 insertions(+), 56 deletions(-) create mode 100644 mod/forum/templates/forum_post_email_htmlemail_body.mustache diff --git a/mod/forum/templates/forum_post_email_htmlemail.mustache b/mod/forum/templates/forum_post_email_htmlemail.mustache index f354b2333a7..a30885df905 100644 --- a/mod/forum/templates/forum_post_email_htmlemail.mustache +++ b/mod/forum/templates/forum_post_email_htmlemail.mustache @@ -92,61 +92,7 @@ {{/ showdiscussionname }} - - - - - - - - - -
- {{{ authorpicture }}} - -
- {{{ subject }}} -
-
- {{# str }} bynameondate, forum, { "name": "{{ authorfullname }}", "date": "{{ postdate }}" } {{/ str }} -
-
- {{# grouppicture }} - {{{ grouppicture }}} - {{/ grouppicture }} - {{^ grouppicture }} -   - {{/ grouppicture }} - - {{# attachments }} -
- {{{ attachments }}} -
- {{/ attachments }} - {{{ message }}} - -
- {{^ firstpost }} - - {{# str }} parent, forum {{/ str }} - - {{# canreply }} - | - {{/ canreply }} - {{/ firstpost }} - {{# canreply }} - - {{# str }} reply, forum {{/ str }} - - {{/ canreply }} -
- - -
+{{> mod_forum/forum_post_email_htmlemail_body }}