-
+ |
{{#sampleimage}}
{{{sampleimage}}}
{{/sampleimage}}
{{{sampledescription}}}
|
-
- {{#outcomeicon}}
- {{> core/pix_icon}}
- {{/outcomeicon}}
- {{predictiondisplayvalue}}
- |
{{#actions}}
{{> core/action_menu}}
diff --git a/report/insights/templates/insight_details.mustache b/report/insights/templates/insight_details.mustache
index 72940c9e1fb..f5a6493d263 100644
--- a/report/insights/templates/insight_details.mustache
+++ b/report/insights/templates/insight_details.mustache
@@ -31,6 +31,8 @@
Example context (json):
{
"insightname": "Best insight ever",
+ "timecreated": "Thursday, 5 October 2017, 4:16 PM",
+ "timerange": "Monday, 4 September 2017, 6:00 PM to Thursday, 5 October 2017, 12:00 AM",
"sampleimage": "Link",
"sampledescription": "Sample description",
"style": "success",
@@ -73,11 +75,18 @@
{{#str}}insightprediction, report_insights, {{insightname}} {{/str}}
- {{#str}}insight, report_insights{{/str}}
+
+ {{#str}}prediction, report_insights{{/str}}:
+
+ {{#outcomeicon}}
+ {{> core/pix_icon}}
+ {{/outcomeicon}}
+ {{predictiondisplayvalue}}
+
+
- {{#str}}name{{/str}} |
- {{#str}}prediction, report_insights{{/str}} |
+ {{#str}}name{{/str}} |
{{#str}}actions{{/str}} |
@@ -86,8 +95,23 @@
-
+
{{#str}}predictiondetails, report_insights{{/str}}
+
+
+ {{#str}}timecreated, report_insights{{/str}} |
+ {{timecreated}} |
+
+ {{#timerange}}
+
+ {{#str}}timerange, report_insights{{/str}} |
+ {{.}} |
+
+ {{/timerange}}
+
+
+
+ {{#str}}predictioncalculations, report_insights{{/str}}
{{#str}}indicator, report_insights{{/str}} |
@@ -99,7 +123,7 @@
{{name}} |
{{#outcomeicon}}{{> core/pix_icon}}{{/outcomeicon}} {{displayvalue}} |
-
+
{{/calculations}}
diff --git a/report/insights/templates/insights_list.mustache b/report/insights/templates/insights_list.mustache
index ecb26899d65..2c6c2008252 100644
--- a/report/insights/templates/insights_list.mustache
+++ b/report/insights/templates/insights_list.mustache
@@ -31,27 +31,35 @@
Example context (json):
{
"insightname": "Best insight ever",
- "insights": [
+ "predictions": [
{
- "sampleimage": "Link",
- "sampledescription": "Sample description",
+ "predictiondisplayvalue": "This dev will understand it",
"style": "success",
"outcomeicon": {
"attributes": [
{"name": "src", "value": "https://moodle.org/logo/moodle-logo.svg" }
]
},
- "predictiondisplayvalue": "This dev will understand it"
+ "insights": [
+ {
+ "sampleimage": "Link",
+ "sampledescription": "Sample description"
+ }
+ ]
}, {
- "sampleimage": "Any renderable",
- "sampledescription": "Another sample description",
+ "predictiondisplayvalue": "This dev will not understand it",
"style": "danger",
"outcomeicon": {
"attributes": [
{"name": "src", "value": "https://moodle.org/logo/moodle-logo.svg" }
]
},
- "predictiondisplayvalue": "This dev will not understand it"
+ "insights": [
+ {
+ "sampleimage": "Any renderable",
+ "sampledescription": "Another sample description"
+ }
+ ]
}
],
"noinsights": false
@@ -67,21 +75,30 @@
{{{insightname}}}
{{^noinsights}}
{{{ pagingbar }}}
-
- {{#str}}insights, report_insights{{/str}}
-
-
- {{#str}}name{{/str}} |
- {{#str}}prediction, report_insights{{/str}} |
- {{#str}}actions{{/str}} |
-
-
-
- {{#insights}}
+{{#predictions}}
+
+
+ {{#str}}prediction, report_insights{{/str}}:
+
+ {{#outcomeicon}}
+ {{> core/pix_icon}}
+ {{/outcomeicon}}
+ {{predictiondisplayvalue}}
+
+
+
+
+ {{#str}}name{{/str}} |
+ {{#str}}actions{{/str}} |
+
+
+ {{#insights}}
+
{{> report_insights/insight}}
- {{/insights}}
-
-
+
+ {{/insights}}
+
+{{/predictions}}
{{{ pagingbar }}}
{{/noinsights}}
{{#noinsights}}
diff --git a/theme/bootstrapbase/templates/report_insights/insight.mustache b/theme/bootstrapbase/templates/report_insights/insight.mustache
deleted file mode 100644
index 3e152a6cc38..00000000000
--- a/theme/bootstrapbase/templates/report_insights/insight.mustache
+++ /dev/null
@@ -1,62 +0,0 @@
-{{!
- 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 report_insights/insight
-
- Template for a insight.
-
- Classes required for JS:
- * none
-
- Data attributes required for JS:
- * none
-
- Context variables required for this template:
- * none
-
- Example context (json):
- {
- "sampleimage": "Link",
- "sampledescription": "Sample description",
- "style": "success",
- "outcomeicon": {
- "attributes": [
- {"name": "src", "value": "https://moodle.org/logo/moodle-logo.svg" }
- ]
- },
- "predictiondisplayvalue": "This dev will understand it"
- }
-}}
-
-
- {{#sampleimage}}
- {{{sampleimage}}}
- {{/sampleimage}}
- {{{sampledescription}}}
- |
-
- {{#outcomeicon}}
- {{> core/pix_icon}}
- {{/outcomeicon}}
- {{predictiondisplayvalue}}
- |
-
- {{#actions}}
- {{> core/action_menu}}
- {{/actions}}
- |
-
diff --git a/theme/bootstrapbase/templates/report_insights/insight_details.mustache b/theme/bootstrapbase/templates/report_insights/insight_details.mustache
deleted file mode 100644
index 65dda0fa0dd..00000000000
--- a/theme/bootstrapbase/templates/report_insights/insight_details.mustache
+++ /dev/null
@@ -1,108 +0,0 @@
-{{!
- 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 report_insights/insight_details
-
- Actions panel at the bottom of the assignment grading UI.
-
- Classes required for JS:
- * none
-
- Data attributes required for JS:
- * none
-
- Context variables required for this template:
- * none
-
- Example context (json):
- {
- "insightname": "Best insight ever",
- "sampleimage": "Link",
- "sampledescription": "Sample description",
- "style": "success",
- "outcomeicon": {
- "attributes": [
- {"name": "src", "value": "https://moodle.org/logo/moodle-logo.svg" }
- ]
- },
- "predictiondisplayvalue": "This dev will understand it",
- "calculations": [
- {
- "style": "success",
- "outcomeicon": {
- "attributes": [
- {"name": "src", "value": "https://moodle.org/logo/moodle-logo.svg" }
- ]
- },
- "name": "Indicator 1",
- "displayvalue": "yes"
- }, {
- "style": "info",
- "name": "Indicator 2",
- "displayvalue": "20%"
- }, {
- "style": "",
- "name": "Indicator 2",
- "displayvalue": "20%"
- }, {
- "style": "warning",
- "name": "Indicator 2",
- "displayvalue": "20%"
- }, {
- "style": "danger",
- "name": "Indicator 2",
- "displayvalue": "20%"
- }
- ]
- }
-}}
-
-{{#str}}insightprediction, report_insights, {{insightname}} {{/str}}
-
- {{#str}}insight, report_insights{{/str}}
-
-
- {{#str}}name{{/str}} |
- {{#str}}prediction, report_insights{{/str}} |
- {{#str}}actions{{/str}} |
-
-
-
- {{> report_insights/insight}}
-
-
-
-
- {{#str}}predictiondetails, report_insights{{/str}}
-
-
- {{#str}}indicator, report_insights{{/str}} |
- {{#str}}calculatedvalue, report_insights{{/str}} |
-
-
-
- {{#calculations}}
-
- {{name}} |
- {{#outcomeicon}}{{> core/pix_icon}}{{/outcomeicon}} {{displayvalue}} |
-
- {{/calculations}}
-
-
-{{#nocalculations}}
- {{> core/notification_info}}
-{{/nocalculations}}
diff --git a/theme/bootstrapbase/templates/report_insights/insights_list.mustache b/theme/bootstrapbase/templates/report_insights/insights_list.mustache
deleted file mode 100644
index ecb26899d65..00000000000
--- a/theme/bootstrapbase/templates/report_insights/insights_list.mustache
+++ /dev/null
@@ -1,91 +0,0 @@
-{{!
- 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 report_insights/insights_list
-
- Template for the insights list.
-
- Classes required for JS:
- * none
-
- Data attributes required for JS:
- * none
-
- Context variables required for this template:
- * none
-
- Example context (json):
- {
- "insightname": "Best insight ever",
- "insights": [
- {
- "sampleimage": "Link",
- "sampledescription": "Sample description",
- "style": "success",
- "outcomeicon": {
- "attributes": [
- {"name": "src", "value": "https://moodle.org/logo/moodle-logo.svg" }
- ]
- },
- "predictiondisplayvalue": "This dev will understand it"
- }, {
- "sampleimage": "Any renderable",
- "sampledescription": "Another sample description",
- "style": "danger",
- "outcomeicon": {
- "attributes": [
- {"name": "src", "value": "https://moodle.org/logo/moodle-logo.svg" }
- ]
- },
- "predictiondisplayvalue": "This dev will not understand it"
- }
- ],
- "noinsights": false
- }
-}}
-
-{{#modelselector}}
-
- {{> core/single_select}}
-
-{{/modelselector}}
-
-{{{insightname}}}
-{{^noinsights}}
-{{{ pagingbar }}}
-
- {{#str}}insights, report_insights{{/str}}
-
-
- {{#str}}name{{/str}} |
- {{#str}}prediction, report_insights{{/str}} |
- {{#str}}actions{{/str}} |
-
-
-
- {{#insights}}
- {{> report_insights/insight}}
- {{/insights}}
-
-
-{{{ pagingbar }}}
-{{/noinsights}}
-{{#noinsights}}
-
- {{> core/notification_info}}
-
-{{/noinsights}}
diff --git a/version.php b/version.php
index b9152fc754c..05548c3e1c8 100644
--- a/version.php
+++ b/version.php
@@ -29,7 +29,7 @@
defined('MOODLE_INTERNAL') || die();
-$version = 2017101000.01; // YYYYMMDD = weekly release date of this DEV branch.
+$version = 2017101000.02; // YYYYMMDD = weekly release date of this DEV branch.
// RR = release increments - 00 in DEV branches.
// .XX = incremental changes.
|