@* /admin/manage-plugins *@ @using Lumina.Presentation.Web.Common.DTO.Plugins @using Lumina.Presentation.Web.Common.Enums.Plugins @using Lumina.Presentation.Web.Common.Services @using Microsoft.AspNetCore.Mvc.Localization @model PluginDto[] @{ var settingsByPluginId = ViewData["pluginSettings"] as Dictionary ?? new Dictionary(); // generate a unique id for the scripts section of this view, so it can be dynamically loaded/unloaded by the global AJAX navigator handler var scriptId = ScriptIdentifierHelper.GenerateScriptId(); } @inject IUrlService _urlService @inject IViewLocalizer _localizer

@_localizer["Plugins"]

@if (Model.Length > 0) { @foreach (PluginDto plugin in Model) { @if (plugin.LoadStatus == PluginLoadStatus.FailedToLoad && !string.IsNullOrWhiteSpace(plugin.LoadError)) { } @if (plugin.LoadStatus == PluginLoadStatus.Loaded && settingsByPluginId.ContainsKey(plugin.Id)) { PluginSettingsDto pluginSettings = settingsByPluginId[plugin.Id]; } }
@_localizer["Name"] @_localizer["Author"] @_localizer["Version"] @_localizer["Description"] @_localizer["LoadStatus"] @_localizer["Settings"]
@plugin.Name @plugin.Author @plugin.Version @plugin.Description @if (plugin.LoadStatus == PluginLoadStatus.Loaded) { @_localizer["Loaded"] } else { @_localizer["FailedToLoad"] } @if (plugin.LoadStatus == PluginLoadStatus.Loaded && settingsByPluginId.ContainsKey(plugin.Id)) { }
@_localizer["LoadError"]: @plugin.LoadError
} else {

@_localizer["NoPlugins"]

}
@section Scripts { }