MDL-64694 report_insights: Remove unnecessary cell classes
authorDavid Monllaó <davidm@moodle.com>
Thu, 24 Jan 2019 13:33:09 +0000 (14:33 +0100)
committerDavid Monllaó <davidm@moodle.com>
Fri, 1 Feb 2019 08:09:59 +0000 (09:09 +0100)
report/insights/templates/insight.mustache
report/insights/templates/insight_details.mustache
report/insights/templates/insights_list.mustache

index 693549d..15f2c3f 100644 (file)
     }
 }}
 <tr>
-    <td class="col-sm-10">
+    <td>
         {{#sampleimage}}
             {{{sampleimage}}}
         {{/sampleimage}}
         {{{sampledescription}}}
     </td>
-    <td class="col-sm-2">
+    <td>
     {{#actions}}
         {{> core/action_menu}}
     {{/actions}}
index f5a6493..3b0ee57 100644 (file)
@@ -86,8 +86,8 @@
         </caption>
     <thead>
         <tr>
-            <th scope="col" class="col-sm-10">{{#str}}name{{/str}}</th>
-            <th scope="col" class="col-sm-2">{{#str}}actions{{/str}}</th>
+            <th scope="col">{{#str}}name{{/str}}</th>
+            <th scope="col">{{#str}}actions{{/str}}</th>
         </tr>
     </thead>
     <tbody>
     <caption>{{#str}}predictiondetails, report_insights{{/str}}</caption>
     <tbody>
         <tr>
-            <td scope="col" class="col-sm-3">{{#str}}timecreated, report_insights{{/str}}</td>
-            <td scope="col" class="col-sm-9">{{timecreated}}</td>
+            <td scope="row">{{#str}}timecreated, report_insights{{/str}}</td>
+            <td>{{timecreated}}</td>
         </tr>
         {{#timerange}}
             <tr>
-                <td scope="col" class="col-sm-3">{{#str}}timerange, report_insights{{/str}}</td>
-                <td scope="col" class="col-sm-9">{{.}}</td>
+                <td scope="row">{{#str}}timerange, report_insights{{/str}}</td>
+                <td>{{.}}</td>
             </tr>
         {{/timerange}}
     </tbody>
     <caption class="accesshide">{{#str}}predictioncalculations, 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>
+            <th scope="col">{{#str}}indicator, report_insights{{/str}}</th>
+            <th scope="col">{{#str}}calculatedvalue, report_insights{{/str}}</th>
         </tr>
     </thead>
     <tbody>
     {{#calculations}}
         <tr>
-            <td class="{{#style}}table-{{style}}{{/style}} col-sm-8">{{name}}</td>
-            <td class="{{#style}}table-{{style}}{{/style}} col-sm-4">{{#outcomeicon}}{{> core/pix_icon}}{{/outcomeicon}} {{displayvalue}}</td>
+            <td class="{{#style}}table-{{style}}{{/style}}">{{name}}</td>
+            <td class="{{#style}}table-{{style}}{{/style}}">{{#outcomeicon}}{{> core/pix_icon}}{{/outcomeicon}} {{displayvalue}}</td>
         </tr>
     {{/calculations}}
     </tbody>
index b13137d..10fc0e4 100644 (file)
@@ -98,8 +98,8 @@
         </caption>
         <thead>
             <tr>
-                <th scope="col" class="col-sm-10">{{#str}}name{{/str}}</th>
-                <th scope="col" class="col-sm-2">{{#str}}actions{{/str}}</th>
+                <th scope="col">{{#str}}name{{/str}}</th>
+                <th scope="col">{{#str}}actions{{/str}}</th>
             </tr>
         </thead>
     {{#insights}}