@page "/deployment/deployments" @using ZB.MOM.WW.ScadaBridge.Security @using ZB.MOM.WW.ScadaBridge.Commons.Interfaces.Repositories @using ZB.MOM.WW.ScadaBridge.Commons.Types.Deployment @using ZB.MOM.WW.ScadaBridge.Commons.Types.Enums @attribute [Authorize(Policy = AuthorizationPolicies.RequireDeployment)] @inject IDeploymentManagerRepository DeploymentManagerRepository @inject ZB.MOM.WW.ScadaBridge.CentralUI.Auth.SiteScopeService SiteScope @inject ZB.MOM.WW.ScadaBridge.DeploymentManager.IDeploymentStatusNotifier DeploymentStatusNotifier @implements IDisposable
@(HasActiveFilter ? "No deployments match the current filters." : "No deployments recorded.")
| Deployment | Instance | Status | Deployed By | Started | Completed | Actions |
|---|---|---|---|---|---|---|
@* Deployment id and revision hash are two distinct
identifiers — kept on separate lines so neither
reads as part of the other. *@
@idShort
@if (!string.IsNullOrEmpty(revShort))
{
@revShort
}
|
@record.InstanceUniqueName | @if (isFailed) { } @record.Status @if (record.Status == DeploymentStatus.InProgress) { } | @record.DeployedBy |
|
@if (record.CompletedAt.HasValue)
{
|
@if (isFailed && !string.IsNullOrEmpty(record.ErrorMessage))
{
|
|
Error:
@record.ErrorMessage |
||||||