@using ScadaLink.Commons.Entities.Audit
@using ScadaLink.Commons.Types.Enums
@* Reusable single-AuditEvent detail body (#23 M7 Bundle C / M7-T4..T8).
Extracted from AuditDrilldownDrawer so the drawer and the execution-tree
node-detail modal share one rendering of a row's detail.
All form/field rendering follows the form-layout memory:
read-only fields first (definition list), then subsections stacked,
action buttons at the bottom. *@
@* Read-only field list — primary identification + provenance. *@
@* Error subsection — only shown when there is something to report. *@
@if (!string.IsNullOrEmpty(Event.ErrorMessage) || !string.IsNullOrEmpty(Event.ErrorDetail))
{
}
@* Extra is always JSON when present. *@
@if (!string.IsNullOrEmpty(Event.Extra))
{
Extra
@PrettyPrintJson(Event.Extra!)
}
@* Action buttons at the bottom per form-layout memory. *@
@if (IsApiChannel(Event.Channel))
{
}
@if (Event.CorrelationId is not null)
{
}
@if (Event.ExecutionId is not null)
{
}
@if (Event.ParentExecutionId is not null)
{
}
@if (Event.ExecutionId is not null)
{
}