web/admin: link EventInfoPage on EventListPage

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer
2021-04-04 16:51:43 +02:00
parent c0bdb2407a
commit 469b6b64bc
2 changed files with 9 additions and 1 deletions

View File

@ -44,6 +44,7 @@ export class EventListPage extends TablePage<Event> {
new TableColumn(t`User`, t`user`),
new TableColumn(t`Creation Date`, t`created`),
new TableColumn(t`Client IP`, t`client_ip`),
new TableColumn(""),
];
}
row(item: EventWithContext): TemplateResult[] {
@ -56,6 +57,9 @@ export class EventListPage extends TablePage<Event> {
</small>` : html``}`,
html`<span>${item.created?.toLocaleString()}</span>`,
html`<span>${item.clientIp}</span>`,
html`<a href="#/events/log/${item.pk}">
<i class="fas fas fa-share-square"></i>
</a>`,
];
}