MDL-66372 forumreport_summary: Report template cleanup
authorMichael Hawkins <michaelh@moodle.com>
Tue, 15 Oct 2019 07:36:01 +0000 (15:36 +0800)
committerMichael Hawkins <michaelh@moodle.com>
Thu, 7 Nov 2019 04:58:02 +0000 (12:58 +0800)
mod/forum/report/summary/templates/report.mustache

index ec1a193..69580b1 100644 (file)
 
     Example context (json):
     {
-        "placeholdertext": "To generate the summary report, set any filter values required, then select \"Generate report\".",
-        "tablehtml": false
+        "tablehtml": "TableSQL format HTML for the table"
     }
 }}
 
-{{! The placeholder text, used before the report has been generated }}
-{{^tablehtml}}<div class='d-block p-b-10'><h3>{{placeholdertext}}</h3></div>{{/tablehtml}}
-
-{{#tablehtml}}
-    <div class="text-center">
-        {{> core/loading }}
-    </div>
-    <div id="summaryreport" class="hidden">
-        {{{tablehtml}}}
-    </div>
-{{/tablehtml}}
+<div class="text-center">
+    {{> core/loading }}
+</div>
+<div id="summaryreport" class="hidden">
+    {{{tablehtml}}}
+</div>