Small changes

This commit is contained in:
Jamie Rees 2016-03-13 21:32:47 +00:00
parent 58c9cc6776
commit cc3d41aa9a
4 changed files with 60 additions and 6 deletions

View file

@ -67,6 +67,7 @@
<Compile Include="IRequestService.cs" /> <Compile Include="IRequestService.cs" />
<Compile Include="ISettingsService.cs" /> <Compile Include="ISettingsService.cs" />
<Compile Include="SettingModels\AuthenticationSettings.cs" /> <Compile Include="SettingModels\AuthenticationSettings.cs" />
<Compile Include="SettingModels\EmailNotificationSettings.cs" />
<Compile Include="SettingModels\PlexSettings.cs" /> <Compile Include="SettingModels\PlexSettings.cs" />
<Compile Include="SettingModels\SonarrSettings.cs" /> <Compile Include="SettingModels\SonarrSettings.cs" />
<Compile Include="SettingModels\SickRageSettings.cs" /> <Compile Include="SettingModels\SickRageSettings.cs" />

View file

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

View file

@ -1,10 +1,50 @@
<div class="col-lg-3 col-md-3 col-sm-4"> <div class="col-lg-3 col-md-3 col-sm-4">
<div class="list-group table-of-contents"> <div class="list-group table-of-contents">
@if (Context.Request.Path == "/admin")
{
<a class="list-group-item active" href="/admin">Plex Request Settings</a>
}
else
{
<a class="list-group-item" href="/admin">Plex Request Settings</a> <a class="list-group-item" href="/admin">Plex Request Settings</a>
}
@if (Context.Request.Path == "/admin/authentication")
{
<a class="list-group-item active" href="/admin/authentication">Authentication</a>
}
else
{
<a class="list-group-item" href="/admin/authentication">Authentication</a> <a class="list-group-item" href="/admin/authentication">Authentication</a>
}
@if (Context.Request.Path == "/admin/plex")
{
<a class="list-group-item active" href="/admin/plex">Plex Settings</a>
}
else
{
<a class="list-group-item" href="/admin/plex">Plex Settings</a> <a class="list-group-item" href="/admin/plex">Plex Settings</a>
}
@if (Context.Request.Path == "/admin/couchpotato")
{
<a class="list-group-item active" href="/admin/couchpotato">CouchPotato Settings</a>
}
else
{
<a class="list-group-item" href="/admin/couchpotato">CouchPotato Settings</a> <a class="list-group-item" href="/admin/couchpotato">CouchPotato Settings</a>
}
@if (Context.Request.Path == "/admin/sonarr")
{
<a class="list-group-item active" href="/admin/sonarr">Sonarr Settings</a>
}
else
{
<a class="list-group-item" href="/admin/sonarr">Sonarr Settings</a> <a class="list-group-item" href="/admin/sonarr">Sonarr Settings</a>
}
@*<a class="list-group-item" href="/admin/sickbeard">Sickbeard Settings</a>*@ @*<a class="list-group-item" href="/admin/sickbeard">Sickbeard Settings</a>*@
</div> </div>
</div> </div>

View file

@ -1,4 +1,4 @@
version: 1.0.{build} version: 1.1.{build}
configuration: Release configuration: Release
assembly_info: assembly_info:
patch: true patch: true