@{
    ViewData["Title"] = "환경변수";
}

<div class="container-fluid">
    <h3 class="pb-2">@ViewData["Title"]</h3>

    @if (ViewBag.EnvVars != null)
    {
        <table class="table table-striped table-bordered table-sm">
            <colgroup>
                <col style="width: 20%;" />
                <col style="width: 80%" />
            </colgroup>
            <thead>
                <tr class="text-center">
                    <th>Key</th>
                    <th>Value</th>
                </tr>
            </thead>
            <tbody>
                @foreach (var key in ViewBag.EnvVars.Keys)
                {
                    <tr class="align-middle">
                        <td class="p-3">@key</td>
                        <td>
                            <textarea class="form-control" rows="1" readonly disabled>@ViewBag.EnvVars[key]</textarea>
                        </td>
                    </tr>
                }
            </tbody>
        </table>
    }
    else
    {
        <p>Environment variables not available.</p>
    }
</div>