@using System.Security.Principal
@using Zap.BI.Core
@using Zap.BI.Core.Security
@using Zap.BI.Portal.Pages.Diagnostics
@model dynamic

@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=100" />
    <link rel="stylesheet" href="@Url.Action("File", "Content", new { path = "Zap.BI.Portal/Styles/External/Diagnostics.css" })" />
    <title>@DiagnosticText.Title_Diagnostics</title>
</head>
<body>
    <h1>@DiagnosticText.Title_Diagnostics</h1>

    <b>@DiagnosticText.ADDiagnostics_ZapVersion:</b> @ProductInformation.Current.BuildVersionNumber<br />
    <b>@DiagnosticText.ADDiagnostics_DotNetVersion:</b> @Environment.Version<br />
    <b>@DiagnosticText.ADDiagnostics_OSVersion:</b> @Environment.OSVersion<br />

    <b>@DiagnosticText.ADDiagnostics_AppPoolUser:</b> @WindowsIdentity.GetCurrent().DisplayId()<br />
    <b>@DiagnosticText.ADDiagnostics_MachineName:</b> @Environment.MachineName<br />
    @if (!string.IsNullOrEmpty(ViewBag.ActiveDirectoryDomainName))
    {
        <b>@DiagnosticText.ADDiagnostics_DomainName:</b>@ViewBag.ActiveDirectoryDomainName<br/>
    }

    <b>@DiagnosticText.ADDiagnostics_64BitOS:</b> @Environment.Is64BitOperatingSystem<br />
    <b>@DiagnosticText.ADDiagnostics_64BitAppPool:</b> @Environment.Is64BitProcess<br />
    <b>@DiagnosticText.ADDiagnostics_CPUCount:</b> @Environment.ProcessorCount<br />

    <hr />
    <ul>
        <li>
            <h3>@Html.ActionLink(DiagnosticText.ADDiagnostics_Header, "Index", "ActiveDirectory")</h3>
        </li>
    </ul>
</body>
</html>
