2017-12-11 14:59:44 +01:00
|
|
|
<ion-card>
|
2018-01-04 10:08:28 +01:00
|
|
|
<a ion-item text-wrap class="item-course" (click)="openCourse(course)" [title]="course.fullname">
|
2017-12-11 14:59:44 +01:00
|
|
|
<h2><core-format-text [text]="course.fullname"></core-format-text></h2>
|
2018-01-04 10:08:28 +01:00
|
|
|
<core-progress-bar *ngIf="course.progress !== false" [progress]="course.progress"></core-progress-bar>
|
|
|
|
<!-- @todo: Download button. -->
|
2017-12-11 14:59:44 +01:00
|
|
|
<!-- <i *ngIf="actionsLoaded" class="icon ion-android-more-vertical mm-animate-show-hide" ng-click="showCourseActions($event)"></i>
|
|
|
|
<ion-spinner *ngIf="!actionsLoaded" class="mm-animate-show-hide"></ion-spinner> -->
|
|
|
|
<!-- Download course spinner. -->
|
|
|
|
<!-- <ion-spinner *ngIf="prefetchCourseIcon == 'spinner'" class="mm-course-download-spinner"></ion-spinner> -->
|
|
|
|
</a>
|
|
|
|
<ion-item text-wrap *ngIf="showSummary && course.summary">
|
|
|
|
<p>
|
|
|
|
<summary>
|
|
|
|
<core-format-text [text]="course.summary" maxHeight="60"></core-format-text>
|
|
|
|
</summary>
|
|
|
|
</p>
|
|
|
|
</ion-item>
|
|
|
|
<ng-content></ng-content>
|
|
|
|
</ion-card>
|