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. -->
|
|
|
|
<!--<button [hidden]="!downloadButton.isDownload" ion-button icon-only clear color="dark" float-end>
|
|
|
|
<ion-icon name="cloud-download"></ion-icon>
|
|
|
|
</button>-->
|
2017-12-11 14:59:44 +01:00
|
|
|
<!-- Download course spinner. -->
|
2017-12-29 18:05:52 +01:00
|
|
|
<!-- <ion-spinner *ngIf="prefetchCourseIcon == 'spinner'" class="core-course-download-spinner"></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>
|