MDL-59106 theme_bootstrapbase: removed unnecessary template overrides
authorMark Nelson <markn@moodle.com>
Fri, 6 Oct 2017 09:13:15 +0000 (17:13 +0800)
committerMark Nelson <markn@moodle.com>
Mon, 9 Oct 2017 04:20:42 +0000 (12:20 +0800)
theme/bootstrapbase/templates/report_insights/insight.mustache [deleted file]
theme/bootstrapbase/templates/report_insights/insight_details.mustache [deleted file]
theme/bootstrapbase/templates/report_insights/insights_list.mustache [deleted file]

diff --git a/theme/bootstrapbase/templates/report_insights/insight.mustache b/theme/bootstrapbase/templates/report_insights/insight.mustache
deleted file mode 100644 (file)
index 3e152a6..0000000
+++ /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 <http://www.gnu.org/licenses/>.
-}}
-{{!
-    @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": "<a href=\"#\">Link</a>",
-        "sampledescription": "Sample description",
-        "style": "success",
-        "outcomeicon": {
-            "attributes": [
-                {"name": "src", "value": "https://moodle.org/logo/moodle-logo.svg" }
-            ]
-        },
-        "predictiondisplayvalue": "This dev will understand it"
-    }
-}}
-<tr>
-    <td class="col-sm-6">
-        {{#sampleimage}}
-            {{{sampleimage}}}
-        {{/sampleimage}}
-        {{{sampledescription}}}
-    </td>
-    <td class="col-sm-4">
-        {{#outcomeicon}}
-            {{> core/pix_icon}}
-        {{/outcomeicon}}
-        <span>{{predictiondisplayvalue}}</span>
-    </td>
-    <td class="col-sm-2">
-    {{#actions}}
-        {{> core/action_menu}}
-    {{/actions}}
-    </td>
-</tr>
diff --git a/theme/bootstrapbase/templates/report_insights/insight_details.mustache b/theme/bootstrapbase/templates/report_insights/insight_details.mustache
deleted file mode 100644 (file)
index 65dda0f..0000000
+++ /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 <http://www.gnu.org/licenses/>.
-}}
-{{!
-    @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": "<a href=\"#\">Link</a>",
-        "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%"
-            }
-        ]
-    }
-}}
-
-<h2 class="m-b-2">{{#str}}insightprediction, report_insights, {{insightname}} {{/str}}</h2>
-<table class="generaltable insights-list">
-    <caption>{{#str}}insight, report_insights{{/str}}</caption>
-    <thead>
-        <tr>
-            <th scope="col" class="col-sm-6">{{#str}}name{{/str}}</th>
-            <th scope="col" class="col-sm-4">{{#str}}prediction, report_insights{{/str}}</th>
-            <th scope="col" class="col-sm-2">{{#str}}actions{{/str}}</th>
-        </tr>
-    </thead>
-    <tbody>
-        {{> report_insights/insight}}
-    </tbody>
-</table>
-
-<table class="generaltable prediction-calculations">
-    <caption>{{#str}}predictiondetails, report_insights{{/str}}</caption>
-    <thead>
-        <tr>
-            <th scope="col" class="col-sm-8">{{#str}}indicator, report_insights{{/str}}</th>
-            <th scope="col" class="col-sm-4">{{#str}}calculatedvalue, report_insights{{/str}}</th>
-        </tr>
-    </thead>
-    <tbody>
-    {{#calculations}}
-        <tr>
-            <td class="col-sm-8">{{name}}</td>
-            <td class="col-sm-4">{{#outcomeicon}}{{> core/pix_icon}}{{/outcomeicon}} {{displayvalue}}</td>
-        </td>
-    {{/calculations}}
-    </tbody>
-</table>
-{{#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 (file)
index ecb2689..0000000
+++ /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 <http://www.gnu.org/licenses/>.
-}}
-{{!
-    @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": "<a href=\"#\">Link</a>",
-                "sampledescription": "Sample description",
-                "style": "success",
-                "outcomeicon": {
-                    "attributes": [
-                        {"name": "src", "value": "https://moodle.org/logo/moodle-logo.svg" }
-                    ]
-                },
-                "predictiondisplayvalue": "This dev will understand it"
-            }, {
-                "sampleimage": "<a href=\"#\">Any renderable</a>",
-                "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}}
-    <div class="m-b-2">
-        {{> core/single_select}}
-    </div>
-{{/modelselector}}
-
-<h2 class="m-b-2">{{{insightname}}}</h2>
-{{^noinsights}}
-{{{ pagingbar }}}
-<table class="generaltable insights-list">
-    <caption>{{#str}}insights, report_insights{{/str}}</caption>
-    <thead>
-        <tr>
-            <th scope="col" class="col-sm-6">{{#str}}name{{/str}}</th>
-            <th scope="col" class="col-sm-4">{{#str}}prediction, report_insights{{/str}}</th>
-            <th scope="col" class="col-sm-2">{{#str}}actions{{/str}}</th>
-        </tr>
-    </thead>
-    <tbody>
-        {{#insights}}
-            {{> report_insights/insight}}
-        {{/insights}}
-    </tbody>
-</table>
-{{{ pagingbar }}}
-{{/noinsights}}
-{{#noinsights}}
-    <div class="m-t-2">
-        {{> core/notification_info}}
-    </div>
-{{/noinsights}}