summaryrefslogtreecommitdiff
path: root/src/marlin.web/Views/VCS/ListSecret.cshtml
diff options
context:
space:
mode:
authorMelodi <62381002+Melodi17@users.noreply.github.com>2026-09-06 09:02:31 +1000
committerMelodi <62381002+Melodi17@users.noreply.github.com>2026-09-06 09:02:31 +1000
commita9bc03fb01b5d1ac41bf5592f384d22df5425aa4 (patch)
tree16ae13e19d2a3cd7488202c30790d09557559d70 /src/marlin.web/Views/VCS/ListSecret.cshtml
parentc00992ffad24212c4398736efd6d707d4cb0cc0d (diff)
feat: vcs and secret management support
Diffstat (limited to 'src/marlin.web/Views/VCS/ListSecret.cshtml')
-rw-r--r--src/marlin.web/Views/VCS/ListSecret.cshtml45
1 files changed, 45 insertions, 0 deletions
diff --git a/src/marlin.web/Views/VCS/ListSecret.cshtml b/src/marlin.web/Views/VCS/ListSecret.cshtml
new file mode 100644
index 0000000..aa5f15c
--- /dev/null
+++ b/src/marlin.web/Views/VCS/ListSecret.cshtml
@@ -0,0 +1,45 @@
+@model (marlin.core.models.VersionControlSource Source, List<ISecret> Secrets)
+
+<a asp-action="CreateSecret" asp-route-sourceId="@Model.Source.Id">New</a>
+
+<table>
+ <thead>
+ <tr>
+ <th>id</th>
+ <th>label</th>
+ <th>kind</th>
+ <th>value</th>
+ <th>actions</th>
+ </tr>
+ </thead>
+ <tbody>
+ @foreach (var secret in Model.Secrets)
+ {
+ <tr>
+ <td>@secret.Id</td>
+ <td>@secret.Label</td>
+ <td>@secret.Kind</td>
+ <td>
+ @if (secret.MayReveal)
+ {
+ @foreach (var pair in secret.Content)
+ {
+ <span>@pair.Key = @pair.Value</span>
+ }
+ }
+ else
+ {
+ <span>secret cannot be revealed</span>
+ }
+ </td>
+ <td>
+ <form asp-action="DeleteSecret" method="post" asp-route-sourceId="@Model.Source.Id" asp-route-id="@secret.Id">
+ <button type="submit">delete</button>
+ </form>
+ </td>
+ </tr>
+ }
+ </tbody>
+</table>
+
+<a asp-action="Details", asp-route-id="@Model.Source.Id">back</a>