Skip to content

Commit

Permalink
Merge pull request #1814 from France-ioi/fix-allow-non-user-in-logs
Browse files Browse the repository at this point in the history
allow non-users (teams) in log view
  • Loading branch information
smadbe authored Oct 21, 2024
2 parents 2d3ae8d + d7ff9fd commit a3d5913
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,11 @@
</a>
</td>
<td *ngIf="this.showUserColumn">
<a class="alg-link" [routerLink]="rowData.user | groupLink">{{ rowData.user | userCaption }}</a>
@if (rowData.user) {
<a class="alg-link" [routerLink]="rowData.user | groupLink">{{ rowData.user | userCaption }}</a>
} @else {
{{ rowData.participant.name }}
}
</td>
<td>{{ rowData.at | date:'short' }}</td>
</tr>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,11 @@
</a>
</ng-container>
<ng-container *ngSwitchCase="'item.user'">
<a class="alg-link" [routerLink]="{ id: rowData.user.id, isUser: true } | groupLink">{{ rowData.user | userCaption }}</a>
@if (rowData.user) {
<a class="alg-link" [routerLink]="{ id: rowData.user.id, isUser: true } | groupLink">{{ rowData.user | userCaption }}</a>
} @else {
{{ rowData.participant.name }}
}
</ng-container>
<ng-container *ngSwitchCase="'at'">
<alg-relative-time [value]="rowData.at"></alg-relative-time>
Expand Down

0 comments on commit a3d5913

Please sign in to comment.