MDL-63863 block_myoverview: remove superfluous div
authorBas Brands <bas@moodle.com>
Mon, 5 Nov 2018 13:40:29 +0000 (14:40 +0100)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Tue, 6 Nov 2018 00:18:37 +0000 (01:18 +0100)
So the clean suite in behat will be back to pass.

theme/bootstrapbase/templates/block_myoverview/course-action-menu.mustache

index d003f76..5819ea8 100644 (file)
         aria-label="{{#str}} aria:courseactions, block_myoverview {{/str}}">
         {{#pix}} i/moremenu, core {{/pix}}
     </button>
         aria-label="{{#str}} aria:courseactions, block_myoverview {{/str}}">
         {{#pix}} i/moremenu, core {{/pix}}
     </button>
-    <div class="dropdown-menu pull-right">
-        <ul class="list-unstyled">
-            <li class="{{#isfavourite}}hidden{{/isfavourite}}" data-action="add-favourite" data-course-id="{{id}}">
-                <a class="dropdown-item p-a-1" href="#">
-                    {{#pix}} i/star, core, {{#str}} starred, block_myoverview {{/str}} {{/pix}}
-                    {{#str}} addtofavourites, block_myoverview {{/str}}
-                </a>
-            </li>
-            <li class="{{^isfavourite}}hidden{{/isfavourite}}" data-action="remove-favourite" data-course-id="{{id}}">
-                <a class="dropdown-item p-a-1" href="#">
-                    {{#str}} removefromfavourites, block_myoverview {{/str}}
-                </a>
-            </li>
-            <li class="{{^hidden}}hidden{{/hidden}}" data-action="show-course" data-course-id="{{id}}">
-                <a class="dropdown-item p-a-1" href="#">
-                    {{#pix}} i/show, core, {{#str}} hidden, block_myoverview {{/str}} {{/pix}}
-                    {{#str}} show, block_myoverview {{/str}}
-                </a>
-            </li>
-            <li class="{{#hidden}}hidden{{/hidden}}" data-action="hide-course" data-course-id="{{id}}">
-                <a class="dropdown-item p-a-1" href="#">
-                    {{#pix}} i/hide, core, {{#str}} hidden, block_myoverview {{/str}} {{/pix}}
-                    {{#str}} hidecourse, block_myoverview {{/str}}
-                </a>
-            </li>
-        </ul>
-    </div>
+    <ul class="dropdown-menu pull-right">
+        <li class="{{#isfavourite}}hidden{{/isfavourite}}" data-action="add-favourite" data-course-id="{{id}}">
+            <a class="dropdown-item p-x-1" href="#">
+                {{#pix}} i/star, core, {{#str}} starred, block_myoverview {{/str}} {{/pix}}
+                {{#str}} addtofavourites, block_myoverview {{/str}}
+            </a>
+        </li>
+        <li class="{{^isfavourite}}hidden{{/isfavourite}}" data-action="remove-favourite" data-course-id="{{id}}">
+            <a class="dropdown-item p-x-1" href="#">
+                {{#str}} removefromfavourites, block_myoverview {{/str}}
+            </a>
+        </li>
+        <li class="{{^hidden}}hidden{{/hidden}}" data-action="show-course" data-course-id="{{id}}">
+            <a class="dropdown-item p-x-1" href="#">
+                {{#pix}} i/show, core, {{#str}} hidden, block_myoverview {{/str}} {{/pix}}
+                {{#str}} show, block_myoverview {{/str}}
+            </a>
+        </li>
+        <li class="{{#hidden}}hidden{{/hidden}}" data-action="hide-course" data-course-id="{{id}}">
+            <a class="dropdown-item p-x-1" href="#">
+                {{#pix}} i/hide, core, {{#str}} hidden, block_myoverview {{/str}} {{/pix}}
+                {{#str}} hidecourse, block_myoverview {{/str}}
+            </a>
+        </li>
+    </ul>
 </div>
\ No newline at end of file
 </div>
\ No newline at end of file