forked from CIT/Vmeda.Online
		
	MOBILE-3557 course: Add section restriction info when selected section
This commit is contained in:
		
							parent
							
								
									06c63eb77e
								
							
						
					
					
						commit
						737e7f51e9
					
				| @ -24,13 +24,20 @@ | |||||||
| 
 | 
 | ||||||
|             <!-- Course summary. By default we only display the course progress. --> |             <!-- Course summary. By default we only display the course progress. --> | ||||||
|             <core-dynamic-component [component]="courseSummaryComponent" [data]="data"> |             <core-dynamic-component [component]="courseSummaryComponent" [data]="data"> | ||||||
|                 <ion-list no-lines *ngIf="course.imageThumb || (selectedSection && selectedSection.id == allSectionsId && course.progress != null && course.progress >= 0)" class="core-format-progress-list"> |                 <ion-list no-lines *ngIf="course.imageThumb || (selectedSection && (selectedSection.id == allSectionsId && course.progress != null && course.progress >= 0) || (selectedSection.id != allSectionsId && (selectedSection.availabilityinfo || selectedSection.visible === 0)))" class="core-format-progress-list"> | ||||||
|                     <div *ngIf="course.imageThumb" class="core-course-thumb"> |                     <div *ngIf="course.imageThumb" class="core-course-thumb"> | ||||||
|                         <img [src]="course.imageThumb" core-external-content alt=""/> |                         <img [src]="course.imageThumb" core-external-content alt=""/> | ||||||
|                     </div> |                     </div> | ||||||
|                     <ion-item class="core-course-progress" *ngIf="selectedSection && selectedSection.id == allSectionsId && course.progress != null && course.progress >= 0 && course.completionusertracked !== false"> |                     <ng-container *ngIf="selectedSection"> | ||||||
|                         <core-progress-bar [progress]="course.progress"></core-progress-bar> |                         <ion-item class="core-course-progress" *ngIf="selectedSection.id == allSectionsId && course.progress != null && course.progress >= 0 && course.completionusertracked !== false"> | ||||||
|                     </ion-item> |                             <core-progress-bar [progress]="course.progress"></core-progress-bar> | ||||||
|  |                         </ion-item> | ||||||
|  |                         <ion-item *ngIf="selectedSection.id != allSectionsId && (selectedSection.availabilityinfo || selectedSection.visible === 0)" > | ||||||
|  |                             <ion-badge color="secondary" *ngIf="selectedSection.visible === 0 && selectedSection.uservisible !== false" text-wrap>{{ 'core.course.hiddenfromstudents' | translate }}</ion-badge> | ||||||
|  |                             <ion-badge color="secondary" *ngIf="selectedSection.visible === 0 && selectedSection.uservisible === false" text-wrap>{{ 'core.notavailable' | translate }}</ion-badge> | ||||||
|  |                             <ion-badge color="secondary" *ngIf="selectedSection.availabilityinfo" text-wrap><core-format-text [text]=" selectedSection.availabilityinfo" contextLevel="course" [contextInstanceId]="courseId"></core-format-text></ion-badge> | ||||||
|  |                         </ion-item> | ||||||
|  |                     </ng-container> | ||||||
|                 </ion-list> |                 </ion-list> | ||||||
|             </core-dynamic-component> |             </core-dynamic-component> | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user