2017-12-11 14:59:44 +01:00
|
|
|
<ion-card>
|
2017-12-29 18:05:52 +01:00
|
|
|
<a ion-item text-wrap detail-none (click)="openCourse(course)" [title]="course.fullname">
|
|
|
|
<h2 float-start><core-format-text [text]="course.fullname"></core-format-text></h2>
|
|
|
|
<!-- Download course. -->
|
2018-01-17 15:00:14 +01:00
|
|
|
<button *ngIf="prefetchCourseData.prefetchCourseIcon != 'spinner'" ion-button icon-only clear color="dark" float-end (click)="prefetchCourse($event)">
|
|
|
|
<ion-icon [name]="prefetchCourseData.prefetchCourseIcon"></ion-icon>
|
|
|
|
</button>
|
2017-12-11 14:59:44 +01:00
|
|
|
<!-- Download course spinner. -->
|
2018-01-17 15:00:14 +01:00
|
|
|
<ion-spinner *ngIf="prefetchCourseData.prefetchCourseIcon == 'spinner'" class="core-course-download-spinner" float-end></ion-spinner>
|
2017-12-11 14:59:44 +01:00
|
|
|
</a>
|
2017-12-29 18:05:52 +01:00
|
|
|
<ion-item text-wrap *ngIf="course.summary && course.summary.length">
|
2017-12-11 14:59:44 +01:00
|
|
|
<p>
|
|
|
|
<summary>
|
2017-12-29 18:05:52 +01:00
|
|
|
<core-format-text [text]="course.summary" maxHeight="20"></core-format-text>
|
2017-12-11 14:59:44 +01:00
|
|
|
</summary>
|
|
|
|
</p>
|
|
|
|
</ion-item>
|
2017-12-29 18:05:52 +01:00
|
|
|
<ion-item *ngIf="course.progress != null && course.progress >= 0">
|
|
|
|
<core-progress-bar [progress]="course.progress"></core-progress-bar>
|
|
|
|
</ion-item>
|
2017-12-11 14:59:44 +01:00
|
|
|
<ng-content></ng-content>
|
|
|
|
</ion-card>
|