mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-21 13:53:19 -07:00
Small amount of work on the user management
This commit is contained in:
parent
46a63f48c4
commit
2a6f928902
7 changed files with 377 additions and 18 deletions
|
@ -42,6 +42,7 @@ namespace PlexRequests.UI.Helpers
|
|||
Locator = ServiceLocator.Instance;
|
||||
Cache = Locator.Resolve<ICacheProvider>();
|
||||
}
|
||||
|
||||
private static ICacheProvider Cache { get; }
|
||||
private static ServiceLocator Locator { get; }
|
||||
private static string _Assembly;
|
||||
|
@ -91,7 +92,6 @@ namespace PlexRequests.UI.Helpers
|
|||
var scriptAssets = new List<string>
|
||||
{
|
||||
$"<script src=\"{startUrl}/jquery-2.2.1.min.js\"></script>",
|
||||
//$"<script src=\"{startUrl}/app/app.js\"></script>",
|
||||
$"<script src=\"{startUrl}/handlebars.min.js\"></script>",
|
||||
$"<script src=\"{startUrl}/bootstrap.min.js\"></script>",
|
||||
$"<script src=\"{startUrl}/bootstrap-notify.min.js\"></script>",
|
||||
|
@ -118,6 +118,28 @@ namespace PlexRequests.UI.Helpers
|
|||
return helper.Raw(sb.ToString());
|
||||
}
|
||||
|
||||
public static IHtmlString LoadAngularAssets(this HtmlHelpers helper)
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
var assetLocation = GetBaseUrl();
|
||||
|
||||
var content = GetContentUrl(assetLocation);
|
||||
var settings = GetSettings();
|
||||
if (string.IsNullOrEmpty(settings.ThemeName))
|
||||
{
|
||||
settings.ThemeName = Themes.PlexTheme;
|
||||
}
|
||||
if (settings.ThemeName == "PlexBootstrap.css") settings.ThemeName = Themes.PlexTheme;
|
||||
if (settings.ThemeName == "OriginalBootstrap.css") settings.ThemeName = Themes.OriginalTheme;
|
||||
|
||||
var startUrl = $"{content}/Content";
|
||||
|
||||
sb.AppendLine($"<script src=\"{startUrl}/angular.min.js\"></script>"); // Load angular first
|
||||
sb.AppendLine($"<script src=\"{startUrl}/app/app.js\"></script>");
|
||||
|
||||
return helper.Raw(sb.ToString());
|
||||
}
|
||||
|
||||
public static IHtmlString LoadSearchAssets(this HtmlHelpers helper)
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue