@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>