Env.cshtml 1.1 KB

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