Merge branch 'markus101'

Conflicts:
	NzbDrone.Web/NzbDrone.Web.csproj
	NzbDrone.Web/Views/Log/Index.cshtml
pull/3113/head
kay.one 14 years ago
commit 6f73260ab7

@ -21,9 +21,9 @@ namespace NzbDrone.Core.Providers
_sonicRepo = sonicRepo; _sonicRepo = sonicRepo;
} }
public virtual void Add(QualityProfile profile) public virtual int Add(QualityProfile profile)
{ {
_sonicRepo.Add(profile); return Convert.ToInt32(_sonicRepo.Add(profile));
} }
public virtual void Update(QualityProfile profile) public virtual void Update(QualityProfile profile)

@ -24,9 +24,9 @@ namespace NzbDrone.Core.Repository
public string Language { get; set; } public string Language { get; set; }
public EpisodeStatusType Status { get; set; } public EpisodeStatusType Status { get; set; }
public DayOfWeek? LastInfoSync { get; set; } public DateTime? LastInfoSync { get; set; }
public DayOfWeek? LastDiskSync { get; set; } public DateTime? LastDiskSync { get; set; }
[SubSonicToOneRelation(ThisClassContainsJoinKey = true)] [SubSonicToOneRelation(ThisClassContainsJoinKey = true)]
public virtual Season Season { get; set; } public virtual Season Season { get; set; }

@ -268,3 +268,9 @@ button, input[type="button"], input[type="submit"], input[type="reset"]
{ {
width: 400px; width: 400px;
} }
/* Set the font size for Grids */
.Grid
{
font-size: 13px;
}

@ -94,7 +94,6 @@ namespace NzbDrone.Web.Controllers
"QualityProfileId", "QualityProfileId",
"Name", "Name",
defaultQuality); defaultQuality);
;
return PartialView("AddSeriesItem", suggestions); return PartialView("AddSeriesItem", suggestions);
} }

@ -38,7 +38,10 @@ namespace NzbDrone.Web.Controllers
[GridAction] [GridAction]
public ActionResult _AjaxBinding() public ActionResult _AjaxBinding()
{ {
var history = _historyProvider.AllItems().Select(h => new HistoryModel
//TODO: possible subsonic bug, IQuarible causes some issues so ToList() is called
var history = _historyProvider.AllItems().ToList().Select(h => new HistoryModel
{ {
HistoryId = h.HistoryId, HistoryId = h.HistoryId,
SeasonNumber = h.Episode.SeasonNumber, SeasonNumber = h.Episode.SeasonNumber,
@ -47,11 +50,13 @@ namespace NzbDrone.Web.Controllers
EpisodeOverview = h.Episode.Overview, EpisodeOverview = h.Episode.Overview,
SeriesTitle = h.Episode.Series.Title, SeriesTitle = h.Episode.Series.Title,
NzbTitle = h.NzbTitle, NzbTitle = h.NzbTitle,
Quality = h.Quality.ToString("G"), Quality = h.Quality.ToString(),
IsProper = h.IsProper, IsProper = h.IsProper,
Date = h.Date Date = h.Date
}); });
history.ToList();
return View(new GridModel(history)); return View(new GridModel(history));
} }
} }

@ -69,22 +69,15 @@ namespace NzbDrone.Web.Controllers
var episodes = _episodeProvider.GetEpisodeBySeason(seasonId).Select(c => new EpisodeModel var episodes = _episodeProvider.GetEpisodeBySeason(seasonId).Select(c => new EpisodeModel
{ {
EpisodeId = c.EpisodeId, EpisodeId = c.EpisodeId,
EpisodeNumber = EpisodeNumber = c.EpisodeNumber,
c.EpisodeNumber, SeasonNumber = c.SeasonNumber,
SeasonNumber =
c.SeasonNumber,
Title = c.Title, Title = c.Title,
Overview = c.Overview, Overview = c.Overview,
AirDate = c.AirDate, AirDate = c.AirDate,
Path = Path = GetEpisodePath(c.EpisodeFile),
GetEpisodePath( Quality = c.EpisodeFile == null
c.EpisodeFile),
Quality =
c.EpisodeFile == null
? String.Empty ? String.Empty
: c.EpisodeFile. : c.EpisodeFile.Quality.ToString()
Quality.
ToString()
}); });
return View(new GridModel(episodes)); return View(new GridModel(episodes));
} }

@ -210,7 +210,35 @@ namespace NzbDrone.Web.Controllers
ViewData["Qualities"] = qualityTypes; ViewData["Qualities"] = qualityTypes;
return View("UserProfileSection", new QualityProfile { Name = "New Profile", UserProfile = true }); var qualityProfile = new QualityProfile
{
Name = "New Profile",
UserProfile = true,
Allowed = new List<QualityTypes> {QualityTypes.Unknown},
Cutoff = QualityTypes.Unknown,
};
var id = _qualityProvider.Add(qualityProfile);
qualityProfile.QualityProfileId = id;
qualityProfile.Allowed = null;
ViewData["ProfileId"] = id;
return View("UserProfileSection", qualityProfile);
}
public ActionResult GetQualityProfileView(QualityProfile profile)
{
var qualityTypes = new List<QualityTypes>();
foreach (QualityTypes qual in Enum.GetValues(typeof(QualityTypes)))
{
qualityTypes.Add(qual);
}
ViewData["Qualities"] = qualityTypes;
ViewData["ProfileId"] = profile.QualityProfileId;
return PartialView("UserProfileSection", profile);
} }
public ViewResult AddRootDir() public ViewResult AddRootDir()
@ -233,6 +261,21 @@ namespace NzbDrone.Web.Controllers
return new QualityModel { DefaultQualityProfileId = defaultQualityQualityProfileId, SelectList = selectList }; return new QualityModel { DefaultQualityProfileId = defaultQualityQualityProfileId, SelectList = selectList };
} }
public JsonResult DeleteQualityProfile(int profileId)
{
try
{
_qualityProvider.Delete(profileId);
}
catch (Exception)
{
return new JsonResult { Data = "failed" };
}
return new JsonResult { Data = "ok" };
}
[HttpPost] [HttpPost]
public ActionResult SaveGeneral(SettingsModel data) public ActionResult SaveGeneral(SettingsModel data)
{ {
@ -343,12 +386,6 @@ namespace NzbDrone.Web.Controllers
if (data.UserProfiles == null) if (data.UserProfiles == null)
return Content(SETTINGS_SAVED); return Content(SETTINGS_SAVED);
foreach (var dbProfile in _qualityProvider.GetAllProfiles().Where(q => q.UserProfile))
{
if (!data.UserProfiles.Exists(p => p.QualityProfileId == dbProfile.QualityProfileId))
_qualityProvider.Delete(dbProfile.QualityProfileId);
}
foreach (var profile in data.UserProfiles) foreach (var profile in data.UserProfiles)
{ {
Logger.Debug(String.Format("Updating User Profile: {0}", profile)); Logger.Debug(String.Format("Updating User Profile: {0}", profile));
@ -365,14 +402,9 @@ namespace NzbDrone.Web.Controllers
return Content("Error Saving Settings, please fix any errors"); return Content("Error Saving Settings, please fix any errors");
//profile.Cutoff = profile.Allowed.Last(); //profile.Cutoff = profile.Allowed.Last();
if (profile.QualityProfileId > 0) _qualityProvider.Update(profile);
_qualityProvider.Update(profile);
else
_qualityProvider.Add(profile);
return Content(SETTINGS_SAVED);
} }
return Content(SETTINGS_SAVED);
} }
return Content(SETTINGS_FAILED); return Content(SETTINGS_FAILED);

@ -631,17 +631,9 @@
<Content Include="Scripts\jquery-tgc-countdown-1.0.js" /> <Content Include="Scripts\jquery-tgc-countdown-1.0.js" />
<Content Include="Scripts\jquery.simpledropdown.js" /> <Content Include="Scripts\jquery.simpledropdown.js" />
<Content Include="Scripts\Notification.js" /> <Content Include="Scripts\Notification.js" />
<Content Include="Views\AddSeries\AddExisting.cshtml" />
<Content Include="Views\AddSeries\AddNew.cshtml" />
<None Include="Views\AddSeries\AddSeriesItem.cshtml" /> <None Include="Views\AddSeries\AddSeriesItem.cshtml" />
<Content Include="Views\History\Index.aspx" />
<Content Include="Views\Log\Index.aspx" />
<Content Include="Views\AddSeries\AddExisting.aspx" />
<Content Include="Views\AddSeries\AddNew.aspx" />
<Content Include="Views\Series\Details.aspx" />
<Content Include="Views\Series\Edit.aspx" />
<Content Include="Views\Series\index.aspx" />
<Content Include="Views\Series\SeriesSearchResults.ascx" />
<Content Include="Views\Series\SubMenu.ascx" />
<Content Include="Views\Upcoming\Index.aspx" />
<Content Include="Web.config"> <Content Include="Web.config">
<SubType>Designer</SubType> <SubType>Designer</SubType>
</Content> </Content>
@ -659,8 +651,6 @@
<Content Include="Scripts\MicrosoftMvcAjax.debug.js" /> <Content Include="Scripts\MicrosoftMvcAjax.debug.js" />
<Content Include="Scripts\MicrosoftMvcValidation.js" /> <Content Include="Scripts\MicrosoftMvcValidation.js" />
<Content Include="Scripts\MicrosoftMvcValidation.debug.js" /> <Content Include="Scripts\MicrosoftMvcValidation.debug.js" />
<Content Include="Views\Shared\Error.aspx" />
<Content Include="Views\Shared\Site.Master" />
<Content Include="Scripts\jquery-ui.js" /> <Content Include="Scripts\jquery-ui.js" />
<Content Include="Scripts\jquery-ui.min.js" /> <Content Include="Scripts\jquery-ui.min.js" />
<Content Include="Scripts\jquery.validate.min.js" /> <Content Include="Scripts\jquery.validate.min.js" />
@ -678,11 +668,20 @@
<Content Include="Views\Settings\Quality.cshtml" /> <Content Include="Views\Settings\Quality.cshtml" />
<Content Include="Views\Settings\RootDir.cshtml" /> <Content Include="Views\Settings\RootDir.cshtml" />
<Content Include="Views\Settings\SubMenu.cshtml" /> <Content Include="Views\Settings\SubMenu.cshtml" />
<Content Include="Views\Settings\UserProfileSection.cshtml" />
<Content Include="Views\Shared\SiteLayout.cshtml" /> <Content Include="Views\Shared\SiteLayout.cshtml" />
<Content Include="Views\Shared\Footer.cshtml" /> <Content Include="Views\Shared\Footer.cshtml" />
<Content Include="Views\Settings\Index.cshtml" /> <Content Include="Views\Settings\Index.cshtml" />
<Content Include="Views\_ViewStart.cshtml" /> <Content Include="Views\_ViewStart.cshtml" />
<Content Include="Views\History\Index.cshtml" />
<Content Include="Views\Log\Index.cshtml" />
<Content Include="Views\Upcoming\Index.cshtml" />
<Content Include="Views\Series\Details.cshtml" />
<Content Include="Views\Series\Edit.cshtml" />
<Content Include="Views\Series\Index.cshtml" />
<Content Include="Views\Series\SubMenu.cshtml" />
<Content Include="Views\Series\SeriesSearchResults.cshtml" />
<Content Include="Views\Shared\Error.cshtml" />
<Content Include="Views\Settings\UserProfileSection.cshtml" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Folder Include="App_Data\" /> <Folder Include="App_Data\" />

@ -0,0 +1,854 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>
</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{43BD3BBD-1531-4D8F-9C08-E1CD544AB2CD}</ProjectGuid>
<ProjectTypeGuids>{E53F8FEA-EAE0-44A6-8774-FFD645390401};{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>NzbDrone.Web</RootNamespace>
<AssemblyName>NzbDrone.Web</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<MvcBuildViews>true</MvcBuildViews>
<EnableUpdateable>false</EnableUpdateable>
<TargetFrameworkProfile />
<UseIISExpress>false</UseIISExpress>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>Bin\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<PlatformTarget>AnyCPU</PlatformTarget>
<PublishDatabases>false</PublishDatabases>
<MvcBuildViews>true</MvcBuildViews>
<EnableUpdateable>false</EnableUpdateable>
<ExcludeApp_Data>true</ExcludeApp_Data>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<MvcBuildViews>true</MvcBuildViews>
<EnableUpdateable>false</EnableUpdateable>
</PropertyGroup>
<ItemGroup>
<Reference Include="Castle.Core">
<HintPath>..\NzbDrone.Core\Libraries\Castle.Core.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Web.Infrastructure, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<Private>True</Private>
</Reference>
<Reference Include="Ninject, Version=2.2.0.0, Culture=neutral, PublicKeyToken=c7192dc5380945e7, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\packages\Ninject.2.2.1.0\lib\.NetFramework 4.0\Ninject.dll</HintPath>
</Reference>
<Reference Include="Ninject.Web.Mvc, Version=2.2.0.0, Culture=neutral, PublicKeyToken=c7192dc5380945e7, processorArchitecture=MSIL" />
<Reference Include="NLog, Version=2.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c, processorArchitecture=MSIL" />
<Reference Include="SubSonic.Core, Version=3.0.0.3, Culture=neutral, processorArchitecture=MSIL">
<HintPath>D:\My Dropbox\Git\NzbDrone\NzbDrone.Core\Libraries\SubSonic.Core.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Data" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="System.Data.SQLite">
<HintPath>..\NzbDrone.Core\Libraries\System.Data.SQLite.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="System.Drawing" />
<Reference Include="System.Web.ApplicationServices" />
<Reference Include="System.Web.DynamicData" />
<Reference Include="System.Web.Entity" />
<Reference Include="System.ComponentModel.DataAnnotations">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
<Reference Include="System.Web.Extensions" />
<Reference Include="System.Web" />
<Reference Include="System.Web.Abstractions">
<Private>True</Private>
</Reference>
<Reference Include="System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<Private>True</Private>
</Reference>
<Reference Include="System.Web.Razor, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<Private>True</Private>
</Reference>
<Reference Include="System.Web.Routing">
<Private>True</Private>
</Reference>
<Reference Include="System.Web.WebPages.Deployment, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<Private>True</Private>
</Reference>
<Reference Include="System.Web.WebPages.Razor, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<Private>True</Private>
</Reference>
<Reference Include="System.Xml" />
<Reference Include="System.Configuration" />
<Reference Include="System.Web.Services" />
<Reference Include="System.EnterpriseServices" />
<Reference Include="System.Xml.Linq" />
<Reference Include="Telerik.Web.Mvc, Version=2011.1.315.340, Culture=neutral, PublicKeyToken=121fae78165ba3d4, processorArchitecture=MSIL">
<HintPath>..\packages\TelerikMvcExtensions.2011.1.315\lib\net40\Telerik.Web.Mvc.dll</HintPath>
</Reference>
<Reference Include="System.Web.WebPages">
<Private>True</Private>
</Reference>
<Reference Include="System.Web.Helpers">
<Private>True</Private>
</Reference>
<Reference Include="TvdbLib">
<HintPath>..\NzbDrone.Core\Libraries\TvdbLib.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="App_GlobalResources\EditorLocalization.bg-BG.designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>EditorLocalization.bg-BG.resx</DependentUpon>
</Compile>
<Compile Include="App_GlobalResources\EditorLocalization.de-DE.designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>EditorLocalization.de-DE.resx</DependentUpon>
</Compile>
<Compile Include="App_GlobalResources\EditorLocalization.en-US.designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>EditorLocalization.en-US.resx</DependentUpon>
</Compile>
<Compile Include="App_GlobalResources\EditorLocalization.fr-FR.designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>EditorLocalization.fr-FR.resx</DependentUpon>
</Compile>
<Compile Include="App_GlobalResources\EditorLocalization.pl-PL.designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>EditorLocalization.pl-PL.resx</DependentUpon>
</Compile>
<Compile Include="App_GlobalResources\EditorLocalization.pt-BR.designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>EditorLocalization.pt-BR.resx</DependentUpon>
</Compile>
<Compile Include="App_GlobalResources\EditorLocalization.ru-RU.designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>EditorLocalization.ru-RU.resx</DependentUpon>
</Compile>
<Compile Include="App_GlobalResources\EditorLocalization.uk-UA.designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>EditorLocalization.uk-UA.resx</DependentUpon>
</Compile>
<Compile Include="App_GlobalResources\GridLocalization.bg-BG.designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>GridLocalization.bg-BG.resx</DependentUpon>
</Compile>
<Compile Include="App_GlobalResources\GridLocalization.de-DE.designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>GridLocalization.de-DE.resx</DependentUpon>
</Compile>
<Compile Include="App_GlobalResources\GridLocalization.en-US.designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>GridLocalization.en-US.resx</DependentUpon>
</Compile>
<Compile Include="App_GlobalResources\GridLocalization.es-ES.designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>GridLocalization.es-ES.resx</DependentUpon>
</Compile>
<Compile Include="App_GlobalResources\GridLocalization.fr-FR.designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>GridLocalization.fr-FR.resx</DependentUpon>
</Compile>
<Compile Include="App_GlobalResources\GridLocalization.pl-PL.designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>GridLocalization.pl-PL.resx</DependentUpon>
</Compile>
<Compile Include="App_GlobalResources\GridLocalization.pt-BR.designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>GridLocalization.pt-BR.resx</DependentUpon>
</Compile>
<Compile Include="App_GlobalResources\GridLocalization.pt-PT.designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>GridLocalization.pt-PT.resx</DependentUpon>
</Compile>
<Compile Include="App_GlobalResources\GridLocalization.ru-RU.designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>GridLocalization.ru-RU.resx</DependentUpon>
</Compile>
<Compile Include="App_GlobalResources\GridLocalization.uk-UA.designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>GridLocalization.uk-UA.resx</DependentUpon>
</Compile>
<Compile Include="App_GlobalResources\UploadLocalization.bg-BG.designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>UploadLocalization.bg-BG.resx</DependentUpon>
</Compile>
<Compile Include="App_GlobalResources\UploadLocalization.en-US.designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>UploadLocalization.en-US.resx</DependentUpon>
</Compile>
<Compile Include="Controllers\ApiController.cs" />
<Compile Include="Controllers\HistoryController.cs" />
<Compile Include="Controllers\LogController.cs" />
<Compile Include="Controllers\AddSeriesController.cs" />
<Compile Include="Controllers\NotificationController.cs" />
<Compile Include="Controllers\SeriesController.cs" />
<Compile Include="Controllers\SettingsController.cs" />
<Compile Include="Controllers\SharedController.cs" />
<Compile Include="Controllers\TimersController.cs" />
<Compile Include="Controllers\UpcomingController.cs" />
<Compile Include="Global.asax.cs">
<DependentUpon>Global.asax</DependentUpon>
</Compile>
<Compile Include="Helpers\HtmlPrefixScopeExtensions.cs" />
<Compile Include="Helpers\IsCurrentActionHelper.cs" />
<Compile Include="Models\AccountModels.cs" />
<Compile Include="Models\AddExistingManualModel.cs" />
<Compile Include="Models\AddExistingSeriesModel.cs" />
<Compile Include="Models\AddNewSeriesModel.cs" />
<Compile Include="Models\DownloadSettingsModel.cs" />
<Compile Include="Models\EpisodeSortingModel.cs" />
<Compile Include="Models\HistoryModel.cs" />
<Compile Include="Models\IndexerSettingsModel.cs" />
<Compile Include="Models\MappingModel.cs" />
<Compile Include="Models\EpisodeModel.cs" />
<Compile Include="Models\NotificationSettingsModel.cs" />
<Compile Include="Models\QualityModel.cs" />
<Compile Include="Models\SeriesSearchResultModel.cs" />
<Compile Include="Models\SettingsModels.cs" />
<Compile Include="Models\TestModel.cs" />
<Compile Include="Models\UpcomingEpisodeModel.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<Content Include="Content\2011.1.315\Black\editor.png" />
<Content Include="Content\2011.1.315\Black\imagebrowser.png" />
<Content Include="Content\2011.1.315\Black\loading.gif" />
<Content Include="Content\2011.1.315\Black\slider-h-both.gif" />
<Content Include="Content\2011.1.315\Black\slider-h-bottom.gif" />
<Content Include="Content\2011.1.315\Black\slider-h-top.gif" />
<Content Include="Content\2011.1.315\Black\slider-hs-both.gif" />
<Content Include="Content\2011.1.315\Black\slider-hs-bottom.gif" />
<Content Include="Content\2011.1.315\Black\slider-hs-top.gif" />
<Content Include="Content\2011.1.315\Black\slider-v-both.gif" />
<Content Include="Content\2011.1.315\Black\slider-v-left.gif" />
<Content Include="Content\2011.1.315\Black\slider-v-right.gif" />
<Content Include="Content\2011.1.315\Black\slider-vs-both.gif" />
<Content Include="Content\2011.1.315\Black\slider-vs-left.gif" />
<Content Include="Content\2011.1.315\Black\slider-vs-right.gif" />
<Content Include="Content\2011.1.315\Black\sprite-vertical.png" />
<Content Include="Content\2011.1.315\Black\sprite.png" />
<Content Include="Content\2011.1.315\Black\treeview-line.png" />
<Content Include="Content\2011.1.315\Black\treeview-nodes-rtl.png" />
<Content Include="Content\2011.1.315\Black\treeview-nodes.png" />
<Content Include="Content\2011.1.315\Default\editor.png" />
<Content Include="Content\2011.1.315\Default\imagebrowser.png" />
<Content Include="Content\2011.1.315\Default\loading.gif" />
<Content Include="Content\2011.1.315\Default\slider-h-both.gif" />
<Content Include="Content\2011.1.315\Default\slider-h-bottom.gif" />
<Content Include="Content\2011.1.315\Default\slider-h-top.gif" />
<Content Include="Content\2011.1.315\Default\slider-hs-both.gif" />
<Content Include="Content\2011.1.315\Default\slider-hs-bottom.gif" />
<Content Include="Content\2011.1.315\Default\slider-hs-top.gif" />
<Content Include="Content\2011.1.315\Default\slider-v-both.gif" />
<Content Include="Content\2011.1.315\Default\slider-v-left.gif" />
<Content Include="Content\2011.1.315\Default\slider-v-right.gif" />
<Content Include="Content\2011.1.315\Default\slider-vs-both.gif" />
<Content Include="Content\2011.1.315\Default\slider-vs-left.gif" />
<Content Include="Content\2011.1.315\Default\slider-vs-right.gif" />
<Content Include="Content\2011.1.315\Default\sprite-vertical.png" />
<Content Include="Content\2011.1.315\Default\sprite.png" />
<Content Include="Content\2011.1.315\Default\treeview-line.png" />
<Content Include="Content\2011.1.315\Default\treeview-nodes-rtl.png" />
<Content Include="Content\2011.1.315\Default\treeview-nodes.png" />
<Content Include="Content\2011.1.315\Forest\editor.png" />
<Content Include="Content\2011.1.315\Forest\imagebrowser.png" />
<Content Include="Content\2011.1.315\Forest\loading.gif" />
<Content Include="Content\2011.1.315\Forest\slider-h-both.gif" />
<Content Include="Content\2011.1.315\Forest\slider-h-bottom.gif" />
<Content Include="Content\2011.1.315\Forest\slider-h-top.gif" />
<Content Include="Content\2011.1.315\Forest\slider-hs-both.gif" />
<Content Include="Content\2011.1.315\Forest\slider-hs-bottom.gif" />
<Content Include="Content\2011.1.315\Forest\slider-hs-top.gif" />
<Content Include="Content\2011.1.315\Forest\slider-v-both.gif" />
<Content Include="Content\2011.1.315\Forest\slider-v-left.gif" />
<Content Include="Content\2011.1.315\Forest\slider-v-right.gif" />
<Content Include="Content\2011.1.315\Forest\slider-vs-both.gif" />
<Content Include="Content\2011.1.315\Forest\slider-vs-left.gif" />
<Content Include="Content\2011.1.315\Forest\slider-vs-right.gif" />
<Content Include="Content\2011.1.315\Forest\sprite-vertical.png" />
<Content Include="Content\2011.1.315\Forest\sprite.png" />
<Content Include="Content\2011.1.315\Forest\treeview-line.png" />
<Content Include="Content\2011.1.315\Forest\treeview-nodes-rtl.png" />
<Content Include="Content\2011.1.315\Forest\treeview-nodes.png" />
<Content Include="Content\2011.1.315\Hay\editor.png" />
<Content Include="Content\2011.1.315\Hay\imagebrowser.png" />
<Content Include="Content\2011.1.315\Hay\loading.gif" />
<Content Include="Content\2011.1.315\Hay\slider-h-both.gif" />
<Content Include="Content\2011.1.315\Hay\slider-h-bottom.gif" />
<Content Include="Content\2011.1.315\Hay\slider-h-top.gif" />
<Content Include="Content\2011.1.315\Hay\slider-hs-both.gif" />
<Content Include="Content\2011.1.315\Hay\slider-hs-bottom.gif" />
<Content Include="Content\2011.1.315\Hay\slider-hs-top.gif" />
<Content Include="Content\2011.1.315\Hay\slider-v-both.gif" />
<Content Include="Content\2011.1.315\Hay\slider-v-left.gif" />
<Content Include="Content\2011.1.315\Hay\slider-v-right.gif" />
<Content Include="Content\2011.1.315\Hay\slider-vs-both.gif" />
<Content Include="Content\2011.1.315\Hay\slider-vs-left.gif" />
<Content Include="Content\2011.1.315\Hay\slider-vs-right.gif" />
<Content Include="Content\2011.1.315\Hay\sprite-vertical.png" />
<Content Include="Content\2011.1.315\Hay\sprite.png" />
<Content Include="Content\2011.1.315\Hay\treeview-line.png" />
<Content Include="Content\2011.1.315\Hay\treeview-nodes-rtl.png" />
<Content Include="Content\2011.1.315\Hay\treeview-nodes.png" />
<Content Include="Content\2011.1.315\Office2007\editor.png" />
<Content Include="Content\2011.1.315\Office2007\imagebrowser.png" />
<Content Include="Content\2011.1.315\Office2007\loading.gif" />
<Content Include="Content\2011.1.315\Office2007\slider-h-both.gif" />
<Content Include="Content\2011.1.315\Office2007\slider-h-bottom.gif" />
<Content Include="Content\2011.1.315\Office2007\slider-h-top.gif" />
<Content Include="Content\2011.1.315\Office2007\slider-hs-both.gif" />
<Content Include="Content\2011.1.315\Office2007\slider-hs-bottom.gif" />
<Content Include="Content\2011.1.315\Office2007\slider-hs-top.gif" />
<Content Include="Content\2011.1.315\Office2007\slider-v-both.gif" />
<Content Include="Content\2011.1.315\Office2007\slider-v-left.gif" />
<Content Include="Content\2011.1.315\Office2007\slider-v-right.gif" />
<Content Include="Content\2011.1.315\Office2007\slider-vs-both.gif" />
<Content Include="Content\2011.1.315\Office2007\slider-vs-left.gif" />
<Content Include="Content\2011.1.315\Office2007\slider-vs-right.gif" />
<Content Include="Content\2011.1.315\Office2007\sprite-vertical.png" />
<Content Include="Content\2011.1.315\Office2007\sprite.png" />
<Content Include="Content\2011.1.315\Office2007\treeview-line.png" />
<Content Include="Content\2011.1.315\Office2007\treeview-nodes-rtl.png" />
<Content Include="Content\2011.1.315\Office2007\treeview-nodes.png" />
<Content Include="Content\2011.1.315\Office2010Black\editor.png" />
<Content Include="Content\2011.1.315\Office2010Black\imagebrowser.png" />
<Content Include="Content\2011.1.315\Office2010Black\loading.gif" />
<Content Include="Content\2011.1.315\Office2010Black\slider-h-both.gif" />
<Content Include="Content\2011.1.315\Office2010Black\slider-h-bottom.gif" />
<Content Include="Content\2011.1.315\Office2010Black\slider-h-top.gif" />
<Content Include="Content\2011.1.315\Office2010Black\slider-hs-both.gif" />
<Content Include="Content\2011.1.315\Office2010Black\slider-hs-bottom.gif" />
<Content Include="Content\2011.1.315\Office2010Black\slider-hs-top.gif" />
<Content Include="Content\2011.1.315\Office2010Black\slider-v-both.gif" />
<Content Include="Content\2011.1.315\Office2010Black\slider-v-left.gif" />
<Content Include="Content\2011.1.315\Office2010Black\slider-v-right.gif" />
<Content Include="Content\2011.1.315\Office2010Black\slider-vs-both.gif" />
<Content Include="Content\2011.1.315\Office2010Black\slider-vs-left.gif" />
<Content Include="Content\2011.1.315\Office2010Black\slider-vs-right.gif" />
<Content Include="Content\2011.1.315\Office2010Black\sprite-vertical.png" />
<Content Include="Content\2011.1.315\Office2010Black\sprite.png" />
<Content Include="Content\2011.1.315\Office2010Black\treeview-line.png" />
<Content Include="Content\2011.1.315\Office2010Black\treeview-nodes-rtl.png" />
<Content Include="Content\2011.1.315\Office2010Black\treeview-nodes.png" />
<Content Include="Content\2011.1.315\Outlook\editor.png" />
<Content Include="Content\2011.1.315\Outlook\imagebrowser.png" />
<Content Include="Content\2011.1.315\Outlook\loading.gif" />
<Content Include="Content\2011.1.315\Outlook\slider-h-both.gif" />
<Content Include="Content\2011.1.315\Outlook\slider-h-bottom.gif" />
<Content Include="Content\2011.1.315\Outlook\slider-h-top.gif" />
<Content Include="Content\2011.1.315\Outlook\slider-hs-both.gif" />
<Content Include="Content\2011.1.315\Outlook\slider-hs-bottom.gif" />
<Content Include="Content\2011.1.315\Outlook\slider-hs-top.gif" />
<Content Include="Content\2011.1.315\Outlook\slider-v-both.gif" />
<Content Include="Content\2011.1.315\Outlook\slider-v-left.gif" />
<Content Include="Content\2011.1.315\Outlook\slider-v-right.gif" />
<Content Include="Content\2011.1.315\Outlook\slider-vs-both.gif" />
<Content Include="Content\2011.1.315\Outlook\slider-vs-left.gif" />
<Content Include="Content\2011.1.315\Outlook\slider-vs-right.gif" />
<Content Include="Content\2011.1.315\Outlook\sprite-vertical.png" />
<Content Include="Content\2011.1.315\Outlook\sprite.png" />
<Content Include="Content\2011.1.315\Outlook\treeview-line.png" />
<Content Include="Content\2011.1.315\Outlook\treeview-nodes-rtl.png" />
<Content Include="Content\2011.1.315\Outlook\treeview-nodes.png" />
<Content Include="Content\2011.1.315\Simple\editor.png" />
<Content Include="Content\2011.1.315\Simple\imagebrowser.png" />
<Content Include="Content\2011.1.315\Simple\loading.gif" />
<Content Include="Content\2011.1.315\Simple\slider-h-both.gif" />
<Content Include="Content\2011.1.315\Simple\slider-h-bottom.gif" />
<Content Include="Content\2011.1.315\Simple\slider-h-top.gif" />
<Content Include="Content\2011.1.315\Simple\slider-hs-both.gif" />
<Content Include="Content\2011.1.315\Simple\slider-hs-bottom.gif" />
<Content Include="Content\2011.1.315\Simple\slider-hs-top.gif" />
<Content Include="Content\2011.1.315\Simple\slider-v-both.gif" />
<Content Include="Content\2011.1.315\Simple\slider-v-left.gif" />
<Content Include="Content\2011.1.315\Simple\slider-v-right.gif" />
<Content Include="Content\2011.1.315\Simple\slider-vs-both.gif" />
<Content Include="Content\2011.1.315\Simple\slider-vs-left.gif" />
<Content Include="Content\2011.1.315\Simple\slider-vs-right.gif" />
<Content Include="Content\2011.1.315\Simple\sprite-vertical.png" />
<Content Include="Content\2011.1.315\Simple\sprite.png" />
<Content Include="Content\2011.1.315\Simple\treeview-line.png" />
<Content Include="Content\2011.1.315\Simple\treeview-nodes-rtl.png" />
<Content Include="Content\2011.1.315\Simple\treeview-nodes.png" />
<Content Include="Content\2011.1.315\Sitefinity\editor.png" />
<Content Include="Content\2011.1.315\Sitefinity\imagebrowser.png" />
<Content Include="Content\2011.1.315\Sitefinity\loading.gif" />
<Content Include="Content\2011.1.315\Sitefinity\slider-h-both.gif" />
<Content Include="Content\2011.1.315\Sitefinity\slider-h-bottom.gif" />
<Content Include="Content\2011.1.315\Sitefinity\slider-h-top.gif" />
<Content Include="Content\2011.1.315\Sitefinity\slider-hs-both.gif" />
<Content Include="Content\2011.1.315\Sitefinity\slider-hs-bottom.gif" />
<Content Include="Content\2011.1.315\Sitefinity\slider-hs-top.gif" />
<Content Include="Content\2011.1.315\Sitefinity\slider-v-both.gif" />
<Content Include="Content\2011.1.315\Sitefinity\slider-v-left.gif" />
<Content Include="Content\2011.1.315\Sitefinity\slider-v-right.gif" />
<Content Include="Content\2011.1.315\Sitefinity\slider-vs-both.gif" />
<Content Include="Content\2011.1.315\Sitefinity\slider-vs-left.gif" />
<Content Include="Content\2011.1.315\Sitefinity\slider-vs-right.gif" />
<Content Include="Content\2011.1.315\Sitefinity\sprite-vertical.png" />
<Content Include="Content\2011.1.315\Sitefinity\sprite.png" />
<Content Include="Content\2011.1.315\Sitefinity\treeview-line.png" />
<Content Include="Content\2011.1.315\Sitefinity\treeview-nodes-rtl.png" />
<Content Include="Content\2011.1.315\Sitefinity\treeview-nodes.png" />
<Content Include="Content\2011.1.315\Sunset\editor.png" />
<Content Include="Content\2011.1.315\Sunset\imagebrowser.png" />
<Content Include="Content\2011.1.315\Sunset\loading.gif" />
<Content Include="Content\2011.1.315\Sunset\slider-h-both.gif" />
<Content Include="Content\2011.1.315\Sunset\slider-h-bottom.gif" />
<Content Include="Content\2011.1.315\Sunset\slider-h-top.gif" />
<Content Include="Content\2011.1.315\Sunset\slider-hs-both.gif" />
<Content Include="Content\2011.1.315\Sunset\slider-hs-bottom.gif" />
<Content Include="Content\2011.1.315\Sunset\slider-hs-top.gif" />
<Content Include="Content\2011.1.315\Sunset\slider-v-both.gif" />
<Content Include="Content\2011.1.315\Sunset\slider-v-left.gif" />
<Content Include="Content\2011.1.315\Sunset\slider-v-right.gif" />
<Content Include="Content\2011.1.315\Sunset\slider-vs-both.gif" />
<Content Include="Content\2011.1.315\Sunset\slider-vs-left.gif" />
<Content Include="Content\2011.1.315\Sunset\slider-vs-right.gif" />
<Content Include="Content\2011.1.315\Sunset\sprite-vertical.png" />
<Content Include="Content\2011.1.315\Sunset\sprite.png" />
<Content Include="Content\2011.1.315\Sunset\treeview-line.png" />
<Content Include="Content\2011.1.315\Sunset\treeview-nodes-rtl.png" />
<Content Include="Content\2011.1.315\Sunset\treeview-nodes.png" />
<Content Include="Content\2011.1.315\telerik.black.min.css" />
<Content Include="Content\2011.1.315\telerik.common.min.css" />
<Content Include="Content\2011.1.315\telerik.default.min.css" />
<Content Include="Content\2011.1.315\telerik.forest.min.css" />
<Content Include="Content\2011.1.315\telerik.hay.min.css" />
<Content Include="Content\2011.1.315\telerik.office2007.min.css" />
<Content Include="Content\2011.1.315\telerik.office2010black.min.css" />
<Content Include="Content\2011.1.315\telerik.outlook.min.css" />
<Content Include="Content\2011.1.315\telerik.rtl.min.css" />
<Content Include="Content\2011.1.315\telerik.simple.min.css" />
<Content Include="Content\2011.1.315\telerik.sitefinity.min.css" />
<Content Include="Content\2011.1.315\telerik.sunset.min.css" />
<Content Include="Content\2011.1.315\telerik.telerik.min.css" />
<Content Include="Content\2011.1.315\telerik.vista.min.css" />
<Content Include="Content\2011.1.315\telerik.web20.min.css" />
<Content Include="Content\2011.1.315\telerik.webblue.min.css" />
<Content Include="Content\2011.1.315\telerik.windows7.min.css" />
<Content Include="Content\2011.1.315\Telerik\editor.png" />
<Content Include="Content\2011.1.315\Telerik\imagebrowser.png" />
<Content Include="Content\2011.1.315\Telerik\loading.gif" />
<Content Include="Content\2011.1.315\Telerik\slider-h-both.gif" />
<Content Include="Content\2011.1.315\Telerik\slider-h-bottom.gif" />
<Content Include="Content\2011.1.315\Telerik\slider-h-top.gif" />
<Content Include="Content\2011.1.315\Telerik\slider-hs-both.gif" />
<Content Include="Content\2011.1.315\Telerik\slider-hs-bottom.gif" />
<Content Include="Content\2011.1.315\Telerik\slider-hs-top.gif" />
<Content Include="Content\2011.1.315\Telerik\slider-v-both.gif" />
<Content Include="Content\2011.1.315\Telerik\slider-v-left.gif" />
<Content Include="Content\2011.1.315\Telerik\slider-v-right.gif" />
<Content Include="Content\2011.1.315\Telerik\slider-vs-both.gif" />
<Content Include="Content\2011.1.315\Telerik\slider-vs-left.gif" />
<Content Include="Content\2011.1.315\Telerik\slider-vs-right.gif" />
<Content Include="Content\2011.1.315\Telerik\sprite-vertical.png" />
<Content Include="Content\2011.1.315\Telerik\sprite.png" />
<Content Include="Content\2011.1.315\Telerik\treeview-line.png" />
<Content Include="Content\2011.1.315\Telerik\treeview-nodes-rtl.png" />
<Content Include="Content\2011.1.315\Telerik\treeview-nodes.png" />
<Content Include="Content\2011.1.315\Vista\editor.png" />
<Content Include="Content\2011.1.315\Vista\imagebrowser.png" />
<Content Include="Content\2011.1.315\Vista\loading.gif" />
<Content Include="Content\2011.1.315\Vista\slider-h-both.gif" />
<Content Include="Content\2011.1.315\Vista\slider-h-bottom.gif" />
<Content Include="Content\2011.1.315\Vista\slider-h-top.gif" />
<Content Include="Content\2011.1.315\Vista\slider-hs-both.gif" />
<Content Include="Content\2011.1.315\Vista\slider-hs-bottom.gif" />
<Content Include="Content\2011.1.315\Vista\slider-hs-top.gif" />
<Content Include="Content\2011.1.315\Vista\slider-v-both.gif" />
<Content Include="Content\2011.1.315\Vista\slider-v-left.gif" />
<Content Include="Content\2011.1.315\Vista\slider-v-right.gif" />
<Content Include="Content\2011.1.315\Vista\slider-vs-both.gif" />
<Content Include="Content\2011.1.315\Vista\slider-vs-left.gif" />
<Content Include="Content\2011.1.315\Vista\slider-vs-right.gif" />
<Content Include="Content\2011.1.315\Vista\sprite-vertical.png" />
<Content Include="Content\2011.1.315\Vista\sprite.png" />
<Content Include="Content\2011.1.315\Web20\editor.png" />
<Content Include="Content\2011.1.315\Web20\imagebrowser.png" />
<Content Include="Content\2011.1.315\Web20\loading.gif" />
<Content Include="Content\2011.1.315\Web20\slider-h-both.gif" />
<Content Include="Content\2011.1.315\Web20\slider-h-bottom.gif" />
<Content Include="Content\2011.1.315\Web20\slider-h-top.gif" />
<Content Include="Content\2011.1.315\Web20\slider-hs-both.gif" />
<Content Include="Content\2011.1.315\Web20\slider-hs-bottom.gif" />
<Content Include="Content\2011.1.315\Web20\slider-hs-top.gif" />
<Content Include="Content\2011.1.315\Web20\slider-v-both.gif" />
<Content Include="Content\2011.1.315\Web20\slider-v-left.gif" />
<Content Include="Content\2011.1.315\Web20\slider-v-right.gif" />
<Content Include="Content\2011.1.315\Web20\slider-vs-both.gif" />
<Content Include="Content\2011.1.315\Web20\slider-vs-left.gif" />
<Content Include="Content\2011.1.315\Web20\slider-vs-right.gif" />
<Content Include="Content\2011.1.315\Web20\sprite-vertical.png" />
<Content Include="Content\2011.1.315\Web20\sprite.png" />
<Content Include="Content\2011.1.315\Web20\treeview-line.png" />
<Content Include="Content\2011.1.315\Web20\treeview-nodes-rtl.png" />
<Content Include="Content\2011.1.315\Web20\treeview-nodes.png" />
<Content Include="Content\2011.1.315\WebBlue\editor.png" />
<Content Include="Content\2011.1.315\WebBlue\imagebrowser.png" />
<Content Include="Content\2011.1.315\WebBlue\loading.gif" />
<Content Include="Content\2011.1.315\WebBlue\slider-h-both.gif" />
<Content Include="Content\2011.1.315\WebBlue\slider-h-bottom.gif" />
<Content Include="Content\2011.1.315\WebBlue\slider-h-top.gif" />
<Content Include="Content\2011.1.315\WebBlue\slider-hs-both.gif" />
<Content Include="Content\2011.1.315\WebBlue\slider-hs-bottom.gif" />
<Content Include="Content\2011.1.315\WebBlue\slider-hs-top.gif" />
<Content Include="Content\2011.1.315\WebBlue\slider-v-both.gif" />
<Content Include="Content\2011.1.315\WebBlue\slider-v-left.gif" />
<Content Include="Content\2011.1.315\WebBlue\slider-v-right.gif" />
<Content Include="Content\2011.1.315\WebBlue\slider-vs-both.gif" />
<Content Include="Content\2011.1.315\WebBlue\slider-vs-left.gif" />
<Content Include="Content\2011.1.315\WebBlue\slider-vs-right.gif" />
<Content Include="Content\2011.1.315\WebBlue\sprite-vertical.png" />
<Content Include="Content\2011.1.315\WebBlue\sprite.png" />
<Content Include="Content\2011.1.315\WebBlue\treeview-line.png" />
<Content Include="Content\2011.1.315\WebBlue\treeview-nodes-rtl.png" />
<Content Include="Content\2011.1.315\WebBlue\treeview-nodes.png" />
<Content Include="Content\2011.1.315\Windows7\editor.png" />
<Content Include="Content\2011.1.315\Windows7\imagebrowser.png" />
<Content Include="Content\2011.1.315\Windows7\loading.gif" />
<Content Include="Content\2011.1.315\Windows7\slider-h-both.gif" />
<Content Include="Content\2011.1.315\Windows7\slider-h-bottom.gif" />
<Content Include="Content\2011.1.315\Windows7\slider-h-top.gif" />
<Content Include="Content\2011.1.315\Windows7\slider-hs-both.gif" />
<Content Include="Content\2011.1.315\Windows7\slider-hs-bottom.gif" />
<Content Include="Content\2011.1.315\Windows7\slider-hs-top.gif" />
<Content Include="Content\2011.1.315\Windows7\slider-v-both.gif" />
<Content Include="Content\2011.1.315\Windows7\slider-v-left.gif" />
<Content Include="Content\2011.1.315\Windows7\slider-v-right.gif" />
<Content Include="Content\2011.1.315\Windows7\slider-vs-both.gif" />
<Content Include="Content\2011.1.315\Windows7\slider-vs-left.gif" />
<Content Include="Content\2011.1.315\Windows7\slider-vs-right.gif" />
<Content Include="Content\2011.1.315\Windows7\sprite-vertical.png" />
<Content Include="Content\2011.1.315\Windows7\sprite.png" />
<Content Include="Content\ajax-loader.gif" />
<Content Include="Content\ie.css" />
<Content Include="Content\Images\arrow.png" />
<Content Include="Content\Images\img01.jpg" />
<Content Include="Content\Images\img02.jpg" />
<Content Include="Content\Images\img03.jpg" />
<Content Include="Content\Images\img07.jpg" />
<Content Include="Content\Images\Plus.png" />
<Content Include="Content\Images\spin.gif" />
<Content Include="Content\Images\ui-bg_diagonals-small_0_aaaaaa_40x40.png" />
<Content Include="Content\Images\ui-bg_diagonals-thick_15_444444_40x40.png" />
<Content Include="Content\Images\ui-bg_glass_100_f0f0f0_1x400.png" />
<Content Include="Content\Images\ui-bg_glass_50_99c2ff_1x400.png" />
<Content Include="Content\Images\ui-bg_glass_55_fbf5d0_1x400.png" />
<Content Include="Content\Images\ui-bg_glass_80_e6e6e6_1x400.png" />
<Content Include="Content\Images\ui-bg_glass_95_fef1ec_1x400.png" />
<Content Include="Content\Images\ui-bg_highlight-hard_100_f9f9f9_1x100.png" />
<Content Include="Content\Images\ui-bg_highlight-soft_100_e7eef3_1x100.png" />
<Content Include="Content\Images\ui-icons_222222_256x240.png" />
<Content Include="Content\Images\ui-icons_2694e8_256x240.png" />
<Content Include="Content\Images\ui-icons_2e83ff_256x240.png" />
<Content Include="Content\Images\ui-icons_72a7cf_256x240.png" />
<Content Include="Content\Images\ui-icons_888888_256x240.png" />
<Content Include="Content\Images\ui-icons_cd0a0a_256x240.png" />
<Content Include="Content\Images\ui-icons_ffffff_256x240.png" />
<Content Include="Content\Images\X.png" />
<Content Include="Content\jquery-simpledropdown.css" />
<Content Include="Content\jquery-ui-1.8.8.custom.css" />
<Content Include="Content\jquery-ui.css" />
<Content Include="Content\jquery-ui.custom.css" />
<Content Include="Content\jquery.jgrowl.css" />
<Content Include="Content\notibar.css" />
<Content Include="Content\style.css" />
<Content Include="Content\XbmcNotification.png" />
<Content Include="Global.asax" />
<Content Include="Libraries\Ninject.Web.Mvc.dll" />
<Content Include="Libraries\Ninject.Web.Mvc.xml" />
<Content Include="Scripts\2011.1.315\jquery-1.5.1.min.js" />
<Content Include="Scripts\2011.1.315\jquery.validate.min.js" />
<Content Include="Scripts\2011.1.315\telerik.autocomplete.min.js" />
<Content Include="Scripts\2011.1.315\telerik.calendar.min.js" />
<Content Include="Scripts\2011.1.315\telerik.combobox.min.js" />
<Content Include="Scripts\2011.1.315\telerik.common.min.js" />
<Content Include="Scripts\2011.1.315\telerik.datepicker.min.js" />
<Content Include="Scripts\2011.1.315\telerik.datetimepicker.min.js" />
<Content Include="Scripts\2011.1.315\telerik.draganddrop.min.js" />
<Content Include="Scripts\2011.1.315\telerik.editor.min.js" />
<Content Include="Scripts\2011.1.315\telerik.grid.editing.min.js" />
<Content Include="Scripts\2011.1.315\telerik.grid.filtering.min.js" />
<Content Include="Scripts\2011.1.315\telerik.grid.grouping.min.js" />
<Content Include="Scripts\2011.1.315\telerik.grid.min.js" />
<Content Include="Scripts\2011.1.315\telerik.grid.reordering.min.js" />
<Content Include="Scripts\2011.1.315\telerik.grid.resizing.min.js" />
<Content Include="Scripts\2011.1.315\telerik.imagebrowser.min.js" />
<Content Include="Scripts\2011.1.315\telerik.list.min.js" />
<Content Include="Scripts\2011.1.315\telerik.menu.min.js" />
<Content Include="Scripts\2011.1.315\telerik.panelbar.min.js" />
<Content Include="Scripts\2011.1.315\telerik.slider.min.js" />
<Content Include="Scripts\2011.1.315\telerik.splitter.min.js" />
<Content Include="Scripts\2011.1.315\telerik.tabstrip.min.js" />
<Content Include="Scripts\2011.1.315\telerik.textbox.min.js" />
<Content Include="Scripts\2011.1.315\telerik.timepicker.min.js" />
<Content Include="Scripts\2011.1.315\telerik.treeview.min.js" />
<Content Include="Scripts\2011.1.315\telerik.upload.min.js" />
<Content Include="Scripts\2011.1.315\telerik.window.min.js" />
<Content Include="Scripts\jquery-1.5.2-vsdoc.js" />
<Content Include="Scripts\jquery-1.5.2.js" />
<Content Include="Scripts\jquery-1.5.2.min.js" />
<Content Include="Scripts\jquery-ui-1.8.8.min.js" />
<Content Include="Scripts\jquery-ui-1.8.5.custom.min.js" />
<Content Include="Scripts\jquery.form.js" />
<Content Include="Scripts\jquery.jgrowl.js" />
<Content Include="Scripts\jquery-tgc-countdown-1.0.js" />
<Content Include="Scripts\jquery.simpledropdown.js" />
<Content Include="Scripts\Notification.js" />
<Content Include="Views\AddSeries\AddExisting.cshtml" />
<Content Include="Views\AddSeries\AddNew.cshtml" />
<None Include="Views\AddSeries\AddSeriesItem.cshtml" />
<<<<<<< HEAD
<Content Include="Views\History\Index.aspx" />
<Content Include="Views\Log\Index.aspx" />
<Content Include="Views\AddSeries\AddExisting.aspx" />
<Content Include="Views\AddSeries\AddNew.aspx" />
<Content Include="Views\Series\Details.aspx" />
<Content Include="Views\Series\Edit.aspx" />
<Content Include="Views\Series\index.aspx" />
<Content Include="Views\Series\SeriesSearchResults.ascx" />
<Content Include="Views\Series\SubMenu.ascx" />
<Content Include="Views\Upcoming\Index.aspx" />
=======
>>>>>>> markus101
<Content Include="Web.config">
<SubType>Designer</SubType>
</Content>
<Content Include="Web.Debug.config">
<DependentUpon>Web.config</DependentUpon>
</Content>
<Content Include="Web.Release.config">
<DependentUpon>Web.config</DependentUpon>
</Content>
<Content Include="Scripts\jquery.validate.js" />
<Content Include="Scripts\jquery.validate-vsdoc.js" />
<Content Include="Scripts\MicrosoftAjax.js" />
<Content Include="Scripts\MicrosoftAjax.debug.js" />
<Content Include="Scripts\MicrosoftMvcAjax.js" />
<Content Include="Scripts\MicrosoftMvcAjax.debug.js" />
<Content Include="Scripts\MicrosoftMvcValidation.js" />
<Content Include="Scripts\MicrosoftMvcValidation.debug.js" />
<Content Include="Scripts\jquery-ui.js" />
<Content Include="Scripts\jquery-ui.min.js" />
<Content Include="Scripts\jquery.validate.min.js" />
<Content Include="Scripts\jquery.unobtrusive-ajax.js" />
<Content Include="Scripts\jquery.unobtrusive-ajax.min.js" />
<Content Include="Scripts\jquery.validate.unobtrusive.js" />
<Content Include="Scripts\jquery.validate.unobtrusive.min.js" />
<Content Include="Views\Web.config" />
<Content Include="Views\Settings\Indexers.cshtml" />
<Content Include="Views\Timers\index.cshtml" />
<Content Include="Views\Settings\Downloads.cshtml" />
<Content Include="Views\Settings\EpisodeSorting.cshtml" />
<Content Include="Views\Settings\General.cshtml" />
<Content Include="Views\Settings\Notifications.cshtml" />
<Content Include="Views\Settings\Quality.cshtml" />
<Content Include="Views\Settings\RootDir.cshtml" />
<Content Include="Views\Settings\SubMenu.cshtml" />
<Content Include="Views\Shared\SiteLayout.cshtml" />
<Content Include="Views\Shared\Footer.cshtml" />
<Content Include="Views\Settings\Index.cshtml" />
<Content Include="Views\_ViewStart.cshtml" />
<Content Include="Views\History\Index.cshtml" />
<Content Include="Views\Log\Index.cshtml" />
<Content Include="Views\Upcoming\Index.cshtml" />
<Content Include="Views\Series\Details.cshtml" />
<Content Include="Views\Series\Edit.cshtml" />
<Content Include="Views\Series\Index.cshtml" />
<Content Include="Views\Series\SubMenu.cshtml" />
<Content Include="Views\Series\SeriesSearchResults.cshtml" />
<Content Include="Views\Shared\Error.cshtml" />
<Content Include="Views\Settings\UserProfileSection.cshtml" />
</ItemGroup>
<ItemGroup>
<Folder Include="App_Data\" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\NzbDrone.Core\NzbDrone.Core.csproj">
<Project>{FF5EE3B6-913B-47CE-9CEB-11C51B4E1205}</Project>
<Name>NzbDrone.Core</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Content Include="log.config">
<SubType>Designer</SubType>
</Content>
</ItemGroup>
<ItemGroup>
<Content Include="packages.config" />
</ItemGroup>
<ItemGroup>
<Content Include="App_GlobalResources\UploadLocalization.en-US.resx">
<Generator>GlobalResourceProxyGenerator</Generator>
<LastGenOutput>UploadLocalization.en-US.designer.cs</LastGenOutput>
</Content>
</ItemGroup>
<ItemGroup>
<Content Include="App_GlobalResources\UploadLocalization.bg-BG.resx">
<Generator>GlobalResourceProxyGenerator</Generator>
<LastGenOutput>UploadLocalization.bg-BG.designer.cs</LastGenOutput>
</Content>
</ItemGroup>
<ItemGroup>
<Content Include="App_GlobalResources\GridLocalization.uk-UA.resx">
<Generator>GlobalResourceProxyGenerator</Generator>
<LastGenOutput>GridLocalization.uk-UA.designer.cs</LastGenOutput>
</Content>
</ItemGroup>
<ItemGroup>
<Content Include="App_GlobalResources\GridLocalization.ru-RU.resx">
<Generator>GlobalResourceProxyGenerator</Generator>
<LastGenOutput>GridLocalization.ru-RU.designer.cs</LastGenOutput>
</Content>
</ItemGroup>
<ItemGroup>
<Content Include="App_GlobalResources\GridLocalization.pt-PT.resx">
<Generator>GlobalResourceProxyGenerator</Generator>
<LastGenOutput>GridLocalization.pt-PT.designer.cs</LastGenOutput>
</Content>
</ItemGroup>
<ItemGroup>
<Content Include="App_GlobalResources\GridLocalization.pt-BR.resx">
<Generator>GlobalResourceProxyGenerator</Generator>
<LastGenOutput>GridLocalization.pt-BR.designer.cs</LastGenOutput>
</Content>
</ItemGroup>
<ItemGroup>
<Content Include="App_GlobalResources\GridLocalization.pl-PL.resx">
<Generator>GlobalResourceProxyGenerator</Generator>
<LastGenOutput>GridLocalization.pl-PL.designer.cs</LastGenOutput>
</Content>
</ItemGroup>
<ItemGroup>
<Content Include="App_GlobalResources\GridLocalization.fr-FR.resx">
<Generator>GlobalResourceProxyGenerator</Generator>
<LastGenOutput>GridLocalization.fr-FR.designer.cs</LastGenOutput>
</Content>
</ItemGroup>
<ItemGroup>
<Content Include="App_GlobalResources\GridLocalization.es-ES.resx">
<Generator>GlobalResourceProxyGenerator</Generator>
<LastGenOutput>GridLocalization.es-ES.designer.cs</LastGenOutput>
</Content>
</ItemGroup>
<ItemGroup>
<Content Include="App_GlobalResources\GridLocalization.en-US.resx">
<Generator>GlobalResourceProxyGenerator</Generator>
<LastGenOutput>GridLocalization.en-US.designer.cs</LastGenOutput>
</Content>
</ItemGroup>
<ItemGroup>
<Content Include="App_GlobalResources\GridLocalization.de-DE.resx">
<Generator>GlobalResourceProxyGenerator</Generator>
<LastGenOutput>GridLocalization.de-DE.designer.cs</LastGenOutput>
</Content>
</ItemGroup>
<ItemGroup>
<Content Include="App_GlobalResources\GridLocalization.bg-BG.resx">
<Generator>GlobalResourceProxyGenerator</Generator>
<LastGenOutput>GridLocalization.bg-BG.designer.cs</LastGenOutput>
</Content>
</ItemGroup>
<ItemGroup>
<Content Include="App_GlobalResources\EditorLocalization.uk-UA.resx">
<Generator>GlobalResourceProxyGenerator</Generator>
<LastGenOutput>EditorLocalization.uk-UA.designer.cs</LastGenOutput>
</Content>
</ItemGroup>
<ItemGroup>
<Content Include="App_GlobalResources\EditorLocalization.ru-RU.resx">
<Generator>GlobalResourceProxyGenerator</Generator>
<LastGenOutput>EditorLocalization.ru-RU.designer.cs</LastGenOutput>
</Content>
</ItemGroup>
<ItemGroup>
<Content Include="App_GlobalResources\EditorLocalization.pt-BR.resx">
<Generator>GlobalResourceProxyGenerator</Generator>
<LastGenOutput>EditorLocalization.pt-BR.designer.cs</LastGenOutput>
</Content>
</ItemGroup>
<ItemGroup>
<Content Include="App_GlobalResources\EditorLocalization.pl-PL.resx">
<Generator>GlobalResourceProxyGenerator</Generator>
<LastGenOutput>EditorLocalization.pl-PL.designer.cs</LastGenOutput>
</Content>
</ItemGroup>
<ItemGroup>
<Content Include="App_GlobalResources\EditorLocalization.fr-FR.resx">
<Generator>GlobalResourceProxyGenerator</Generator>
<LastGenOutput>EditorLocalization.fr-FR.designer.cs</LastGenOutput>
</Content>
</ItemGroup>
<ItemGroup>
<Content Include="App_GlobalResources\EditorLocalization.en-US.resx">
<Generator>GlobalResourceProxyGenerator</Generator>
<LastGenOutput>EditorLocalization.en-US.designer.cs</LastGenOutput>
</Content>
</ItemGroup>
<ItemGroup>
<Content Include="App_GlobalResources\EditorLocalization.de-DE.resx">
<Generator>GlobalResourceProxyGenerator</Generator>
<LastGenOutput>EditorLocalization.de-DE.designer.cs</LastGenOutput>
</Content>
</ItemGroup>
<ItemGroup>
<Content Include="App_GlobalResources\EditorLocalization.bg-BG.resx">
<Generator>GlobalResourceProxyGenerator</Generator>
<LastGenOutput>EditorLocalization.bg-BG.designer.cs</LastGenOutput>
</Content>
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target> -->
<Target Name="AfterBuild" Condition="'$(MvcBuildViews)'=='true'">
<AspNetCompiler VirtualPath="temp" PhysicalPath="$(ProjectDir)" />
</Target>
<ProjectExtensions>
<VisualStudio>
<FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
<WebProjectProperties>
<SaveServerSettingsInUserFile>True</SaveServerSettingsInUserFile>
</WebProjectProperties>
</FlavorProperties>
</VisualStudio>
</ProjectExtensions>
</Project>

@ -1,44 +0,0 @@
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<String>>" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
Add Existing Series
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<%
if (Model.Count() == 0)
Html.DisplayText("No Series to Add");
%>
<%:Html.DropDownList("masterDropbox", (SelectList) ViewData["qualities"],
new {style = "width: 100px;", id = "masterDropboxId"})%>
<%:
@Html.Telerik().DropDownList().Name("tester").BindTo((SelectList) ViewData["qualities"]).HtmlAttributes(
new {style = "width: 100px", @class = "qualityDropbox"})%>
<%
foreach (var path in Model)
{
Html.RenderAction("RenderPartial", "AddSeries", new {path});
}
%>
<script type="text/javascript">
$("#masterDropboxId").change(function () {
var selectedQuality = $('#masterDropboxId').get(0).selectedIndex;
//$(".qualityDropbox").data("tComboBox").value(selectedQuality);
//$(".qualityDropbox").data("tDropDownList").val(selectedQuality);
var comboBox = $(".qualityDropbox").data("tDropDownList");
comboBox.select(selectedQuality);
});
</script>
</asp:Content>

@ -0,0 +1,35 @@
@model IEnumerable<String>
@section TitleContent{
Add Existing Series
}
@section MainContent{
@if (Model.Count() == 0)
{
@Html.DisplayText("No Series to Add");
}
@Html.DropDownList("masterDropbox", (SelectList) ViewData["qualities"],
new {style = "width: 100px;", id = "masterDropboxId"})
@Html.Telerik().DropDownList().Name("tester").BindTo((SelectList) ViewData["qualities"]).HtmlAttributes(
new {style = "width: 100px", @class = "qualityDropbox"})
@foreach (var path in Model)
{
Html.RenderAction("RenderPartial", "AddSeries", new {path});
}
<script type="text/javascript">
$("#masterDropboxId").change(function () {
var selectedQuality = $('#masterDropboxId').get(0).selectedIndex;
//$(".qualityDropbox").data("tComboBox").value(selectedQuality);
//$(".qualityDropbox").data("tDropDownList").val(selectedQuality);
var comboBox = $(".qualityDropbox").data("tDropDownList");
comboBox.select(selectedQuality);
});
</script>
}

@ -1,48 +1,50 @@
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<NzbDrone.Web.Models.AddNewSeriesModel>" %> @model NzbDrone.Web.Models.AddNewSeriesModel
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
@section TitleContent{
Add New Series Add New Series
<script type="text/javascript"> <script type="text/javascript">
jQuery(document).ready(function () { jQuery(document).ready(function () {
$('#searchButton').attr('disabled', ''); $('#searchButton').attr('disabled', '');
}); });
</script> </script>
</asp:Content> }
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
@section MainContent{
<div style="width: 60%"> <div style="width: 60%">
<div style="display: inline"> <div style="display: inline">
<%=Html.Label("Enter a Series Name")%> @Html.Label("Enter a Series Name")
<%=Html.TextBox("new_series_name", String.Empty, new {id = "new_series_id"})%> @Html.TextBox("new_series_name", String.Empty, new {id = "new_series_id"})
<button class="t.button" id="searchButton" disabled="disabled" onclick="searchSeries ()"> <button class="t.button" id="searchButton" disabled="disabled" onclick="searchSeries ()">
Search</button> Search</button>
</div> </div>
<div style="display: inline; float: right;"> <div style="display: inline; float: right;">
<%=Html.LabelFor(m => m.QualityProfileId)%> @Html.LabelFor(m => m.QualityProfileId)
<%:Html.DropDownListFor(m => m.QualityProfileId, Model.QualitySelectList)%> @Html.DropDownListFor(m => m.QualityProfileId, Model.QualitySelectList)
</div> </div>
</div> </div>
<div id="result">
</div> <div id="result"></div>
<div id="RootDirectories" class="rootDirectories" style="display: none"> <div id="RootDirectories" class="rootDirectories" style="display: none">
<fieldset> <fieldset>
<legend>Root TV Folders</legend> <legend>Root TV Folders</legend>
<% @{int d = 0;}
int d = 0;%>
<% @foreach (var dir in Model.RootDirectories)
foreach (var dir in Model.RootDirectories) {
{%> @Html.RadioButton("selectedRootDir", dir.Path, d == 0, new {@class = "dirList examplePart", id = "dirRadio_" + d});
<%:Html.RadioButton("selectedRootDir", dir.Path, d == 0, @Html.Label(dir.Path)
new {@class = "dirList examplePart", id = "dirRadio_" + d})%> }
<%:Html.Label(dir.Path)%>
<%
}%>
</fieldset> </fieldset>
<div id="example"> <div id="example">
</div> </div>
<button class="t.button" onclick="addSeries ()"> <button class="t.button" onclick="addSeries ()">
Add New Series</button> Add New Series</button>
</div> </div>
<div id="addResult">
</div> <div id="addResult"></div>
<script type="text/javascript" language="javascript"> <script type="text/javascript" language="javascript">
$('#new_series_id').bind('keydown', function (e) { $('#new_series_id').bind('keydown', function (e) {
@ -55,30 +57,21 @@
var seriesSearch = $('#new_series_id'); var seriesSearch = $('#new_series_id');
$("#result").text("Searching..."); $("#result").text("Searching...");
$("#result").load('@Url.Action("SearchForSeries", "Series")', {
$("#result").load('<%=Url.Action("SearchForSeries", "Series")%>', {
seriesName: seriesSearch.val() seriesName: seriesSearch.val()
}); });
document.getElementById('RootDirectories').style.display = 'inline'; document.getElementById('RootDirectories').style.display = 'inline';
} }
function addSeries() {
//Get the selected tvdbid + selected root folder
//jquery bit below doesn't want to work...
function addSeries() {
var checkedSeries = $("input[name='selectedSeries']:checked").val(); var checkedSeries = $("input[name='selectedSeries']:checked").val();
//var checkedSeries = $('input.searchRadio:checked').val();
//var checkedSeries = $('input:radio[name=selectedSeries]:checked').val();
//var checkedSeries = $('input:radio[class=searchRadio]:checked').val();
var checkedDir = $("input[name='selectedRootDir']:checked").val(); var checkedDir = $("input[name='selectedRootDir']:checked").val();
var id = "#" + checkedSeries + "_text"; var id = "#" + checkedSeries + "_text";
var seriesName = $(id).val(); var seriesName = $(id).val();
var qualityProfileId = $("#QualityProfileId").val(); var qualityProfileId = $("#QualityProfileId").val();
$("#addResult").load('<%=Url.Action("AddSeries", "Series")%>', { $("#addResult").load('@Url.Action("AddSeries", "AddSeries")', {
dir: checkedDir, dir: checkedDir,
seriesId: checkedSeries, seriesId: checkedSeries,
seriesName: seriesName, seriesName: seriesName,
@ -102,6 +95,4 @@
}); });
</script> </script>
<div id="tester"> }
</div>
</asp:Content>

@ -1,7 +1,7 @@
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<List<NzbDrone.Web.Models.HistoryModel>>" %> @model List<NzbDrone.Web.Models.HistoryModel>
<%@ Import Namespace="NzbDrone.Web.Models" %> @using NzbDrone.Web.Models
<asp:Content ID="Content1" ContentPlaceHolderID="Scripts" runat="server"> @section Scripts{
<script type="text/javascript"> <script type="text/javascript">
function onRowDataBound(e) { function onRowDataBound(e) {
@ -20,24 +20,22 @@
//e.row.style.color = 'blue'; //e.row.style.color = 'blue';
} }
</script> </script>
</asp:Content> }
<asp:Content ID="Content2" ContentPlaceHolderID="TitleContent" runat="server">
@section TitleContent{
History History
</asp:Content> }
<asp:Content ID="Menu" ContentPlaceHolderID="ActionMenu" runat="server">
<% @section ActionMenu{
Html.Telerik().Menu().Name("historyMenu").Items(items => @{Html.Telerik().Menu().Name("historyMenu").Items(items =>
{ {
items.Add().Text("Trim History").Action("Trim", items.Add().Text("Trim History").Action("Trim", "History");
"History"); items.Add().Text("Purge History").Action("Purge", "History");
items.Add().Text("Purge History").Action("Purge", }).Render();}
"History"); }
}).Render();
%> @section MainContent{
</asp:Content> @{Html.Telerik().Grid<HistoryModel>().Name("history")
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
<%
Html.Telerik().Grid<HistoryModel>().Name("history")
.Columns(columns => .Columns(columns =>
{ {
columns.Bound(c => c.SeriesTitle).Title("Series Name").Width(120); columns.Bound(c => c.SeriesTitle).Title("Series Name").Width(120);
@ -61,6 +59,5 @@
c.PageSize(50).Position(GridPagerPosition.Bottom).Style(GridPagerStyles.NextPrevious)) c.PageSize(50).Position(GridPagerPosition.Bottom).Style(GridPagerStyles.NextPrevious))
//.Filterable() //.Filterable()
//.ClientEvents(c => c.OnRowDataBound("onRowDataBound")) //.ClientEvents(c => c.OnRowDataBound("onRowDataBound"))
.Render(); .Render();}
%> }
</asp:Content>

@ -1,6 +1,5 @@
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<NzbDrone.Core.Instrumentation.Log>>" %> @model IEnumerable<NzbDrone.Core.Instrumentation.Log>
@section Scripts{
<asp:Content ContentPlaceHolderID="Scripts" runat="server">
<script type="text/javascript"> <script type="text/javascript">
function onRowDataBound(e) { function onRowDataBound(e) {
@ -19,19 +18,17 @@
//e.row.style.color = 'blue'; //e.row.style.color = 'blue';
} }
</script> </script>
</asp:Content> }
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server"> @section TitleContent{
Logs Logs
</asp:Content> }
<asp:Content ID="Menu" ContentPlaceHolderID="ActionMenu" runat="server"> @section ActionMenu{
<% @{Html.Telerik().Menu().Name("logMenu").Items(items => items.Add().Text("Clear Logs").Action("Clear", "Log"))
Html.Telerik().Menu().Name("logMenu").Items(items => items.Add().Text("Clear Logs").Action("Clear", "Log")). .Render();}
Render(); }
%> @section MainContent{
</asp:Content> @{Html.Telerik().Grid(Model).Name("logsGrid")
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server"> .TableHtmlAttributes(new { @class = "Grid" })
<%
Html.Telerik().Grid(Model).Name("logs")
.Columns(columns => .Columns(columns =>
{ {
columns.Bound(c => c.Time).Title("Time").Width(190); columns.Bound(c => c.Time).Title("Time").Width(190);
@ -40,7 +37,8 @@
}) })
.DetailView(detailView => detailView.ClientTemplate( .DetailView(detailView => detailView.ClientTemplate(
"<div><#= Logger #></div>" + "<div><#= Logger #></div>" +
"<div class='stackframe'><#= ExceptionString #></div>" "<div><#= ExceptionType #></div>" +
"<div class='stackframe'><#= Exception #></div>"
)).DataBinding(data => data.Ajax().Select("_AjaxBinding", "Log")) )).DataBinding(data => data.Ajax().Select("_AjaxBinding", "Log"))
.Sortable(rows => rows.OrderBy(epSort => epSort.Add(c => c.Time).Descending()).Enabled(true)) .Sortable(rows => rows.OrderBy(epSort => epSort.Add(c => c.Time).Descending()).Enabled(true))
.Pageable( .Pageable(
@ -48,6 +46,5 @@
c.PageSize(50).Position(GridPagerPosition.Bottom).Style(GridPagerStyles.NextPrevious)) c.PageSize(50).Position(GridPagerPosition.Bottom).Style(GridPagerStyles.NextPrevious))
.Filterable() .Filterable()
.ClientEvents(c => c.OnRowDataBound("onRowDataBound")) .ClientEvents(c => c.OnRowDataBound("onRowDataBound"))
.Render(); .Render();}
%> }
</asp:Content>

@ -1,12 +1,14 @@
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<NzbDrone.Core.Repository.Series>" %> @model NzbDrone.Core.Repository.Series
<%@ Import Namespace="NzbDrone.Core.Repository" %> @using NzbDrone.Core.Repository
<%@ Import Namespace="NzbDrone.Web.Models" %> @using NzbDrone.Web.Models
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
<%:Model.Title%> @section TitleContent{
</asp:Content> @Model.Title
<asp:Content ID="Menu" ContentPlaceHolderID="ActionMenu" runat="server"> }
<%
Html.Telerik().Menu().Name("SeriesMenu").Items(items => @section ActionMenu{
@{Html.Telerik().Menu().Name("SeriesMenu").Items(items =>
{ {
items.Add().Text("Edit").Action("Edit", "Series", items.Add().Text("Edit").Action("Edit", "Series",
new new
@ -31,49 +33,47 @@
Model. Model.
SeriesId SeriesId
}); });
}).Render(); }).Render();}
%> }
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server"> @section MainContent{
<fieldset> <fieldset>
<div class="display-label"> <div class="display-label">
ID</div> ID</div>
<div class="display-field"> <div class="display-field">
<%:Model.SeriesId%></div> @Model.SeriesId</div>
<div class="display-label"> <div class="display-label">
Overview</div> Overview</div>
<div class="display-field"> <div class="display-field">
<%:Model.Overview%></div> @Model.Overview</div>
<div class="display-label"> <div class="display-label">
Status</div> Status</div>
<div class="display-field"> <div class="display-field">
<%:Model.Status%></div> @Model.Status</div>
<div class="display-label"> <div class="display-label">
AirTimes</div> AirTimes</div>
<div class="display-field"> <div class="display-field">
<%:Model.AirTimes%></div> @Model.AirTimes</div>
<div class="display-label"> <div class="display-label">
Language</div> Language</div>
<div class="display-field"> <div class="display-field">
<%:Model.Language.ToUpper()%></div> @Model.Language.ToUpper()</div>
<div class="display-label"> <div class="display-label">
Location</div> Location</div>
<div class="display-field"> <div class="display-field">
<%:Model.Path%></div> @Model.Path</div>
</fieldset> </fieldset>
<% @*Todo: This breaks when using SQLServer... thoughts?*@
//Todo: This breaks when using SQLServer... thoughts?
//Normal Seasons @foreach (var season in Model.Seasons.Where(s => s.SeasonNumber > 0).Reverse())
foreach (var season in Model.Seasons.Where(s => s.SeasonNumber > 0).Reverse())
{ {
%>
<br /> <br />
<h3> <h3>Season @season.SeasonNumber</h3>
Season
<%:season.SeasonNumber%></h3>
<%
Season season1 = season; Season season1 = season;
Html.Telerik().Grid<EpisodeModel>().Name("seasons_" + season.SeasonNumber) Html.Telerik().Grid<EpisodeModel>().Name("seasons_" + season.SeasonNumber)
.TableHtmlAttributes(new { @class = "Grid" })
.Columns(columns => .Columns(columns =>
{ {
columns.Bound(o => o.EpisodeId) columns.Bound(o => o.EpisodeId)
@ -107,17 +107,16 @@
} }
//Specials //Specials
var specialSeasons = Model.Seasons.Where(s => s.SeasonNumber == 0).FirstOrDefault(); @{var specialSeasons = Model.Seasons.Where(s => s.SeasonNumber == 0).FirstOrDefault();}
if (specialSeasons != null) @if (specialSeasons != null)
{ {
%>
<br /> <br />
<h3> <h3>
Specials</h3> Specials</h3>
<%
Html.Telerik().Grid(specialSeasons.Episodes).Name("seasons_specials") Html.Telerik().Grid(specialSeasons.Episodes).Name("seasons_specials")
.TableHtmlAttributes(new { @class = "Grid" })
.Columns(columns => .Columns(columns =>
{ {
columns.Bound(c => c.EpisodeNumber).Width(0).Title("Episode"); columns.Bound(c => c.EpisodeNumber).Width(0).Title("Episode");
@ -129,14 +128,13 @@
.Footer(false) .Footer(false)
.Render(); .Render();
} }
%>
</asp:Content>
<asp:Content ContentPlaceHolderID="Scripts" runat="server">
<script type="text/javascript">
}
@section Scripts{
<script type="text/javascript">
function episodeDetailExpanded(e) { function episodeDetailExpanded(e) {
$console.log("OnDetailViewExpand :: " + e.masterRow.cells[1].innerHTML); $console.log("OnDetailViewExpand :: " + e.masterRow.cells[1].innerHTML);
} }
</script> </script>
</asp:Content> }

@ -1,115 +0,0 @@
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<NzbDrone.Core.Repository.Series>" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
Edit
<script type="text/javascript">
$(document).ready(function () {
var options = {
target: '#result',
beforeSubmit: showRequest,
success: showResponse,
type: 'post',
resetForm: false
};
$('#form').ajaxForm(options);
$('#save_button').attr('disabled', '');
});
function showRequest(formData, jqForm, options) {
$("#result").empty().html('Saving Series...');
$("#form :input").attr("disabled", true);
}
function showResponse(responseText, statusText, xhr, $form) {
$("#result").empty().html(responseText);
$("#form :input").attr("disabled", false);
}
</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<h2><%:Html.DisplayTextFor(model => model.Title)%></h2>
<%
Html.EnableClientValidation();%>
<%
using (Html.BeginForm("Edit", "Series", FormMethod.Post, new {id = "form", name = "form"}))
{%>
<fieldset>
<legend>Edit</legend>
<div class="editor-label">
<%:Html.LabelFor(model => model.Path)%>
</div>
<div class="editor-field">
<%:Html.TextBoxFor(model => model.Path)%>
<%:Html.ValidationMessageFor(model => model.Path)%>
</div>
<div class="editor-label">
<%:Html.LabelFor(model => model.Monitored)%>
</div>
<div class="editor-field">
<%:Html.CheckBoxFor(model => model.Monitored)%>
<%:Html.ValidationMessageFor(model => model.Monitored)%>
</div>
<div class="editor-label">
<%:Html.LabelFor(model => model.SeasonFolder)%>
</div>
<div class="editor-field">
<%:Html.CheckBoxFor(model => model.SeasonFolder)%>
<%:Html.ValidationMessageFor(model => model.SeasonFolder)%>
</div>
<div class="editor-label">
<%:Html.LabelFor(model => model.QualityProfileId)%>
</div>
<div class="editor-field">
<%:Html.DropDownListFor(model => model.QualityProfileId, (SelectList) ViewData["SelectList"])%>
<%:Html.ValidationMessageFor(model => model.QualityProfileId)%>
</div>
<div class="hidden" style="display:none;">
<%:Html.TextBoxFor(model => model.SeriesId)%>
<%:Html.TextBoxFor(model => model.Title)%>
<%:Html.TextBoxFor(model => model.CleanTitle)%>
<%:Html.TextBoxFor(model => model.Status)%>
<%:Html.TextBoxFor(model => model.Overview)%>
<%:Html.TextBoxFor(model => model.AirsDayOfWeek)%>
<%:Html.TextBoxFor(model => model.AirTimes)%>
<%:Html.TextBoxFor(model => model.Language)%>
</div>
<p>
<input type="submit" id="save_button" value="Save" disabled="disabled" />
</p>
</fieldset>
<%
}%>
<div>
<%:Html.ActionLink("Back to Show", "Details", new {seriesId = Model.SeriesId})%> |
<%:Html.ActionLink("Back to List", "Index")%>
<%:Html.ActionLink("Delete Series", "Delete", new {seriesId = Model.SeriesId})%>
</div>
<div id="result"></div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="headerContent" runat="server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="ActionMenu" runat="server">
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="Scripts" runat="server">
</asp:Content>

@ -0,0 +1,98 @@
@model NzbDrone.Core.Repository.Series
@section TitleContent{
Edit
}
@section Scripts{
<script type="text/javascript">
$(document).ready(function () {
var options = {
target: '#result',
beforeSubmit: showRequest,
success: showResponse,
type: 'post',
resetForm: false
};
$('#form').ajaxForm(options);
$('#save_button').attr('disabled', '');
});
function showRequest(formData, jqForm, options) {
$("#result").empty().html('Saving Series...');
$("#form :input").attr("disabled", true);
}
function showResponse(responseText, statusText, xhr, $form) {
$("#result").empty().html(responseText);
$("#form :input").attr("disabled", false);
}
</script>
}
@section MainContent{
<h2>@Html.DisplayTextFor(model => model.Title)</h2>
@using (Html.BeginForm("Edit", "Series", FormMethod.Post, new { id = "form", name = "form" }))
{
<fieldset>
<legend>Edit</legend>
<div class="editor-label">
@Html.LabelFor(model => model.Path)
</div>
<div class="editor-field">
@Html.TextBoxFor(model => model.Path)
@Html.ValidationMessageFor(model => model.Path)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.Monitored)
</div>
<div class="editor-field">
@Html.CheckBoxFor(model => model.Monitored)
@Html.ValidationMessageFor(model => model.Monitored)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.SeasonFolder)
</div>
<div class="editor-field">
@Html.CheckBoxFor(model => model.SeasonFolder)
@Html.ValidationMessageFor(model => model.SeasonFolder)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.QualityProfileId)
</div>
<div class="editor-field">
@Html.DropDownListFor(model => model.QualityProfileId, (SelectList) ViewData["SelectList"])
@Html.ValidationMessageFor(model => model.QualityProfileId)
</div>
<div class="hidden" style="display:none;">
@Html.TextBoxFor(model => model.SeriesId)
@Html.TextBoxFor(model => model.Title)
@Html.TextBoxFor(model => model.CleanTitle)
@Html.TextBoxFor(model => model.Status)
@Html.TextBoxFor(model => model.Overview)
@Html.TextBoxFor(model => model.AirsDayOfWeek)
@Html.TextBoxFor(model => model.AirTimes)
@Html.TextBoxFor(model => model.Language)
</div>
<p>
<input type="submit" id="save_button" value="Save" disabled="disabled" />
</p>
</fieldset>
}
<div>
@Html.ActionLink("Back to Show", "Details", new {seriesId = Model.SeriesId}) |
@Html.ActionLink("Back to List", "Index")
@Html.ActionLink("Delete Series", "Delete", new {seriesId = Model.SeriesId})
</div>
<div id="result"></div>
}

@ -0,0 +1,27 @@
@model IEnumerable<NzbDrone.Core.Repository.Series>
@section TitleContent{
Series
}
@section ActionMenu{
@{Html.RenderPartial("SubMenu");}
}
@section MainContent{
@{Html.Telerik().Grid(Model).Name("Grid")
.TableHtmlAttributes(new { @class = "Grid" })
.Columns(columns =>
{
columns.Template(c => @Html.ActionLink(c.Title ?? "New Series", "Details",
new {seriesId = c.SeriesId})
).Title("Title");
columns.Bound(o => o.Seasons.Count).Title("Seasons");
columns.Bound(o => o.QualityProfile.Name).Title("Quality");
columns.Bound(o => o.Status);
columns.Bound(o => o.AirsDayOfWeek);
columns.Bound(o => o.Path);
})
.Sortable(sort => sort.OrderBy(order => order.Add(o => o.Title).Ascending()).Enabled(false))
.Render();}
}

@ -1,30 +0,0 @@
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<List<NzbDrone.Web.Models.SeriesSearchResultModel>>" %>
<div id="searchResults">
<fieldset>
<legend>Search Results</legend>
<%
if (Model.Count == 0)
{%>
<b>No results found for the series name</b>
<%
}
%>
<%
int r = 0;%>
<%
foreach (var result in Model)
{%>
<%:Html.RadioButton("selectedSeries", result.TvDbId, r == 0,
new {@class = "searchRadio examplePart", id = "searchRadio_" + r})%>
<b>
<%:result.TvDbName + " (" + result.FirstAired.ToShortDateString()%>)
<%:Html.TextBox(result.TvDbName + "_text", result.TvDbName,
new {id = result.TvDbId + "_text", style = "display:none"})%>
<%
r++;%>
<br />
<%
}%>
</fieldset>
</div>

@ -0,0 +1,30 @@
@model List<NzbDrone.Web.Models.SeriesSearchResultModel>
<div id="searchResults">
<fieldset>
<legend>Search Results</legend>
@if (Model.Count == 0)
{
<b>No results found for the series name</b>
}
@{var open = "(";}
@{var close = ")";}
@{int r = 0;}
@foreach (var result in Model)
{
@Html.RadioButton("selectedSeries", result.TvDbId, r == 0,
new {@class = "searchRadio examplePart", id = "searchRadio_" + r})
<b>@result.TvDbName</b> @open @result.FirstAired.ToShortDateString() @close
<br/>
@Html.TextBox(result.TvDbName + "_text", result.TvDbName, new { id = result.TvDbId + "_text", style = "display:none" })
r++;
}
</fieldset>
</div>

@ -1,21 +0,0 @@
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<dynamic>" %>
<%@ Import Namespace="NzbDrone.Web.Controllers" %>
<%
Html.Telerik().Menu().Name("telerikGrid").Items(items =>
{
items.Add().Text("Add Series")
.Items(
subItem =>
subItem.Add().Text("New Series").Action
<AddSeriesController>(c => c.AddNew()))
.Items(
subItem =>
subItem.Add().Text("Existing Series").Action
<AddSeriesController>(c => c.AddExisting()));
items.Add().Text("Start RSS Sync").Action<SeriesController>(
c => c.RssSync());
items.Add().Text("Rename All").Action<SeriesController>(
c => c.RenameAll());
}).Render();
%>

@ -0,0 +1,17 @@
@using NzbDrone.Web.Controllers
@{Html.Telerik().Menu().Name("telerikGrid").Items(items =>
{
items.Add().Text("Add Series")
.Items(
subItem =>
subItem.Add().Text("New Series").Action<AddSeriesController>(c => c.AddNew()))
.Items(
subItem =>
subItem.Add().Text("Existing Series").Action<AddSeriesController>(c => c.AddExisting()));
items.Add().Text("Start RSS Sync").Action<SeriesController>(
c => c.RssSync());
items.Add().Text("Rename All").Action<SeriesController>(
c => c.RenameAll());
}).Render();}

@ -1,33 +0,0 @@
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<NzbDrone.Core.Repository.Series>>" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
Series
</asp:Content>
<asp:Content ID="Menu" ContentPlaceHolderID="ActionMenu" runat="server">
<%
Html.RenderPartial("SubMenu");
%>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<%
Html.Telerik().Grid(Model)
.Name("Grid")
.Columns(columns =>
{
columns.Template(c =>
{
%>
<%:Html.ActionLink(c.Title ?? "New Series",
"Details",
new {seriesId = c.SeriesId})%>
<%
}).Title("Title");
columns.Bound(o => o.Seasons.Count).Title("Seasons");
columns.Bound(o => o.QualityProfile.Name).Title("Quality");
columns.Bound(o => o.Status);
columns.Bound(o => o.AirsDayOfWeek);
columns.Bound(o => o.Path);
})
.Sortable(sort => sort.OrderBy(order => order.Add(o => o.Title).Ascending()).Enabled(false))
.Render();
%>
</asp:Content>

@ -49,11 +49,10 @@
</div> </div>
<div id="user-profiles"> <div id="user-profiles">
@foreach (var item in Model.UserProfiles)
@foreach (var item in Model.UserProfiles) {
{ Html.RenderAction("GetQualityProfileView", item);
Html.RenderPartial("UserProfileSection", item); }
}
</div> </div>
</div> </div>
@ -77,8 +76,27 @@
return false; return false;
}); });
$("a.deleteRow").live("click", function () { // $("a.deleteRow").live("click", function () {
$(this).parents("div.userProfileSectionEditor:first").remove(); // $(this).parents("div.userProfileSectionEditor:first").remove();
return false; // return false;
}); // });
var deleteQualityProfileUrl = '@Url.Action("DeleteQualityProfile", "Settings")';
function deleteProfile(id) {
//$(this).parents("div.userProfileSectionEditor:first").remove();
sendToServer(id);
$("#div_" + id).hide();
}
function sendToServer(id) {
$.ajax({
type: "POST",
url: deleteQualityProfileUrl,
data: jQuery.param({ profileId: id }),
error: function (req, status, error) {
alert("Sorry! We could not add " + path + " at this time. " + error);
}
});
}
</script> </script>

@ -1,5 +1,9 @@
@model NzbDrone.Core.Repository.RootDir @model NzbDrone.Core.Repository.RootDir
@using NzbDrone.Web.Helpers; @using NzbDrone.Web.Helpers;
@{
Layout = null;
}
<style type="text/css"> <style type="text/css">
.root_dir_text .root_dir_text

@ -2,10 +2,15 @@
@using NzbDrone.Core.Repository.Quality @using NzbDrone.Core.Repository.Quality
@using NzbDrone.Web.Helpers @using NzbDrone.Web.Helpers
@{
Layout = null;
}
@using (Html.BeginCollectionItem("UserProfiles")) @using (Html.BeginCollectionItem("UserProfiles"))
{ {
var idClean = ViewData.TemplateInfo.HtmlFieldPrefix.Replace('[', '_').Replace(']', '_'); var idClean = ViewData.TemplateInfo.HtmlFieldPrefix.Replace('[', '_').Replace(']', '_');
var ugly = ViewData.TemplateInfo.HtmlFieldPrefix;
string sortable1 = String.Format("{0}_sortable1", idClean); string sortable1 = String.Format("{0}_sortable1", idClean);
string sortable2 = String.Format("{0}_sortable2", idClean); string sortable2 = String.Format("{0}_sortable2", idClean);
@ -13,6 +18,7 @@
string connectedSortable = String.Format("connected{0}", idClean); string connectedSortable = String.Format("connected{0}", idClean);
string title = String.Format("{0}_Title", idClean); string title = String.Format("{0}_Title", idClean);
string nameBox = String.Format("{0}_Name", idClean); string nameBox = String.Format("{0}_Name", idClean);
string cutoff = String.Format("{0}.Cutoff", ugly);
<style type="text/css"> <style type="text/css">
.sortable1, .sortable2 { list-style-type: none; margin-right: 10px; background: #eee; padding-left: 5px; padding-right: 5px; padding-top: 0px; padding-bottom: 6px; width: 117px; margin-bottom: 3px; } .sortable1, .sortable2 { list-style-type: none; margin-right: 10px; background: #eee; padding-left: 5px; padding-right: 5px; padding-top: 0px; padding-bottom: 6px; width: 117px; margin-bottom: 3px; }
@ -35,25 +41,32 @@
create: function (event, ui) { create: function (event, ui) {
var order = $('#@sortable1').sortable("toArray"); var order = $('#@sortable1').sortable("toArray");
$("#@allowedStringName>").val(order); $("#@allowedStringName").val(order);
}, },
update: function (event, ui) { update: function (event, ui) {
var order = $('#@sortable1').sortable("toArray"); var order = $('#@sortable1').sortable("toArray");
$("#@allowedStringName").val(order); $("#@allowedStringName").val(order);
}
//If this is the first QualityType added to the Profile select it as the cutoff value (in-case the user forgets)
var $list = $('#@sortable1 li');
if ($list.length == 1) {
var $radios = $('input[name="@cutoff"]');
$radios.filter('[value=' + order + ']').attr('checked', true);
}
}
}).disableSelection(); }).disableSelection();
}); });
</script> </script>
<div class="userProfileSectionEditor"> <div class="userProfileSectionEditor" id="div_@(ViewData["ProfileId"])">
<fieldset style="width:285px; margin:5px; margin-top: 0px; border-color:#CCCCCD"> <fieldset style="width:285px; margin:5px; margin-top: 0px; border-color:#CCCCCD">
<div id="tester"></div>
<div id="qualityHeader" style="padding-bottom: 5px; margin: 0px;"> <div id="qualityHeader" style="padding-bottom: 5px; margin: 0px;">
<h2 style="display:inline; padding-right: 4px; margin-left: 4px;" id="@title"><@Html.DisplayTextFor(m => m.Name)</h2> <h2 style="display:inline; padding-right: 4px; margin-left: 4px;" id="@title">@{Html.DisplayTextFor(m => m.Name);}</h2>
<a href="#" class="deleteRow"><img src="../../Content/Images/X.png" alt="Delete" /></a> <a href="#" id="@Model.QualityProfileId" class="deleteRow" onclick="deleteProfile('@ViewData["ProfileId"]')"><img src="../../Content/Images/X.png" alt="Delete" /></a>
</div> </div>
<div class="config-group" style="width: 250px; margin-bottom: 5px; margin-left: 5px;"> <div class="config-group" style="width: 250px; margin-bottom: 5px; margin-left: 5px;">
@ -88,10 +101,10 @@
@for (int i = 0; i < qualitiesList.Count(); i++) @for (int i = 0; i < qualitiesList.Count(); i++)
{ {
//Skip Unknown and any item that is in the allowed list //Skip Unknown and any item that is in the allowed list
if (qualitiesList[i].ToString() == "Unknown") //if (qualitiesList[i].ToString() == "Unknown")
{ //{
continue; // continue;
} //}
if (Model.Allowed != null) if (Model.Allowed != null)
{ {

@ -1,11 +0,0 @@
<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<System.Web.Mvc.HandleErrorInfo>" %>
<asp:Content ID="errorTitle" ContentPlaceHolderID="TitleContent" runat="server">
EPIC FAIL!!!
</asp:Content>
<asp:Content ID="errorContent" ContentPlaceHolderID="MainContent" runat="server">
<h2>
<%:Model.Exception.Message%>
</h2>
<br />
<%:Model.Exception.ToString()%>
</asp:Content>

@ -0,0 +1,15 @@
@model System.Web.Mvc.HandleErrorInfo
@section TitleContent
{
EPIC FAIL!!!
}
@section MainContent
{
<h2>
@Model.Exception.Message
</h2>
<br />
@Model.Exception.ToString()
}

@ -1,63 +0,0 @@
<%@ Master Language="C#" Inherits="System.Web.Mvc.ViewMasterPage" %>
<%@ Import Namespace="Helpers" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head runat="server">
<link rel="SHORTCUT ICON" href="../../favicon.ico">
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>NZBDrone</title>
<%
Html.Telerik().StyleSheetRegistrar().DefaultGroup(group => group.Add("telerik.common.css")
.Add("telerik.sitefinity.css")
.Add("notibar.css"))
.Render();
%>
<link href="../../Content/style.css" rel="stylesheet" type="text/css" />
<link href="../../Content/jquery-ui.css" rel="stylesheet" type="text/css" />
<link href="../../Content/jquery-ui.custom.css" rel="stylesheet" type="text/css" />
<link href="../../Content/jquery-simpledropdown.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../../Scripts/jquery-1.5.2.min.js"></script>
<%--<script type="text/javascript" src="../../Scripts/jquery-ui-1.8.8.min.js"></script>--%>
<asp:ContentPlaceHolder ID="headerContent" runat="server">
</asp:ContentPlaceHolder>
</head>
<body>
<div id="centered">
<div id="menu">
<ul>
<%:MvcHtmlString.Create(Html.CurrentActionLink("Series", "Index", "Series"))%>
<%:MvcHtmlString.Create(Html.CurrentActionLink("Upcoming", "Index", "Upcoming"))%>
<%:MvcHtmlString.Create(Html.CurrentActionLink("History", "Index", "History"))%>
<%:MvcHtmlString.Create(Html.CurrentActionLink("Settings", "Index", "Settings"))%>
<%:MvcHtmlString.Create(Html.CurrentActionLink("Logs", "Index", "Log"))%>
</ul>
</div>
<div id="logo">
<asp:ContentPlaceHolder ID="TitleContent" runat="server" />
</div>
<div id="page">
<asp:ContentPlaceHolder ID="ActionMenu" runat="server" />
<asp:ContentPlaceHolder ID="MainContent" runat="server" />
</div>
<div id="footer">
<%
Html.RenderAction("Footer", "Shared");%>
</div>
<div id="msgBox">
<span id="msgText">Scanning Series Folder...</span>
</div>
</div>
</body>
<asp:contentplaceholder runat="server" id="Scripts" />
<%
Html.Telerik().ScriptRegistrar().Scripts(
c => c.Add("jquery-ui-1.8.8.min.js")
.Add("jquery.form.js")
.Add("jquery.jgrowl.js")
.Add("Notification.js")
.Add("jquery-tgc-countdown-1.0.js")
.Add("MicrosoftAjax.js")
.Add("MicrosoftMvcValidation.js"))
.Render();
%>
</html>

@ -14,9 +14,6 @@
<link href="../../Content/style.css" rel="stylesheet" type="text/css" /> <link href="../../Content/style.css" rel="stylesheet" type="text/css" />
<link href="../../Content/jquery-ui.css" rel="stylesheet" type="text/css" /> <link href="../../Content/jquery-ui.css" rel="stylesheet" type="text/css" />
<link href="../../Content/jquery-ui.custom.css" rel="stylesheet" type="text/css" /> <link href="../../Content/jquery-ui.custom.css" rel="stylesheet" type="text/css" />
@*<link href="../../Content/jquery-simpledropdown.css" rel="stylesheet" type="text/css" />*@
@*<script type="text/javascript" src="../../Scripts/jquery-1.5.2.min.js"></script>*@
@*<script type="text/javascript" src="../../Scripts/jquery-ui-1.8.8.min.js"></script>*@
@RenderSection("HeaderContent", required: false) @RenderSection("HeaderContent", required: false)
</head> </head>
@ -47,6 +44,9 @@
</div> </div>
</div> </div>
</body> </body>
@RenderSection("Scripts", required: false)
@{Html.Telerik().ScriptRegistrar().Scripts( @{Html.Telerik().ScriptRegistrar().Scripts(
c => c.Add("jquery-ui-1.8.8.min.js") c => c.Add("jquery-ui-1.8.8.min.js")
.Add("jquery.form.js") .Add("jquery.form.js")

@ -1,10 +1,10 @@
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<List<NzbDrone.Web.Models.UpcomingEpisodeModel>>" %> @model List<NzbDrone.Web.Models.UpcomingEpisodeModel>
<%@ Import Namespace="NzbDrone.Web.Models" %> @using NzbDrone.Web.Models
@section Scripts{
<asp:Content ID="Content1" ContentPlaceHolderID="Scripts" runat="server">
<script type="text/javascript"> <script type="text/javascript">
function onRowDataBound(e) { function onRowDataBound(e) {
e.row.style.boarder = ""; e.row.style.boarder = "";
if (e.dataItem.Level == 3) { if (e.dataItem.Level == 3) {
@ -20,23 +20,23 @@
//e.row.style.color = 'blue'; //e.row.style.color = 'blue';
} }
</script> </script>
</asp:Content> }
<asp:Content ID="Content2" ContentPlaceHolderID="TitleContent" runat="server">
@section TitleContent{
Upcoming Upcoming
</asp:Content> }
<asp:Content ID="Menu" ContentPlaceHolderID="ActionMenu" runat="server">
<% @section ActionMenu{
Html.Telerik().Menu().Name("historyMenu").Items( @{Html.Telerik().Menu().Name("historyMenu").Items(
items => { items.Add().Text("Start RSS Sync").Action("RssSync", "Series"); }).Render(); items => { items.Add().Text("Start RSS Sync").Action("RssSync", "Series"); }).Render();}
%> }
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
@section MainContent{
<div id="yesterday"> <div id="yesterday">
<h2>Yesterday</h2> <h2>Yesterday</h2>
<% @{Html.Telerik().Grid<UpcomingEpisodeModel>().Name("Yesterday").NoRecordsTemplate(
Html.Telerik().Grid<UpcomingEpisodeModel>().Name("Yesterday").NoRecordsTemplate(
"No watched shows aired yesterday") "No watched shows aired yesterday")
.TableHtmlAttributes(new { @class = "Grid" })
.Columns(columns => .Columns(columns =>
{ {
columns.Bound(c => c.SeriesName) columns.Bound(c => c.SeriesName)
@ -59,16 +59,15 @@
//.Pageable(c => c.PageSize(20).Position(GridPagerPosition.Both).Style(GridPagerStyles.PageInput | GridPagerStyles.NextPreviousAndNumeric)) //.Pageable(c => c.PageSize(20).Position(GridPagerPosition.Both).Style(GridPagerStyles.PageInput | GridPagerStyles.NextPreviousAndNumeric))
//.Filterable() //.Filterable()
//.ClientEvents(c => c.OnRowDataBound("onRowDataBound")) //.ClientEvents(c => c.OnRowDataBound("onRowDataBound"))
.Render(); .Render();}
%>
</div> </div>
<br /> <br />
<div id="today"> <div id="today">
<h2>Today</h2> <h2>Today</h2>
<% @{Html.Telerik().Grid<UpcomingEpisodeModel>().Name("Today").NoRecordsTemplate("No watched shows airing today.")
Html.Telerik().Grid<UpcomingEpisodeModel>().Name("Today").NoRecordsTemplate("No watched shows airing today.") .TableHtmlAttributes(new { @class = "Grid" })
.Columns(columns => .Columns(columns =>
{ {
columns.Bound(c => c.SeriesName) columns.Bound(c => c.SeriesName)
@ -91,17 +90,16 @@
//.Pageable(c => c.PageSize(20).Position(GridPagerPosition.Both).Style(GridPagerStyles.PageInput | GridPagerStyles.NextPreviousAndNumeric)) //.Pageable(c => c.PageSize(20).Position(GridPagerPosition.Both).Style(GridPagerStyles.PageInput | GridPagerStyles.NextPreviousAndNumeric))
//.Filterable() //.Filterable()
//.ClientEvents(c => c.OnRowDataBound("onRowDataBound")) //.ClientEvents(c => c.OnRowDataBound("onRowDataBound"))
.Render(); .Render();}
%>
</div> </div>
<br /> <br />
<div id="week"> <div id="week">
<h2>7-Day Forecast</h2> <h2>7-Day Forecast</h2>
<% @{Html.Telerik().Grid<UpcomingEpisodeModel>().Name("Week").NoRecordsTemplate(
Html.Telerik().Grid<UpcomingEpisodeModel>().Name("Week").NoRecordsTemplate(
"No watched shows airing in the next week...") "No watched shows airing in the next week...")
.TableHtmlAttributes(new { @class = "Grid" })
.Columns(columns => .Columns(columns =>
{ {
columns.Bound(c => c.SeriesName) columns.Bound(c => c.SeriesName)
@ -124,7 +122,6 @@
//.Pageable(c => c.PageSize(20).Position(GridPagerPosition.Both).Style(GridPagerStyles.PageInput | GridPagerStyles.NextPreviousAndNumeric)) //.Pageable(c => c.PageSize(20).Position(GridPagerPosition.Both).Style(GridPagerStyles.PageInput | GridPagerStyles.NextPreviousAndNumeric))
//.Filterable() //.Filterable()
//.ClientEvents(c => c.OnRowDataBound("onRowDataBound")) //.ClientEvents(c => c.OnRowDataBound("onRowDataBound"))
.Render(); .Render();}
%>
</div> </div>
</asp:Content> }

@ -18,13 +18,25 @@ namespace NzbDrone
{ {
public static void Attach() public static void Attach()
{ {
for (int i = 0; i < 10; i++)
{
try
{
DTE2 dte2;
dte2 = (DTE2)Marshal.
GetActiveObject("VisualStudio.DTE.10.0");
var pa = new ProcessAttacher(dte2, "iisexpress", 10);
pa.PessimisticAttachManaged();
return;
}
catch
{
Thread.Sleep(500);
}
}
// Get an instance of the currently running Visual Studio IDE. // Get an instance of the currently running Visual Studio IDE.
DTE2 dte2;
dte2 = (DTE2) Marshal.
GetActiveObject("VisualStudio.DTE.10.0");
var pa = new ProcessAttacher(dte2, "iisexpress", 10);
pa.PessimisticAttachManaged();
} }
#region private #region private
@ -99,6 +111,8 @@ namespace NzbDrone
private bool IsBeingDebugged() private bool IsBeingDebugged()
{ {
if (_dte.Debugger.DebuggedProcesses != null) if (_dte.Debugger.DebuggedProcesses != null)
{ {
foreach (Process process in _dte.Debugger.DebuggedProcesses) foreach (Process process in _dte.Debugger.DebuggedProcesses)

Loading…
Cancel
Save