From cc3d41aa9a3d5687e59e6fbb0fd89292ad45f054 Mon Sep 17 00:00:00 2001 From: Jamie Rees Date: Sun, 13 Mar 2016 21:32:47 +0000 Subject: [PATCH] Small changes --- PlexRequests.Core/PlexRequests.Core.csproj | 1 + .../EmailNotificationSettings.cs | 13 +++++ PlexRequests.UI/Views/Admin/_Sidebar.cshtml | 50 +++++++++++++++++-- appveyor.yml | 2 +- 4 files changed, 60 insertions(+), 6 deletions(-) create mode 100644 PlexRequests.Core/SettingModels/EmailNotificationSettings.cs diff --git a/PlexRequests.Core/PlexRequests.Core.csproj b/PlexRequests.Core/PlexRequests.Core.csproj index d121724b1..79aca698c 100644 --- a/PlexRequests.Core/PlexRequests.Core.csproj +++ b/PlexRequests.Core/PlexRequests.Core.csproj @@ -67,6 +67,7 @@ + diff --git a/PlexRequests.Core/SettingModels/EmailNotificationSettings.cs b/PlexRequests.Core/SettingModels/EmailNotificationSettings.cs new file mode 100644 index 000000000..059f8c628 --- /dev/null +++ b/PlexRequests.Core/SettingModels/EmailNotificationSettings.cs @@ -0,0 +1,13 @@ +namespace PlexRequests.Core.SettingModels +{ + public class EmailNotificationSettings : Settings + { + public string EmailHost { get; set; } + public int EmailPort { get; set; } + public bool EmailAuthentication { get; set; } + public string RecipientEmail { get; set; } + public string EmailUsername { get; set; } + public string EmailPassword { get; set; } + public bool Enabled { get; set; } + } +} \ No newline at end of file diff --git a/PlexRequests.UI/Views/Admin/_Sidebar.cshtml b/PlexRequests.UI/Views/Admin/_Sidebar.cshtml index d39234f4d..642eced41 100644 --- a/PlexRequests.UI/Views/Admin/_Sidebar.cshtml +++ b/PlexRequests.UI/Views/Admin/_Sidebar.cshtml @@ -1,10 +1,50 @@ 
- Plex Request Settings - Authentication - Plex Settings - CouchPotato Settings - Sonarr Settings + @if (Context.Request.Path == "/admin") + { + Plex Request Settings + } + else + { + Plex Request Settings + } + @if (Context.Request.Path == "/admin/authentication") + { + + Authentication + } + else + { + + Authentication + } + + @if (Context.Request.Path == "/admin/plex") + { + Plex Settings + } + else + { + Plex Settings + } + @if (Context.Request.Path == "/admin/couchpotato") + { + CouchPotato Settings + } + else + { + + CouchPotato Settings + } + @if (Context.Request.Path == "/admin/sonarr") + { + Sonarr Settings + } + else + { + Sonarr Settings + + } @*Sickbeard Settings*@
\ No newline at end of file diff --git a/appveyor.yml b/appveyor.yml index bc0c6ed3e..4f4404c4a 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,4 +1,4 @@ -version: 1.0.{build} +version: 1.1.{build} configuration: Release assembly_info: patch: true