From f3396226e87c5fe2473f221c30825e560a8b169e Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sun, 11 Apr 2021 17:45:37 +0200 Subject: [PATCH] web/admin: make username in events log clickable Signed-off-by: Jens Langhammer --- web/src/pages/events/EventListPage.ts | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/web/src/pages/events/EventListPage.ts b/web/src/pages/events/EventListPage.ts index 26433c00d..32bac4d25 100644 --- a/web/src/pages/events/EventListPage.ts +++ b/web/src/pages/events/EventListPage.ts @@ -47,16 +47,21 @@ export class EventListPage extends TablePage { new TableColumn(""), ]; } + row(item: EventWithContext): TemplateResult[] { return [ html`
${item.action}
${item.app}`, - html`
${item.user?.username}
- ${item.user.on_behalf_of ? html` - ${t`On behalf of ${item.user.on_behalf_of.username}`} - ` : html``}`, + item.user?.username ? + html` + ${item.user?.username} + + ${item.user.on_behalf_of ? html` + ${t`On behalf of ${item.user.on_behalf_of.username}`} + ` : html``}` : + html`-`, html`${item.created?.toLocaleString()}`, - html`${item.clientIp}`, + html`${item.clientIp || "-"}`, html` `,