forked from CIT/Vmeda.Online
		
	
		
			
				
	
	
		
			37 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			37 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
<!-- Buttons to add to the header. -->
 | 
						|
<core-navbar-buttons slot="end">
 | 
						|
    <ion-button fill="clear" (click)="openModuleSummary()" aria-haspopup="true" [attr.aria-label]="'core.info' | translate">
 | 
						|
        <ion-icon name="fas-info-circle" slot="icon-only" aria-hidden="true"></ion-icon>
 | 
						|
    </ion-button>
 | 
						|
</core-navbar-buttons>
 | 
						|
 | 
						|
<!-- Content. -->
 | 
						|
<core-loading [hideUntil]="loaded">
 | 
						|
 | 
						|
    <!-- Activity info. -->
 | 
						|
    <core-course-module-info *ngIf="!subfolder" [module]="module" [description]="description" [component]="component"
 | 
						|
        [componentId]="componentId" [courseId]="courseId">
 | 
						|
    </core-course-module-info>
 | 
						|
 | 
						|
    <ion-list *ngIf="contents && (contents.files.length + contents.folders.length > 0)">
 | 
						|
        <ng-container *ngFor="let folder of contents.folders">
 | 
						|
            <ion-item class="item-file" (click)="openFolder(folder)" detail="true" button>
 | 
						|
                <ion-icon name="fas-folder" slot="start" [attr.aria-label]="'core.folder' | translate"></ion-icon>
 | 
						|
                <ion-label>
 | 
						|
                    <p class="item-heading">{{folder.filename}}</p>
 | 
						|
                </ion-label>
 | 
						|
            </ion-item>
 | 
						|
        </ng-container>
 | 
						|
        <ng-container *ngFor="let file of contents.files">
 | 
						|
            <core-file [file]="file" [component]="component" [componentId]="componentId"></core-file>
 | 
						|
        </ng-container>
 | 
						|
    </ion-list>
 | 
						|
 | 
						|
    <core-empty-box *ngIf="!contents || (contents.files.length + contents.folders.length == 0)" icon="far-folder-open"
 | 
						|
        [message]=" 'addon.mod_folder.emptyfilelist' | translate"></core-empty-box>
 | 
						|
 | 
						|
</core-loading>
 | 
						|
 | 
						|
<core-course-module-navigation [hidden]="!loaded" [courseId]="courseId" [currentModule]="module" (completionChanged)="onCompletionChange()">
 | 
						|
</core-course-module-navigation>
 |