|
6 | 6 | <mm-loading hide-until="frontpageLoaded" loading-padding-top="loadingPaddingTop"> |
7 | 7 |
|
8 | 8 | <section class="card" ng-if="section && sectionHasContent(section)"> |
9 | | - <div class="item item-text-wrap" ng-if="section.summary"> |
| 9 | + <div class="item item-text-wrap clearfix" ng-if="section.summary"> |
10 | 10 | <mm-format-text>{{ section.summary }}</mm-format-text> |
11 | 11 | </div> |
12 | 12 |
|
13 | | - <a class="item item-text-wrap mm-course-module-handler clearfix {{class}}" ng-repeat="module in section.modules" ng-click="action($event)" ng-class="{'item-media': icon}" ng-controller="module._controller" title="{{ module.name }}"> |
14 | | - |
15 | | - <img ng-src="{{ icon }}" alt="" role="presentation" ng-if="icon"> |
16 | | - |
17 | | - <div class="buttons mm-module-buttons" ng-if="(buttons && buttons.length > 0) || spinner"> |
18 | | - |
19 | | - <button ng-repeat="button in buttons" ng-hide="button.hidden" ng-click="button.action($event)" class="button button-icon" aria-label="{{ button.label | translate }}"> |
20 | | - <i class="icon positive" ng-class="{'{{button.icon}}': button.icon}"></i> |
21 | | - </button> |
22 | | - |
23 | | - <ion-spinner ng-if="spinner"></ion-spinner> |
24 | | - </div> |
25 | | - |
26 | | - <mm-format-text watch="true">{{ title }}</mm-format-text> |
27 | | - </a> |
| 13 | + <mm-course-module class="item item-complex" ng-repeat="module in section.modules" module="module"></mm-course-module> |
28 | 14 | </section> |
29 | 15 |
|
30 | 16 | <mma-frontpage-item ng-repeat="item in items" name="{{item}}"></mma-frontpage-item> |
31 | 17 |
|
32 | 18 | <section class="card" ng-if="block && sectionHasContent(block)"> |
33 | | - <div class="item item-text-wrap" ng-if="block.summary"> |
| 19 | + <div class="item item-text-wrap clearfix" ng-if="block.summary"> |
34 | 20 | <mm-format-text>{{ block.summary }}</mm-format-text> |
35 | 21 | </div> |
36 | 22 |
|
37 | | - <a class="item item-text-wrap mm-course-module-handler clearfix {{class}}" ng-repeat="module in block.modules" ng-click="action($event)" ng-class="{'item-media': icon}" ng-controller="module._controller" title="{{ module.name }}"> |
38 | | - |
39 | | - <img ng-src="{{ icon }}" alt="" role="presentation" ng-if="icon"> |
40 | | - |
41 | | - <div class="buttons mm-module-buttons" ng-if="(buttons && buttons.length > 0) || spinner"> |
42 | | - |
43 | | - <button ng-repeat="button in buttons" ng-hide="button.hidden" ng-click="button.action($event)" class="button button-icon" aria-label="{{ button.label | translate }}"> |
44 | | - <i class="icon positive" ng-class="{'{{button.icon}}': button.icon}"></i> |
45 | | - </button> |
46 | | - |
47 | | - <ion-spinner ng-if="spinner"></ion-spinner> |
48 | | - </div> |
49 | | - |
50 | | - <mm-format-text watch="true">{{ title }}</mm-format-text> |
51 | | - </a> |
| 23 | + <mm-course-module class="item item-complex" ng-repeat="module in block.modules" module="module"></mm-course-module> |
52 | 24 | </section> |
53 | 25 |
|
54 | 26 | <p class="padding" ng-if="!hasContent">{{ 'mm.course.nocontentavailable' | translate }}</p> |
|
0 commit comments