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>

View File

@@ -20,10 +20,13 @@
<div class="navbar-collapse collapse d-sm-inline-flex justify-content-between">
<ul class="navbar-nav flex-grow-1">
<li class="nav-item">
<a class="nav-link text-dark" asp-area="" asp-controller="Home" asp-action="Index">Home</a>
<a class="nav-link text-dark" asp-area="" asp-controller="Settings" asp-action="Index">Settings</a>
</li>
<li class="nav-item">
<a class="nav-link text-dark" asp-area="" asp-controller="Home" asp-action="Privacy">Privacy</a>
<a class="nav-link text-dark" asp-area="" asp-controller="Plugins" asp-action="OnlinePlugins">View Online Repository</a>
</li>
<li class="nav-item">
<a class="nav-link text-dark" asp-area="" asp-controller="Plugins" asp-action="InstalledPlugins">View Installed Plugins</a>
</li>
</ul>
</div>