Envs.cshtml 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. @{
  2. ViewData["Title"] = "환경변수";
  3. }
  4. <div class="container-fluid">
  5. <h3 class="pb-2">@ViewData["Title"]</h3>
  6. @if (ViewBag.EnvVars != null)
  7. {
  8. <table class="table table-striped table-bordered table-sm">
  9. <colgroup>
  10. <col style="width: 20%;" />
  11. <col style="width: 80%" />
  12. </colgroup>
  13. <thead>
  14. <tr class="text-center">
  15. <th>Key</th>
  16. <th>Value</th>
  17. </tr>
  18. </thead>
  19. <tbody>
  20. @foreach (var key in ViewBag.EnvVars.Keys)
  21. {
  22. <tr class="align-middle">
  23. <td class="p-3">@key</td>
  24. <td>
  25. <textarea class="form-control" rows="1" readonly disabled>@ViewBag.EnvVars[key]</textarea>
  26. </td>
  27. </tr>
  28. }
  29. </tbody>
  30. </table>
  31. }
  32. else
  33. {
  34. <p>Environment variables not available.</p>
  35. }
  36. </div>