From 469b6b64bcf1fdd79368200c7a811367560f869d Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sun, 4 Apr 2021 16:51:43 +0200 Subject: [PATCH] web/admin: link EventInfoPage on EventListPage Signed-off-by: Jens Langhammer --- web/src/pages/events/EventInfoPage.ts | 6 +++++- web/src/pages/events/EventListPage.ts | 4 ++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/web/src/pages/events/EventInfoPage.ts b/web/src/pages/events/EventInfoPage.ts index bc78a57a3..a6ea6c9da 100644 --- a/web/src/pages/events/EventInfoPage.ts +++ b/web/src/pages/events/EventInfoPage.ts @@ -6,6 +6,7 @@ import { EventWithContext } from "../../api/Events"; import PFBase from "@patternfly/patternfly/patternfly-base.css"; import PFPage from "@patternfly/patternfly/components/Page/page.css"; import PFCard from "@patternfly/patternfly/components/Card/card.css"; +import PFContent from "@patternfly/patternfly/components/Content/content.css"; import AKGlobal from "../../authentik.css"; import "./EventInfo"; @@ -25,7 +26,7 @@ export class EventInfoPage extends LitElement { event!: EventWithContext; static get styles(): CSSResult[] { - return [PFBase, PFPage, PFCard, AKGlobal].concat(css` + return [PFBase, PFPage, PFContent, PFCard, AKGlobal].concat(css` .pf-c-card { color: var(--ak-dark-foreground); } @@ -43,6 +44,9 @@ export class EventInfoPage extends LitElement {
+
+ ${t`Event info`} +
diff --git a/web/src/pages/events/EventListPage.ts b/web/src/pages/events/EventListPage.ts index d2258149b..ac0190f48 100644 --- a/web/src/pages/events/EventListPage.ts +++ b/web/src/pages/events/EventListPage.ts @@ -44,6 +44,7 @@ export class EventListPage extends TablePage { 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 { ` : html``}`, html`${item.created?.toLocaleString()}`, html`${item.clientIp}`, + html` + + `, ]; }