Commit 15271ad3 authored by Konstantin Schulz's avatar Konstantin Schulz
Browse files

linked files in exercise sequences are now more easily readible and accessible

parent b147d620
Pipeline #17487 passed with stages
in 5 minutes and 3 seconds
......@@ -84,13 +84,23 @@
</button>
</ion-item>
<ion-item *ngIf="zr.showFiles">
<ion-list>
<ion-list style="max-width: 85vw">
<ion-item *ngFor="let uri of zr.fileURIs">
<a href="{{ uri }}">{{ uri }}</a>
<button *ngIf="uri.endsWith('.h5p')" (click)="showH5PExercise(uri)">
<span>&nbsp;</span>
<img alt="H5P Logo" src="assets/imgs/h5p_logo.webp" width="67px" height="32px"/>
</button>
<ion-grid style="padding: 0; text-align: left">
<ion-row>
<ion-col *ngIf="uri.endsWith('.h5p')" style="max-width: 67px; padding: 0">
<button (click)="showH5PExercise(uri)" style="padding: 0">
<img alt="H5P Logo" src="assets/imgs/h5p_logo.webp" width="67px"
height="32px"/>
</button>
</ion-col>
<ion-col style="word-break: break-word">
<a href="{{ uri }}">
{{ uri.split('/').slice(-1)[0] }}
</a>
</ion-col>
</ion-row>
</ion-grid>
</ion-item>
</ion-list>
</ion-item>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment