Skip to content

Commit 4d62590

Browse files
committed
Merge pull request #215 from dpaloucva/MOBILE-1145
MOBILE-1145 formatText: Apply float fix only to certain elements
2 parents 634ce71 + 4d14f78 commit 4d62590

File tree

14 files changed

+16
-16
lines changed

14 files changed

+16
-16
lines changed

www/addons/calendar/templates/event.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ <h3>{{ 'mm.core.course' | translate}}</h3>
2323
<img ng-src="{{event.moduleicon}}"> {{event.modulename}}
2424
</li>
2525
<li class="item item-text-wrap" ng-if="event.description">
26-
<mm-format-text watch="true">{{event.description}}</mm-format-text>
26+
<mm-format-text class="mm-content-with-float" watch="true">{{event.description}}</mm-format-text>
2727
</li>
2828
</ul>
2929
</article>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<ion-view>
22
<ion-nav-title>{{ title }}</ion-nav-title>
33
<ion-content padding="true">
4-
<p><mm-format-text watch="true">{{ submission.text }}</mm-format-text></p>
4+
<p><mm-format-text class="mm-content-with-float" watch="true">{{ submission.text }}</mm-format-text></p>
55
<mm-file ng-repeat="attachment in submission.attachments" file="attachment" component="{{component}}" component-id="{{submission.id}}"></mm-file>
66
</ion-content>
77
</ion-view>

www/addons/mod_book/templates/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<mm-course-mod-description description="description"></mm-course-mod-description>
1414
<mma-mod-book-arrows previous="previousChapter" next="nextChapter" action="loadChapter"></mma-mod-book-arrows>
1515
<div>
16-
<mm-format-text watch="true" component="{{ component }}" component-id="{{ componentId }}">{{ content }}</mm-format-text>
16+
<mm-format-text class="mm-content-with-float" watch="true" component="{{ component }}" component-id="{{ componentId }}">{{ content }}</mm-format-text>
1717
</div>
1818
<mma-mod-book-arrows previous="previousChapter" next="nextChapter" action="loadChapter"></mma-mod-book-arrows>
1919
</mm-loading>

www/addons/mod_forum/templates/discussion.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ <h2>{{discussion.subject}}</h2>
1414
<p>{{discussion.userfullname}}</p>
1515
</div>
1616
<div class="item item-body">
17-
<mm-format-text watch="true">{{discussion.message}}</mm-format-text>
17+
<mm-format-text class="mm-content-with-float" watch="true">{{discussion.message}}</mm-format-text>
1818
<mm-file ng-repeat="attachment in discussion.attachments" file="attachment" component="{{component}}" component-id="{{discussion.id}}"></mm-file>
1919
</div>
2020
</article>
@@ -29,7 +29,7 @@ <h2>{{discussion.subject}}</h2>
2929
<p>{{post.subject}}</p>
3030
</div>
3131
<div class="item item-body">
32-
<mm-format-text watch="true">{{post.message}}</mm-format-text>
32+
<mm-format-text class="mm-content-with-float" watch="true">{{post.message}}</mm-format-text>
3333
<mm-file ng-repeat="attachment in post.attachments" file="attachment" component="{{component}}" component-id="{{post.id}}"></mm-file>
3434
</div>
3535
</article>

www/addons/mod_imscp/templates/description.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ <h1 class="title">{{ 'mm.core.description' | translate}}</h1>
44
<button class="button button-icon ion-close-round" ng-click="closeDescription()" aria-label="{{ 'mm.core.close' | translate }}"></button>
55
</ion-header-bar>
66
<ion-content class="padding">
7-
<mm-format-text>{{ description }}</mm-format-text>
7+
<mm-format-text class="mm-content-with-float">{{ description }}</mm-format-text>
88
</ion-content>
99
</ion-modal-view>

www/addons/mod_page/templates/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<mm-loading hide-until="loaded">
99
<mm-course-mod-description description="description"></mm-course-mod-description>
1010
<article>
11-
<mm-format-text watch="true" component="{{ component }}" component-id="{{ componentId }}">{{ content }}</mm-format-text>
11+
<mm-format-text class="mm-content-with-float" watch="true" component="{{ component }}" component-id="{{ componentId }}">{{ content }}</mm-format-text>
1212
</article>
1313
</mm-loading>
1414
</ion-content>

www/addons/mod_resource/templates/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
</div>
1414

1515
<div ng-if="mode == 'inline'">
16-
<mm-format-text watch="true" component="{{ component }}" component-id="{{ componentId }}">{{ content }}</mm-format-text>
16+
<mm-format-text class="mm-content-with-float" watch="true" component="{{ component }}" component-id="{{ componentId }}">{{ content }}</mm-format-text>
1717
</div>
1818

1919
<div ng-if="mode == 'external'">

www/addons/notifications/templates/list.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ <h2>{{notification.userfromfullname}}</h2>
99
<p>{{notification.timecreated | mmDateDayOrTime}}</p>
1010
</div>
1111
<div class="item item-body">
12-
<p><mm-format-text watch="true">{{ notification.mobiletext | mmCreateLinks | mmaNotificationsFormat }}</mm-format-text></p>
12+
<p><mm-format-text class="mm-content-with-float" watch="true">{{ notification.mobiletext | mmCreateLinks | mmaNotificationsFormat }}</mm-format-text></p>
1313
</div>
1414
<mma-notifications-actions contexturl="notification.contexturl" courseid="notification.courseid"></mma-notifications-actions>
1515
</article>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<div class="card" ng-if="description">
22
<div class="item item-text-wrap item-body">
3-
<mm-format-text>{{ description }}</mm-format-text>
3+
<mm-format-text class="mm-content-with-float">{{ description }}</mm-format-text>
44
<p ng-if="note"><span class="item-note">{{ note }}</span></p>
55
</div>
66
</div>

www/core/components/course/templates/section.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<section class="card" ng-if="summary">
99
<!-- Only displayed when 1 section per page. -->
1010
<div class="item item-text-wrap">
11-
<article><mm-format-text>{{ summary }}</mm-format-text></article>
11+
<article><mm-format-text class="mm-content-with-float">{{ summary }}</mm-format-text></article>
1212
</div>
1313
</section>
1414

@@ -19,7 +19,7 @@ <h2>{{ section.name }}</h2>
1919
</div>
2020

2121
<div class="item item-text-wrap" ng-if="sections.length > 1 && section.summary">
22-
<mm-format-text>{{ section.summary }}</mm-format-text>
22+
<mm-format-text class="mm-content-with-float">{{ section.summary }}</mm-format-text>
2323
</div>
2424

2525
<a class="item item-text-wrap" ng-repeat="module in section.modules" ng-click="action($event)" ng-class="{'item-button-right': buttons && buttons.length > 0, 'item-media': icon, 'item-completion': module.completionstatus}" ng-controller="module._controller" title="{{ title }}">

0 commit comments

Comments
 (0)