MOBILE-2700 blocks: Render title inside the component

main
Pau Ferrer Ocaña 2018-10-18 16:15:52 +02:00
parent 47d57a343d
commit d07cbac9de
3 changed files with 6 additions and 2 deletions

View File

@ -1,4 +1,7 @@
<core-loading [hideUntil]="loaded" class="core-loading-center"> <core-loading [hideUntil]="loaded" class="core-loading-center">
<ion-item-divider color="light">
<h2>{{ 'addon.block_activitymodules.pluginname' | translate }}</h2>
</ion-item-divider>
<a ion-item text-wrap *ngFor="let entry of entries" class="item-media" detail-none [navPush]="'CoreCourseListModTypePage'" [navParams]="{title: entry.name, courseId: instanceId, modName: entry.modName}"> <a ion-item text-wrap *ngFor="let entry of entries" class="item-media" detail-none [navPush]="'CoreCourseListModTypePage'" [navParams]="{title: entry.name, courseId: instanceId, modName: entry.modName}">
<img item-start [src]="entry.icon" alt="" role="presentation" class="core-module-icon"> <img item-start [src]="entry.icon" alt="" role="presentation" class="core-module-icon">
<core-format-text [text]="entry.name"></core-format-text> <core-format-text [text]="entry.name"></core-format-text>

View File

@ -1,4 +1,7 @@
<core-loading [hideUntil]="loaded" class="core-loading-center"> <core-loading [hideUntil]="loaded" class="core-loading-center">
<ion-item-divider color="light">
<h2>{{ 'addon.block_sitemainmenu.pluginname' | translate }}</h2>
</ion-item-divider>
<ion-item text-wrap *ngIf="block.summary"> <ion-item text-wrap *ngIf="block.summary">
<core-format-text [text]="block.summary"></core-format-text> <core-format-text [text]="block.summary"></core-format-text>
</ion-item> </ion-item>

View File

@ -1,6 +1,4 @@
<!-- Only render the block if it's supported. --> <!-- Only render the block if it's supported. -->
<div *ngIf="loaded && componentClass" class="{{class}}"> <div *ngIf="loaded && componentClass" class="{{class}}">
<ion-item-divider color="light" *ngIf="title">{{ title | translate }}</ion-item-divider>
<core-dynamic-component [component]="componentClass" [data]="data"></core-dynamic-component> <core-dynamic-component [component]="componentClass" [data]="data"></core-dynamic-component>
</div> </div>