{{! This file is part of Moodle - http://moodle.org/ Moodle is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Moodle is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Moodle. If not, see . }} {{! @template mod_forum/forum_discussion_post Template to render a single post from a discussion. Classes required for JS: * none Data attributes required for JS: * none Example context (json): { } }}
{{#isfirstunread}}{{/isfirstunread}}
{{^isdeleted}} {{#author}}
{{#urls.profileimage}} {{/urls.profileimage}}
{{/author}} {{/isdeleted}}
{{#parentauthorname}} {{#str}} inreplyto, mod_forum, {{.}} {{/str}} {{/parentauthorname}}

{{$subject}}{{{subject}}}{{/subject}}

{{^isdeleted}}
{{#html.authorsubheading}}{{{.}}}{{/html.authorsubheading}} {{^html.authorsubheading}} {{/html.authorsubheading}}
{{/isdeleted}} {{#isprivatereply}}
{{#str}}postisprivatereply, forum{{/str}}
{{/isprivatereply}} {{#hasreplycount}} {{#str}} numberofreplies, mod_forum, {{replycount}} {{/str}} {{/hasreplycount}}
{{^isdeleted}} {{#author}}
{{#groups}} {{#urls.image}} {{/urls.image}} {{/groups}}
{{/author}} {{/isdeleted}}
{{{message}}}
{{^isdeleted}} {{#haswordcount}}

{{#str}} numwords, core, {{wordcount}} {{/str}}

{{/haswordcount}} {{#attachments}} {{#isimage}}
{{#str}} attachmentname, mod_forum, {{filename}} {{/str}} {{#urls.export}} {{#pix}} t/portfolioadd, core {{/pix}} {{/urls.export}} {{#html.plagiarism}}
{{{.}}}
{{/html.plagiarism}}
{{/isimage}} {{/attachments}} {{{html.taglist}}} {{#attachments}} {{^isimage}}
{{#pix}} {{icon}}, core {{/pix}} {{filename}} {{#urls.export}} {{#pix}} t/portfolioadd, core {{/pix}} {{/urls.export}} {{#html.plagiarism}}
{{{.}}}
{{/html.plagiarism}}
{{/isimage}} {{/attachments}}
{{#html.rating}}
{{{.}}}
{{/html.rating}} {{$actions}} {{^readonly}} {{/readonly}} {{/actions}}
{{$footer}}{{/footer}} {{/isdeleted}}
{{$replies}}
{{#hasreplies}} {{#replies}} {{> mod_forum/forum_discussion_post }} {{/replies}} {{/hasreplies}}
{{/replies}}