{{! 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_nested_v2_first_post Template to render a single post from a discussion. Classes required for JS: * none Data attributes required for JS: * none Example context (json): { } }} {{#discussionlocked}}
{{#str}} locked, mod_forum {{/str}}
{{/discussionlocked}}
{{! The firstpost and starter classes below aren't used for anything other than to identify the first post in behat. }}
{{#isfirstunread}}{{/isfirstunread}}
{{^isdeleted}} {{#author}} {{#urls.profileimage}} {{/urls.profileimage}} {{/author}} {{/isdeleted}} {{#unread}}
{{#pix}} i/flagged, core {{/pix}}
{{/unread}}
{{^isdeleted}}
{{#author}}

{{#parentauthorname}} {{#isprivatereply}} {{#str}} authorreplyingprivatelytoauthor, mod_forum, { "respondant":"{{fullname}}", "author":"{{parentauthorname}}" } {{/str}} {{/isprivatereply}} {{^isprivatereply}} {{#str}} authorreplyingtoauthor, mod_forum, { "respondant":"{{fullname}}", "author":"{{parentauthorname}}" } {{/str}} {{/isprivatereply}} {{/parentauthorname}} {{^parentauthorname}} {{fullname}} {{/parentauthorname}}

{{/author}} {{< core/time_element }} {{$elementid}}created-{{id}}-{{uniqid}}{{/elementid}} {{$elementclass}}badge badge-light{{/elementclass}} {{$timestampval}}{{timecreated}}{{/timestampval}} {{$userdateformatval}}{{#str}} strftimerecentfull, core_langconfig {{/str}}{{/userdateformatval}} {{/core/time_element}}
{{#author.groups}} {{#urls.image}}
{{#urls.group}} {{/urls.group}} {{^urls.group}} {{#str}} pictureof, core, {{name}} {{/str}} {{/urls.group}}
{{/urls.image}} {{/author.groups}} {{^readonly}} {{#showactionmenu}} {{/showactionmenu}} {{/readonly}}
{{/isdeleted}} {{$subject}}

{{{subject}}}

{{/subject}} {{#hasreplycount}} {{#str}} numberofreplies, mod_forum, {{replycount}} {{/str}} {{/hasreplycount}}
{{{message}}}
{{^isdeleted}} {{#attachments}} {{#isimage}}
{{#str}} attachmentname, mod_forum, {{filename}} {{/str}} {{#urls.export}} {{#pix}} t/portfolioadd, core {{/pix}} {{/urls.export}} {{#html.plagiarism}}
{{{.}}}
{{/html.plagiarism}}
{{/isimage}} {{/attachments}} {{#attachments}} {{^isimage}}
{{#pix}} {{icon}}, core {{/pix}}
{{/isimage}} {{/attachments}}
{{^readonly}} {{#html.rating}}
{{{.}}}
{{/html.rating}} {{/readonly}}
{{#haswordcount}} {{#str}} numwords, core, {{wordcount}} {{/str}} {{/haswordcount}} {{#html.taglist}}
{{{.}}}
{{/html.taglist}}
{{/isdeleted}} {{$footer}} {{^isdeleted}} {{^readonly}}
{{#capabilities.reply}} {{/capabilities.reply}} {{^capabilities.reply}} {{#discussionlocked}} {{/discussionlocked}} {{/capabilities.reply}}
{{/readonly}} {{/isdeleted}} {{/footer}}
{{$replies}}
{{#hasreplies}} {{#replies}} {{> mod_forum/forum_discussion_nested_v2_post_reply }} {{/replies}} {{/hasreplies}}
{{/replies}}