From f473958e49176cdf16e683a3895c06d8d0780404 Mon Sep 17 00:00:00 2001 From: Mark Nelson Date: Fri, 6 Oct 2017 17:13:15 +0800 Subject: [PATCH] MDL-59106 theme_bootstrapbase: removed unnecessary template overrides --- .../report_insights/insight.mustache | 62 ---------- .../report_insights/insight_details.mustache | 108 ------------------ .../report_insights/insights_list.mustache | 91 --------------- 3 files changed, 261 deletions(-) delete mode 100644 theme/bootstrapbase/templates/report_insights/insight.mustache delete mode 100644 theme/bootstrapbase/templates/report_insights/insight_details.mustache delete mode 100644 theme/bootstrapbase/templates/report_insights/insights_list.mustache 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}}

- - - - - - - - - - - {{> report_insights/insight}} - -
{{#str}}insight, report_insights{{/str}}
{{#str}}name{{/str}}{{#str}}prediction, report_insights{{/str}}{{#str}}actions{{/str}}
- - - - - - - - - - - {{#calculations}} - - - - - {{/calculations}} - -
{{#str}}predictiondetails, report_insights{{/str}}
{{#str}}indicator, report_insights{{/str}}{{#str}}calculatedvalue, report_insights{{/str}}
{{name}}{{#outcomeicon}}{{> core/pix_icon}}{{/outcomeicon}} {{displayvalue}}
-{{#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 }}} - - - - - - - - - - - {{#insights}} - {{> report_insights/insight}} - {{/insights}} - -
{{#str}}insights, report_insights{{/str}}
{{#str}}name{{/str}}{{#str}}prediction, report_insights{{/str}}{{#str}}actions{{/str}}
-{{{ pagingbar }}} -{{/noinsights}} -{{#noinsights}} -
- {{> core/notification_info}} -
-{{/noinsights}} -- 2.43.0