Updated the WebUI by creating new page for viewing the installed plugins

This commit is contained in:
2025-04-05 17:02:22 +03:00
parent a4afb28f36
commit 8aaefac706
9 changed files with 117 additions and 34 deletions

View File

@@ -0,0 +1,32 @@
@model List<InstalledPluginViewModel>
@{
ViewData["Title"] = "Installed Plugins";
}
<h2>@ViewData["Title"]</h2>
<table class="table">
<thead>
<tr>
<th>Name</th>
<th>Version</th>
<th>Actions</th>
</tr>
</thead>
<tbody>
@foreach (var plugin in Model)
{
<tr>
<td>@plugin.Name</td>
<td>@plugin.Version</td>
<td>
<form method="post" asp-action="DeletePlugin" asp-route-pluginName="@plugin.Name">
<button type="submit" class="btn btn-danger btn-sm">Delete</button>
</form>
<button type="button" class="btn btn-info btn-sm" data-toggle="modal" data-target="#pluginDetailsModal-@plugin.Name">Details</button>
</td>
</tr>
}
</tbody>
</table>