web: Tidy temporal utilities. (#13755)
This commit is contained in:
		| @ -2,7 +2,7 @@ import { EventGeo, EventUser } from "@goauthentik/admin/events/utils"; | ||||
| import { DEFAULT_CONFIG } from "@goauthentik/common/api/config"; | ||||
| import { EventWithContext } from "@goauthentik/common/events"; | ||||
| import { actionToLabel } from "@goauthentik/common/labels"; | ||||
| import { getRelativeTime } from "@goauthentik/common/utils"; | ||||
| import { formatElapsedTime } from "@goauthentik/common/temporal"; | ||||
| import "@goauthentik/components/ak-event-info"; | ||||
| import "@goauthentik/elements/Tabs"; | ||||
| import "@goauthentik/elements/buttons/Dropdown"; | ||||
| @ -74,7 +74,7 @@ export class RecentEventsCard extends Table<Event> { | ||||
|             html`<div><a href="${`#/events/log/${item.pk}`}">${actionToLabel(item.action)}</a></div> | ||||
|                 <small>${item.app}</small>`, | ||||
|             EventUser(item), | ||||
|             html`<div>${getRelativeTime(item.created)}</div> | ||||
|             html`<div>${formatElapsedTime(item.created)}</div> | ||||
|                 <small>${item.created.toLocaleString()}</small>`, | ||||
|             html` <div>${item.clientIp || msg("-")}</div> | ||||
|                 <small>${EventGeo(item)}</small>`, | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Teffen Ellis
					Teffen Ellis