{{! 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/grades/grader/discussion/posts Template to render a list of posts for a discussion. Classes required for JS: * none Data attributes required for JS: * data-region="posts" Example context (json): { } }}
{{#discussions}}

{{#str}} discussionstartedby, mod_forum, {{authorfullname}} {{/str}}

{{#userdate}} {{timecreated}}, {{#str}} strftimedate, core_langconfig {{/str}} {{/userdate}}

{{name}}

{{#posts}}
{{#parent}}
{{#experimentaldisplaymode}}{{> mod_forum/forum_discussion_nested_v2_first_post }}{{/experimentaldisplaymode}} {{^experimentaldisplaymode}}{{> mod_forum/forum_discussion_nested_post }}{{/experimentaldisplaymode}}
{{/parent}} {{#post}}
{{#experimentaldisplaymode}}{{> mod_forum/forum_discussion_nested_v2_first_post }}{{/experimentaldisplaymode}} {{^experimentaldisplaymode}}{{> mod_forum/forum_discussion_nested_post }}{{/experimentaldisplaymode}}
{{/post}}
{{/posts}}

{{/discussions}} {{^discussions}}
{{#pix}} no-posts, mod_forum {{/pix}}

{{#str}} noposts, mod_forum {{/str}}

{{/discussions}}
{{#js}} require(['mod_forum/grades/expandconversation'], function(Conversation) { Conversation.registerEventListeners(document.querySelector('#post-region-{{uniqid}}')); }); {{/js}}