From 0f9f83fe7d5257862a654a2a9b0e623ec27c3f07 Mon Sep 17 00:00:00 2001 From: Jamie Date: Wed, 1 Nov 2017 13:50:14 +0000 Subject: [PATCH] Added a new customization option to provide a css link --- .../Settings/Models/CustomizationSettings.cs | 1 + src/Ombi/ClientApp/app/interfaces/ISettings.ts | 1 + .../settings/customization/customization.component.html | 8 ++++++++ src/Ombi/Views/Shared/_Layout.cshtml | 8 ++++++++ 4 files changed, 18 insertions(+) diff --git a/src/Ombi.Settings/Settings/Models/CustomizationSettings.cs b/src/Ombi.Settings/Settings/Models/CustomizationSettings.cs index a9340e633..2518bcafa 100644 --- a/src/Ombi.Settings/Settings/Models/CustomizationSettings.cs +++ b/src/Ombi.Settings/Settings/Models/CustomizationSettings.cs @@ -6,6 +6,7 @@ namespace Ombi.Settings.Settings.Models { public string ApplicationName { get; set; } public string ApplicationUrl { get; set; } + public string CustomCssLink { get; set; } public void AddToUrl(string part) { diff --git a/src/Ombi/ClientApp/app/interfaces/ISettings.ts b/src/Ombi/ClientApp/app/interfaces/ISettings.ts index 7af21c1a4..ada0d9cab 100644 --- a/src/Ombi/ClientApp/app/interfaces/ISettings.ts +++ b/src/Ombi/ClientApp/app/interfaces/ISettings.ts @@ -93,6 +93,7 @@ export interface ICustomizationSettings extends ISettings { applicationName: string; applicationUrl: string; logo: string; + customCssLink: string; } export interface IAuthenticationSettings extends ISettings { diff --git a/src/Ombi/ClientApp/app/settings/customization/customization.component.html b/src/Ombi/ClientApp/app/settings/customization/customization.component.html index 25c79c589..57140a38f 100644 --- a/src/Ombi/ClientApp/app/settings/customization/customization.component.html +++ b/src/Ombi/ClientApp/app/settings/customization/customization.component.html @@ -25,6 +25,14 @@ + +
+ +
+ +
+
+
diff --git a/src/Ombi/Views/Shared/_Layout.cshtml b/src/Ombi/Views/Shared/_Layout.cshtml index e3cafb39d..0a5d6b8bb 100644 --- a/src/Ombi/Views/Shared/_Layout.cshtml +++ b/src/Ombi/Views/Shared/_Layout.cshtml @@ -21,6 +21,8 @@ { appName = "Ombi"; } + + } @@ -51,6 +53,12 @@ + @{ + if (!string.IsNullOrEmpty(customization.CustomCssLink)) + { + + } + }