Skip to content

Commit

Permalink
chore: code tidying
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismclarke committed Dec 11, 2023
1 parent 5b8681b commit 04ffea2
Showing 1 changed file with 5 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,28 +8,20 @@ <h2>Resources</h2>
<ng-container matColumnDef="storage_file">
<th mat-header-cell *matHeaderCellDef>storage_file</th>
<td mat-cell *matCellDef="let resource">
@if(resource.storage_file; as storageFile){ {{storageFile.filename}} }
@if(resource.storage_file; as storage_file ){
<!-- storage file lookup -->
@if(service.storageFilesHashmap[storage_file]; as storageEntry){
<div>{{storageEntry.name?.split('/')?.pop()}}</div>
} }
</td>
</ng-container>
<tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>
<tr mat-row class="resource-row" [routerLink]="row.id" *matRowDef="let row; columns: displayedColumns;"></tr>
<!-- <tr>
<th>Name</th>
<th>Description</th>
<th>Languages</th>
<th>Deployments</th>
<th>File</th>
</tr> -->
<!-- @for (resource of resources; track resource.id) {
<tr class="resource-row" >
<td>...</td>
<td>{{resource.description}}</td>
<td>...</td>
<td>...</td>
<td></td>
</tr> -->

<!-- } -->
</table>
<button mat-stroked-button color="primary" routerLink="create" style="margin-top: 1rem">
<mat-icon>add</mat-icon>
Expand Down

0 comments on commit 04ffea2

Please sign in to comment.