Merge branch 'kay.one' of github.com:NzbDrone/NzbDrone into markus

This commit is contained in:
Mark McDowall 2011-11-30 21:08:53 -08:00
commit 3c09533976
12 changed files with 430 additions and 449 deletions

View File

@ -68,7 +68,7 @@ namespace NzbDrone.Web.Controllers
public ActionResult Index() public ActionResult Index()
{ {
return RedirectToAction("Indexers"); return View();
} }
public ActionResult Indexers() public ActionResult Indexers()

View File

@ -518,6 +518,12 @@
<LastGenOutput>EditorLocalization.en-US.designer.cs</LastGenOutput> <LastGenOutput>EditorLocalization.en-US.designer.cs</LastGenOutput>
</Content> </Content>
</ItemGroup> </ItemGroup>
<ItemGroup>
<Content Include="Views\Settings\Index.cshtml" />
</ItemGroup>
<ItemGroup>
<Content Include="Views\Shared\_RefrenceLayout.cshtml" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.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. <!-- To modify your build process, add your task inside one of the targets below and uncomment it.

View File

@ -1,24 +1,21 @@
@using NzbDrone.Core.Repository @section TitleContent{
@section TitleContent{
Add Series Add Series
} }
@section Scripts @section Scripts
{ {
<script type="text/javascript" src="../../Scripts/NzbDrone/addSeries.js"></script> <script type="text/javascript" src="../../Scripts/NzbDrone/addSeries.js"></script>
} }
@section MainContent{ <h2>
<h2> Add New Series</h2>
Add New Series</h2> <div id="addNewSeries">
<div id="addNewSeries"> @{ Html.RenderAction("AddNew", "AddSeries"); }
@{ Html.RenderAction("AddNew", "AddSeries"); } </div>
</div> <h2>
<h2> Add Series Already on Disk</h2>
Add Series Already on Disk</h2> <h3>
<h3> Manage Root Folders
Manage Root Folders </h3>
</h3> @{Html.RenderAction("RootDir");}
@{Html.RenderAction("RootDir");} <div id="existingSeries">
<div id="existingSeries"> @{ Html.RenderAction("ExistingSeries", "AddSeries"); }
@{ Html.RenderAction("ExistingSeries", "AddSeries"); } </div>
</div>
}

View File

@ -0,0 +1,24 @@
@section TitleContent
{
Settings
}
@section Scripts
{
<script type="text/javascript">
$(function () {
$("#tabs222").tabs();
});
</script>
}
@section MainContent{
<div id="tabs222">
<ul>
<li>@Html.ActionLink("Naming", "Naming", "Settings")</li>
<li>@Html.ActionLink("Indexers", "Indexers", "Settings")</li>
<li>@Html.ActionLink("Quality", "Quality", "Settings")</li>
<li>@Html.ActionLink("SABnzbd", "Sabnzbd", "Settings")</li>
<li>@Html.ActionLink("Notifications", "Notifications", "Settings")</li>
<li>@Html.ActionLink("System", "System", "Settings")</li>
</ul>
</div>
}

View File

@ -1,5 +1,6 @@
@using NzbDrone.Web.Helpers @using NzbDrone.Web.Helpers
@model NzbDrone.Web.Models.IndexerSettingsModel @model NzbDrone.Web.Models.IndexerSettingsModel
@{ Layout = "~/Views/Shared/_RefrenceLayout.cshtml"; }
@section HeaderContent{ @section HeaderContent{
<link rel="stylesheet" type="text/css" href="../../Content/Settings.css" /> <link rel="stylesheet" type="text/css" href="../../Content/Settings.css" />
<link rel="stylesheet" type="text/css" href="../../Content/IndexerSettings.css" /> <link rel="stylesheet" type="text/css" href="../../Content/IndexerSettings.css" />
@ -10,113 +11,105 @@
} }
</style> </style>
} }
@section TitleContent{ <div class="infoBox">
Settings > Indexers RSS feeds are checked every 15 minutes for new episodes.</div>
} <div id="stylized">
@section ActionMenu{ @using (Html.BeginForm("SaveIndexers", "Settings", FormMethod.Post, new { id = "form", name = "form", @class = "settingsForm" }))
@{Html.RenderPartial("SubMenu");} {
} @Html.ValidationSummary(true, "Unable to save your settings. Please correct the errors and try again.")
@section MainContent{ <div id="accordion">
<div class="infoBox"> <h3>
RSS feeds are checked every 15 minutes for new episodes.</div> <a href="#">NZBs.org</a></h3>
<div id="stylized"> <div class="indexerPanel">
@using (Html.BeginForm("SaveIndexers", "Settings", FormMethod.Post, new { id = "form", name = "form", @class = "settingsForm" })) <label class="labelClass">
{ Enable <span class="small">@Html.DescriptionFor(m => m.NzbsOrgEnabled)</span>
@Html.ValidationSummary(true, "Unable to save your settings. Please correct the errors and try again.") </label>
<div id="accordion"> @Html.CheckBoxFor(m => m.NzbsOrgEnabled, new { @class = "inputClass checkClass" })
<h3> <label class="labelClass">@Html.LabelFor(m => m.NzbsOrgUId)
<a href="#">NZBs.org</a></h3> <span class="small">@Html.DescriptionFor(m => m.NzbsOrgUId)</span>
<div class="indexerPanel"> </label>
<label class="labelClass"> @Html.TextBoxFor(m => m.NzbsOrgUId, new { @class = "inputClass" })
Enable <span class="small">@Html.DescriptionFor(m => m.NzbsOrgEnabled)</span> <label class="labelClass">@Html.LabelFor(m => m.NzbsOrgHash)
</label> <span class="small">@Html.DescriptionFor(m => m.NzbsOrgHash)</span>
@Html.CheckBoxFor(m => m.NzbsOrgEnabled, new { @class = "inputClass checkClass" }) </label>
<label class="labelClass">@Html.LabelFor(m => m.NzbsOrgUId) @Html.TextBoxFor(m => m.NzbsOrgHash, new { @class = "inputClass" })
<span class="small">@Html.DescriptionFor(m => m.NzbsOrgUId)</span> </div>
</label> <h3>
@Html.TextBoxFor(m => m.NzbsOrgUId, new { @class = "inputClass" }) <a href="#">NZBMatrix</a></h3>
<label class="labelClass">@Html.LabelFor(m => m.NzbsOrgHash) <div class="indexerPanel">
<span class="small">@Html.DescriptionFor(m => m.NzbsOrgHash)</span> <label class="labelClass">
</label> Enable <span class="small">@Html.DescriptionFor(m => m.NzbMatrixEnabled)</span>
@Html.TextBoxFor(m => m.NzbsOrgHash, new { @class = "inputClass" }) </label>
</div> @Html.CheckBoxFor(m => m.NzbMatrixEnabled, new { @class = "inputClass checkClass" })
<h3> <label class="labelClass">@Html.LabelFor(m => m.NzbMatrixUsername)
<a href="#">NZBMatrix</a></h3> <span class="small">@Html.DescriptionFor(m => m.NzbMatrixUsername)</span>
<div class="indexerPanel"> </label>
<label class="labelClass"> @Html.TextBoxFor(m => m.NzbMatrixUsername, new { @class = "inputClass" })
Enable <span class="small">@Html.DescriptionFor(m => m.NzbMatrixEnabled)</span> <label class="labelClass">@Html.LabelFor(m => m.NzbMatrixApiKey)
</label> <span class="small">@Html.DescriptionFor(m => m.NzbMatrixApiKey)</span>
@Html.CheckBoxFor(m => m.NzbMatrixEnabled, new { @class = "inputClass checkClass" }) </label>
<label class="labelClass">@Html.LabelFor(m => m.NzbMatrixUsername) @Html.TextBoxFor(m => m.NzbMatrixApiKey, new { @class = "inputClass" })
<span class="small">@Html.DescriptionFor(m => m.NzbMatrixUsername)</span> </div>
</label> <h3>
@Html.TextBoxFor(m => m.NzbMatrixUsername, new { @class = "inputClass" }) <a href="#">NZBsRus</a></h3>
<label class="labelClass">@Html.LabelFor(m => m.NzbMatrixApiKey) <div class="indexerPanel">
<span class="small">@Html.DescriptionFor(m => m.NzbMatrixApiKey)</span> <label class="labelClass">
</label> Enable <span class="small">@Html.DescriptionFor(m => m.NzbsRUsEnabled)</span>
@Html.TextBoxFor(m => m.NzbMatrixApiKey, new { @class = "inputClass" }) </label>
</div> @Html.CheckBoxFor(m => m.NzbsRUsEnabled, new { @class = "inputClass checkClass" })
<h3> <label class="labelClass">@Html.LabelFor(m => m.NzbsrusUId)
<a href="#">NZBsRus</a></h3> <span class="small">@Html.DescriptionFor(m => m.NzbsrusUId)</span>
<div class="indexerPanel"> </label>
<label class="labelClass"> @Html.TextBoxFor(m => m.NzbsrusUId, new { @class = "inputClass" })
Enable <span class="small">@Html.DescriptionFor(m => m.NzbsRUsEnabled)</span> <label class="labelClass">@Html.LabelFor(m => m.NzbsrusHash)
</label> <span class="small">@Html.DescriptionFor(m => m.NzbsrusHash)</span>
@Html.CheckBoxFor(m => m.NzbsRUsEnabled, new { @class = "inputClass checkClass" }) </label>
<label class="labelClass">@Html.LabelFor(m => m.NzbsrusUId) @Html.TextBoxFor(m => m.NzbsrusHash, new { @class = "inputClass" })
<span class="small">@Html.DescriptionFor(m => m.NzbsrusUId)</span> </div>
</label> <h3>
@Html.TextBoxFor(m => m.NzbsrusUId, new { @class = "inputClass" }) <a href="#">Newsbin</a></h3>
<label class="labelClass">@Html.LabelFor(m => m.NzbsrusHash) <div class="indexerPanel">
<span class="small">@Html.DescriptionFor(m => m.NzbsrusHash)</span> <label class="labelClass">
</label> Enable <span class="small">@Html.DescriptionFor(m => m.NewzbinEnabled)</span>
@Html.TextBoxFor(m => m.NzbsrusHash, new { @class = "inputClass" }) </label>
</div> @Html.CheckBoxFor(m => m.NewzbinEnabled, new { @class = "inputClass checkClass" })
<h3> <label class="labelClass">@Html.LabelFor(m => m.NewzbinUsername)
<a href="#">Newsbin</a></h3> <span class="small">@Html.DescriptionFor(m => m.NewzbinUsername)</span>
<div class="indexerPanel"> </label>
<label class="labelClass"> @Html.TextBoxFor(m => m.NewzbinUsername, new { @class = "inputClass" })
Enable <span class="small">@Html.DescriptionFor(m => m.NewzbinEnabled)</span> <label class="labelClass">@Html.LabelFor(m => m.NewzbinPassword)
</label> <span class="small">@Html.DescriptionFor(m => m.NewzbinPassword)</span>
@Html.CheckBoxFor(m => m.NewzbinEnabled, new { @class = "inputClass checkClass" }) </label>
<label class="labelClass">@Html.LabelFor(m => m.NewzbinUsername) @Html.TextBoxFor(m => m.NewzbinPassword, new { @class = "inputClass" })
<span class="small">@Html.DescriptionFor(m => m.NewzbinUsername)</span> </div>
</label> <h3>
@Html.TextBoxFor(m => m.NewzbinUsername, new { @class = "inputClass" }) <a href="#">Newznab</a></h3>
<label class="labelClass">@Html.LabelFor(m => m.NewzbinPassword) <div class="indexerPanel">
<span class="small">@Html.DescriptionFor(m => m.NewzbinPassword)</span> <label class="labelClass">
</label> Enable <span class="small">@Html.DescriptionFor(m => m.NewznabEnabled)</span>
@Html.TextBoxFor(m => m.NewzbinPassword, new { @class = "inputClass" }) </label>
</div> @Html.CheckBoxFor(m => m.NewznabEnabled, new { @class = "inputClass checkClass" })
<h3> <br />
<a href="#">Newznab</a></h3> <br />
<div class="indexerPanel"> <p>
<label class="labelClass"> </p>
Enable <span class="small">@Html.DescriptionFor(m => m.NewznabEnabled)</span> <a id="addItem" href="@Url.Action("AddNewznabProvider", "Settings")">
</label> <img src="../../Content/Images/Plus.png" alt="Add Newznab Provider" width="20px"
@Html.CheckBoxFor(m => m.NewznabEnabled, new { @class = "inputClass checkClass" }) height="20px" />
<br /> Add Newznab Provider</a>
<br /> <div id="newznabProviders">
<p> @foreach (var provider in Model.NewznabDefinitions)
</p> {
<a id="addItem" href="@Url.Action("AddNewznabProvider", "Settings")"> Html.RenderAction("GetNewznabProviderView", provider);
<img src="../../Content/Images/Plus.png" alt="Add Newznab Provider" width="20px" }
height="20px" />
Add Newznab Provider</a>
<div id="newznabProviders">
@foreach (var provider in Model.NewznabDefinitions)
{
Html.RenderAction("GetNewznabProviderView", provider);
}
</div>
</div> </div>
</div> </div>
<br /> </div>
<button type="submit" id="save_button" disabled="disabled"> <br />
Save</button> <button type="submit" id="save_button" disabled="disabled">
} Save</button>
</div> }
} </div>
@section Scripts{ @section Scripts{
<script src="../../Scripts/NzbDrone/settingsForm.js" type="text/javascript"></script> <script src="../../Scripts/NzbDrone/settingsForm.js" type="text/javascript"></script>
<script type="text/javascript"> <script type="text/javascript">

View File

@ -1,9 +1,8 @@
@using NzbDrone.Web.Helpers @using NzbDrone.Web.Helpers
@model NzbDrone.Web.Models.EpisodeNamingModel @model NzbDrone.Web.Models.EpisodeNamingModel
@{ Layout = "~/Views/Shared/_RefrenceLayout.cshtml"; }
@section HeaderContent{ @section HeaderContent{
<link rel="stylesheet" type="text/css" href="../../Content/Settings.css" /> <link rel="stylesheet" type="text/css" href="../../Content/Settings.css" />
<style> <style>
#examples #examples
{ {
@ -18,79 +17,63 @@
} }
</style> </style>
} }
@section TitleContent{
Settings > Naming
}
@section ActionMenu{
@{Html.RenderPartial("SubMenu");}
}
@section MainContent{
<div id="stylized"> <div id="stylized">
@using (Html.BeginForm("SaveNaming", "Settings", FormMethod.Post, new { id = "form", name = "form", @class = "settingsForm" })) @using (Html.BeginForm("SaveNaming", "Settings", FormMethod.Post, new { id = "form", name = "form", @class = "settingsForm" }))
{ {
<div class="settingsContainer"> <div class="settingsContainer">
@Html.ValidationSummary(true, "Unable to save your settings. Please correct the errors and try again.") @Html.ValidationSummary(true, "Unable to save your settings. Please correct the errors and try again.")
<label class="labelClass">@Html.LabelFor(m => m.SeriesName) <label class="labelClass">@Html.LabelFor(m => m.SeriesName)
<span class="small">@Html.DescriptionFor(m => m.SeriesName)</span> <span class="small">@Html.DescriptionFor(m => m.SeriesName)</span>
</label> </label>
@Html.CheckBoxFor(m => m.SeriesName, new { @class = "inputClass checkClass" }) @Html.CheckBoxFor(m => m.SeriesName, new { @class = "inputClass checkClass" })
<label class="labelClass">@Html.LabelFor(m => m.EpisodeName)
<label class="labelClass">@Html.LabelFor(m => m.EpisodeName) <span class="small">@Html.DescriptionFor(m => m.EpisodeName)</span>
<span class="small">@Html.DescriptionFor(m => m.EpisodeName)</span> </label>
</label> @Html.CheckBoxFor(m => m.EpisodeName, new { @class = "inputClass checkClass" })
@Html.CheckBoxFor(m => m.EpisodeName, new { @class = "inputClass checkClass" }) <label class="labelClass">@Html.LabelFor(m => m.ReplaceSpaces)
<span class="small">@Html.DescriptionFor(m => m.ReplaceSpaces)</span>
<label class="labelClass">@Html.LabelFor(m => m.ReplaceSpaces) </label>
<span class="small">@Html.DescriptionFor(m => m.ReplaceSpaces)</span> @Html.CheckBoxFor(m => m.ReplaceSpaces, new { @class = "inputClass checkClass" })
</label> <label class="labelClass">@Html.LabelFor(m => m.AppendQuality)
@Html.CheckBoxFor(m => m.ReplaceSpaces, new { @class = "inputClass checkClass" }) <span class="small">@Html.DescriptionFor(m => m.AppendQuality)</span>
</label>
<label class="labelClass">@Html.LabelFor(m => m.AppendQuality) @Html.CheckBoxFor(m => m.AppendQuality, new { @class = "inputClass checkClass" })
<span class="small">@Html.DescriptionFor(m => m.AppendQuality)</span> <label class="labelClass">@Html.LabelFor(m => m.SeasonFolders)
</label> <span class="small">@Html.DescriptionFor(m => m.SeasonFolders)</span>
@Html.CheckBoxFor(m => m.AppendQuality, new { @class = "inputClass checkClass" }) </label>
@Html.CheckBoxFor(m => m.SeasonFolders, new { @class = "inputClass checkClass" })
<label class="labelClass">@Html.LabelFor(m => m.SeasonFolders) <label class="labelClass">@Html.LabelFor(m => m.SeasonFolderFormat)
<span class="small">@Html.DescriptionFor(m => m.SeasonFolders)</span> <span class="small">@Html.DescriptionFor(m => m.SeasonFolderFormat)</span>
</label> </label>
@Html.CheckBoxFor(m => m.SeasonFolders, new { @class = "inputClass checkClass" }) @Html.TextBoxFor(m => m.SeasonFolderFormat, new { @class = "inputClass" })
<label class="labelClass">@Html.LabelFor(m => m.SeparatorStyle)
<label class="labelClass">@Html.LabelFor(m => m.SeasonFolderFormat) <span class="small">@Html.DescriptionFor(m => m.SeparatorStyle)</span>
<span class="small">@Html.DescriptionFor(m => m.SeasonFolderFormat)</span> </label>
</label> @Html.DropDownListFor(m => m.SeparatorStyle, Model.SeparatorStyles, new { @class = "inputClass selectClass" })
@Html.TextBoxFor(m => m.SeasonFolderFormat, new { @class = "inputClass" }) <label class="labelClass">@Html.LabelFor(m => m.NumberStyle)
<span class="small">@Html.DescriptionFor(m => m.NumberStyle)</span>
<label class="labelClass">@Html.LabelFor(m => m.SeparatorStyle) </label>
<span class="small">@Html.DescriptionFor(m => m.SeparatorStyle)</span> @Html.DropDownListFor(m => m.NumberStyle, Model.NumberStyles, new { @class = "inputClass selectClass" })
</label> <label class="labelClass">@Html.LabelFor(m => m.MultiEpisodeStyle)
@Html.DropDownListFor(m => m.SeparatorStyle, Model.SeparatorStyles, new { @class = "inputClass selectClass" }) <span class="small">@Html.DescriptionFor(m => m.MultiEpisodeStyle)</span>
</label>
<label class="labelClass">@Html.LabelFor(m => m.NumberStyle) @Html.DropDownListFor(m => m.MultiEpisodeStyle, Model.MultiEpisodeStyles, new { @class = "inputClass selectClass" })
<span class="small">@Html.DescriptionFor(m => m.NumberStyle)</span>
</label>
@Html.DropDownListFor(m => m.NumberStyle, Model.NumberStyles, new { @class = "inputClass selectClass" })
<label class="labelClass">@Html.LabelFor(m => m.MultiEpisodeStyle)
<span class="small">@Html.DescriptionFor(m => m.MultiEpisodeStyle)</span>
</label>
@Html.DropDownListFor(m => m.MultiEpisodeStyle, Model.MultiEpisodeStyles, new { @class = "inputClass selectClass" })
</div> </div>
<div id ="examples"> <div id="examples">
<div id="singleEpisodeExample"><b>Single Episode Example: </b><span class="result"></span></div> <div id="singleEpisodeExample">
<div id="multiEpisodeExample"><b>Multi-Episode Example: </b><span class="result"></span></div> <b>Single Episode Example: </b><span class="result"></span>
</div>
<div id="multiEpisodeExample">
<b>Multi-Episode Example: </b><span class="result"></span>
</div>
</div> </div>
<button type="submit" id="save_button" disabled="disabled">Save</button> <button type="submit" id="save_button" disabled="disabled">
Save</button>
} }
</div> </div>
}
@section Scripts{ @section Scripts{
<script src="../../Scripts/NzbDrone/settingsForm.js" type="text/javascript"></script> <script src="../../Scripts/NzbDrone/settingsForm.js" type="text/javascript"></script>
<script type="text/javascript"> <script type="text/javascript">
$(document).ready(function () { $(document).ready(function () {
createExamples(); createExamples();

View File

@ -1,9 +1,7 @@
@using NzbDrone.Web.Helpers @model NzbDrone.Web.Models.NotificationSettingsModel
@model NzbDrone.Web.Models.NotificationSettingsModel @{ Layout = "~/Views/Shared/_RefrenceLayout.cshtml"; }
@section HeaderContent{ @section HeaderContent{
<link rel="stylesheet" type="text/css" href="../../Content/Settings.css" /> <link rel="stylesheet" type="text/css" href="../../Content/Settings.css" />
<style> <style>
.notifier .notifier
{ {
@ -22,7 +20,7 @@
{ {
margin-top: 10px; margin-top: 10px;
} }
#smtpTest #smtpTest
{ {
margin-top: 10px; margin-top: 10px;
@ -31,70 +29,59 @@
} }
</style> </style>
} }
<div id="stylized">
@section TitleContent{ @using (Html.BeginForm("SaveNotifications", "Settings", FormMethod.Post, new { id = "form", name = "form", @class = "settingsForm" }))
Settings > Notifications {
} <div id="accordion2">
<h3>
@section ActionMenu{ <a href="#">XBMC</a></h3>
@{Html.RenderPartial("SubMenu");} @{Html.RenderPartial("Xbmc", Model);}
} <h3>
<a href="#">SMTP</a></h3>
@section MainContent{ @{Html.RenderPartial("Smtp", Model);}
<div id="stylized"> <h3>
@using (Html.BeginForm("SaveNotifications", "Settings", FormMethod.Post, new { id = "form", name = "form", @class = "settingsForm" })) <a href="#">Twitter</a></h3>
{ @{Html.RenderPartial("Twitter", Model);}
<div id="accordion"> <h3>
<h3><a href="#">XBMC</a></h3> <a href="#">Growl</a></h3>
@{Html.RenderPartial("Xbmc", Model);} @{Html.RenderPartial("Growl", Model);}
<h3>
<h3><a href="#">SMTP</a></h3> <a href="#">Prowl</a></h3>
@{Html.RenderPartial("Smtp", Model);} @{Html.RenderPartial("Prowl", Model);}
</div>
<h3><a href="#">Twitter</a></h3>
@{Html.RenderPartial("Twitter", Model);}
<h3><a href="#">Growl</a></h3>
@{Html.RenderPartial("Growl", Model);}
<h3><a href="#">Prowl</a></h3>
@{Html.RenderPartial("Prowl", Model);}
</div>
<button type="submit" id="save_button" disabled="disabled">Save</button> <button type="submit" id="save_button" disabled="disabled">
} Save</button>
</div> }
} </div>
@section Scripts{ @section Scripts{
<script src="../../Scripts/NzbDrone/settingsForm.js" type="text/javascript"></script> <script src="../../Scripts/NzbDrone/settingsForm.js" type="text/javascript"></script>
<script type="text/javascript"> <script type="text/javascript">
$(function () { $(function () {
$("#accordion").accordion({ $("#accordion2").accordion({
autoHeight: false autoHeight: false
}); });
}); });
//Twitter //Twitter
getAuthorizationUrl = '../Command/GetTwitterAuthorization'; getAuthorizationUrl = '../Command/GetTwitterAuthorization';
verifyAuthorizationUrl = '../Command/VerifyTwitterAuthorization'; verifyAuthorizationUrl = '../Command/VerifyTwitterAuthorization';
function requestTwitterAuthorization() { function requestTwitterAuthorization() {
$.ajax({ $.ajax({
type: "GET", type: "GET",
url: getAuthorizationUrl, url: getAuthorizationUrl,
error: function(req, status, error) { error: function (req, status, error) {
alert("Sorry! We could get Twitter Authorization at this time. " + error); alert("Sorry! We could get Twitter Authorization at this time. " + error);
}, },
success: function(data, textStatus, jqXHR) { success: function (data, textStatus, jqXHR) {
if (data.IsMessage) if (data.IsMessage)
return false; return false;
$('#authorizationRequestToken').val(data.Token); $('#authorizationRequestToken').val(data.Token);
window.open(data.Url); window.open(data.Url);
} }
}); });
} }
function verifyTwitterAuthorization() { function verifyTwitterAuthorization() {
@ -102,45 +89,45 @@
var verifier = $('#twitterVerification').val(); var verifier = $('#twitterVerification').val();
$.ajax({ $.ajax({
type: "GET", type: "GET",
url: verifyAuthorizationUrl, url: verifyAuthorizationUrl,
data: jQuery.param({ token: token, verifier: verifier }), data: jQuery.param({ token: token, verifier: verifier }),
error: function(req, status, error) { error: function (req, status, error) {
alert("Sorry! We could verify Twitter Authorization at this time. " + error); alert("Sorry! We could verify Twitter Authorization at this time. " + error);
} }
}); });
} }
//SMTP //SMTP
function testSmtpSettings() { function testSmtpSettings() {
//Get the variables //Get the variables
var server = $('#SmtpServer').val(); var server = $('#SmtpServer').val();
var port = $('#SmtpPort').val(); var port = $('#SmtpPort').val();
var ssl = $('#SmtpUseSsl').val(); var ssl = $('#SmtpUseSsl').val();
var username = $('#SmtpUsername').val(); var username = $('#SmtpUsername').val();
var password = $('#SmtpPassword').val(); var password = $('#SmtpPassword').val();
var fromAddress = $('#SmtpFromAddress').val(); var fromAddress = $('#SmtpFromAddress').val();
var toAddresses = $('#SmtpToAddresses').val(); var toAddresses = $('#SmtpToAddresses').val();
//Send the data! //Send the data!
$.ajax({ $.ajax({
type: "POST", type: "POST",
url: '../Command/SendTestEmail', url: '../Command/SendTestEmail',
data: jQuery.param({ data: jQuery.param({
server: server, server: server,
port: port, port: port,
ssl: ssl, ssl: ssl,
username: username, username: username,
password: password, password: password,
fromAddress: fromAddress, fromAddress: fromAddress,
toAddresses: toAddresses toAddresses: toAddresses
}), }),
error: function (req, status, error) { error: function (req, status, error) {
alert("Sorry! We could send a test email at this time. " + error); alert("Sorry! We could send a test email at this time. " + error);
} }
}); });
return false; return false;
} }
</script> </script>
} }

View File

@ -1,94 +1,93 @@
@using NzbDrone.Core.Repository.Quality @using NzbDrone.Core.Repository.Quality
@using NzbDrone.Web.Helpers; @using NzbDrone.Web.Helpers;
@model NzbDrone.Web.Models.QualityModel @model NzbDrone.Web.Models.QualityModel
@{ Layout = "~/Views/Shared/_RefrenceLayout.cshtml"; }
@section HeaderContent{ @section HeaderContent{
<link rel="stylesheet" type="text/css" href="../../Content/Settings.css" /> <link rel="stylesheet" type="text/css" href="../../Content/Settings.css" />
<link href="../../Content/QualitySettings.css" rel="stylesheet" type="text/css" /> <link href="../../Content/QualitySettings.css" rel="stylesheet" type="text/css" />
} }
@section TitleContent{ <div id="stylized">
Settings > Quality @using (Html.BeginForm("SaveQuality", "Settings", FormMethod.Post, new { id = "form", name = "form" }))
} {
@section ActionMenu{ <div id="top" class="settingsForm">
@{Html.RenderPartial("SubMenu");} <label class="labelClass">@Html.LabelFor(m => m.DefaultQualityProfileId)
} <span class="small">@Html.DescriptionFor(m => m.DefaultQualityProfileId)</span>
@section MainContent{ </label>
<div id="stylized"> @Html.DropDownListFor(m => m.DefaultQualityProfileId, Model.QualityProfileSelectList, new { @class = "inputClass" })
@using (Html.BeginForm("SaveQuality", "Settings", FormMethod.Post, new { id = "form", name = "form" })) <div class="sliders">
{ <div class="slider-container">
<div id="top" class="settingsForm"> <b>SDTV</b>
<label class="labelClass">@Html.LabelFor(m => m.DefaultQualityProfileId) <div id="sdtv-slider" class="slider">
<span class="small">@Html.DescriptionFor(m => m.DefaultQualityProfileId)</span>
</label>
@Html.DropDownListFor(m => m.DefaultQualityProfileId, Model.QualityProfileSelectList, new { @class = "inputClass" })
<div class="sliders">
<div class="slider-container">
<b>SDTV</b>
<div id="sdtv-slider" class="slider"></div>
@Html.HiddenFor(m => m.SdtvMaxSize, new { @class="slider-value" })
30 minute size: <span class="30-minute"></span> | 60 minute size: <span class="60-minute"></span>
</div> </div>
@Html.HiddenFor(m => m.SdtvMaxSize, new { @class = "slider-value" })
<div class="slider-container"> 30 minute size: <span class="30-minute"></span>| 60 minute size: <span class="60-minute">
<b>DVD</b> </span>
<div id="dvd-slider" class="slider"></div> </div>
@Html.HiddenFor(m => m.DvdMaxSize, new { @class = "slider-value" }) <div class="slider-container">
30 minute size: <span class="30-minute"></span> | 60 minute size: <span class="60-minute"></span> <b>DVD</b>
<div id="dvd-slider" class="slider">
</div> </div>
@Html.HiddenFor(m => m.DvdMaxSize, new { @class = "slider-value" })
<div class="slider-container"> 30 minute size: <span class="30-minute"></span>| 60 minute size: <span class="60-minute">
<b>HDTV</b> </span>
<div id="hdtv-slider" class="slider"></div> </div>
@Html.HiddenFor(m => m.HdtvMaxSize, new { @class = "slider-value" }) <div class="slider-container">
30 minute size: <span class="30-minute"></span> | 60 minute size: <span class="60-minute"></span> <b>HDTV</b>
<div id="hdtv-slider" class="slider">
</div> </div>
@Html.HiddenFor(m => m.HdtvMaxSize, new { @class = "slider-value" })
<div class="slider-container"> 30 minute size: <span class="30-minute"></span>| 60 minute size: <span class="60-minute">
<b>WEBDL</b> </span>
<div id="webdl-slider" class="slider"></div> </div>
@Html.HiddenFor(m => m.WebdlMaxSize, new { @class = "slider-value" }) <div class="slider-container">
30 minute size: <span class="30-minute"></span> | 60 minute size: <span class="60-minute"></span> <b>WEBDL</b>
<div id="webdl-slider" class="slider">
</div> </div>
@Html.HiddenFor(m => m.WebdlMaxSize, new { @class = "slider-value" })
<div class="slider-container"> 30 minute size: <span class="30-minute"></span>| 60 minute size: <span class="60-minute">
<b>Bluray 720p</b> </span>
<div id="bluray720p-slider" class="slider"></div> </div>
@Html.HiddenFor(m => m.Bluray720pMaxSize, new { @class = "slider-value" }) <div class="slider-container">
30 minute size: <span class="30-minute"></span> | 60 minute size: <span class="60-minute"></span> <b>Bluray 720p</b>
<div id="bluray720p-slider" class="slider">
</div> </div>
@Html.HiddenFor(m => m.Bluray720pMaxSize, new { @class = "slider-value" })
<div class="slider-container"> 30 minute size: <span class="30-minute"></span>| 60 minute size: <span class="60-minute">
<b>Bluray 1080p</b> </span>
<div id="bluray1080p-slider" class="slider"></div> </div>
@Html.HiddenFor(m => m.Bluray1080pMaxSize, new { @class = "slider-value" }) <div class="slider-container">
30 minute size: <span class="30-minute"></span> | 60 minute size: <span class="60-minute"></span> <b>Bluray 1080p</b>
<div id="bluray1080p-slider" class="slider">
</div> </div>
@Html.HiddenFor(m => m.Bluray1080pMaxSize, new { @class = "slider-value" })
30 minute size: <span class="30-minute"></span>| 60 minute size: <span class="60-minute">
</span>
</div> </div>
</div> </div>
</div>
<div id="bottom"> <div id="bottom">
<div id="profileContainer"> <div id="profileContainer">
<div id="profileHeader"> <div id="profileHeader">
<a id="addItem" href="@Url.Action("AddProfile", "Settings")"> <a id="addItem" href="@Url.Action("AddProfile", "Settings")">
<img src="../../Content/Images/Plus.png" alt="Add New Profile" width="20px" height="20px" /> <img src="../../Content/Images/Plus.png" alt="Add New Profile" width="20px" height="20px" />
Add New Profile</a> Add New Profile</a>
</div> </div>
<div id="profiles"> <div id="profiles">
@foreach (var item in (List<QualityProfile>)ViewData["Profiles"]) @foreach (var item in (List<QualityProfile>)ViewData["Profiles"])
{ {
Html.RenderAction("GetQualityProfileView", item); Html.RenderAction("GetQualityProfileView", item);
} }
</div>
</div> </div>
<br />
<button type="submit" id="save_button" disabled="disabled">Save</button>
</div> </div>
} <br />
</div> <button type="submit" id="save_button" disabled="disabled">
} Save</button>
</div>
}
</div>
@section Scripts{ @section Scripts{
<script src="../../Scripts/MicrosoftAjax.js" type="text/javascript"></script> <script src="../../Scripts/MicrosoftAjax.js" type="text/javascript"></script>
<script src="../../Scripts/jquery.validate.unobtrusive.min.js"type="text/javascript"></script>
<script src="../../Scripts/NzbDrone/settingsForm.js" type="text/javascript"></script> <script src="../../Scripts/NzbDrone/settingsForm.js" type="text/javascript"></script>
<script type="text/javascript"> <script type="text/javascript">
var deleteQualityProfileUrl = '@Url.Action("DeleteQualityProfile", "Settings")'; var deleteQualityProfileUrl = '@Url.Action("DeleteQualityProfile", "Settings")';
@ -190,31 +189,31 @@ Settings > Quality
}); });
} }
}); });
var sliderOptions = { var sliderOptions = {
min: 0, min: 0,
max: 200, max: 200,
value: 0, value: 0,
step: 1, step: 1,
create: function( event, ui ) { create: function (event, ui) {
var startingValue = $(this).siblings('.slider-value').val(); var startingValue = $(this).siblings('.slider-value').val();
$(this).siblings('.30-minute').text(startingValue * 30); $(this).siblings('.30-minute').text(startingValue * 30);
$(this).siblings('.60-minute').text(startingValue * 60); $(this).siblings('.60-minute').text(startingValue * 60);
}, },
slide: function( event, ui ) { slide: function (event, ui) {
$(this).siblings('.slider-value').val(ui.value); $(this).siblings('.slider-value').val(ui.value);
$(this).siblings('.30-minute').text(ui.value * 30); $(this).siblings('.30-minute').text(ui.value * 30);
$(this).siblings('.60-minute').text(ui.value * 60); $(this).siblings('.60-minute').text(ui.value * 60);
} }
}; };
function setupSliders() { function setupSliders() {
$(".slider").each(function() { $(".slider").each(function () {
var localOptions = sliderOptions; var localOptions = sliderOptions;
localOptions["value"] = $(this).siblings('.slider-value').val(); localOptions["value"] = $(this).siblings('.slider-value').val();
$(this).empty().slider(localOptions); $(this).empty().slider(localOptions);
}); });
} }
</script> </script>
} }

View File

@ -1,78 +1,67 @@
@using NzbDrone.Web.Helpers; @using NzbDrone.Web.Helpers;
@model NzbDrone.Web.Models.SabnzbdSettingsModel @model NzbDrone.Web.Models.SabnzbdSettingsModel
@{ Layout = "~/Views/Shared/_RefrenceLayout.cshtml"; }
@section HeaderContent{ @section HeaderContent{
<link rel="stylesheet" type="text/css" href="../../Content/Settings.css" /> <link rel="stylesheet" type="text/css" href="../../Content/Settings.css" />
} }
<div id="stylized">
@section TitleContent{
Settings > Sabnzbd
}
@section ActionMenu{
@{Html.RenderPartial("SubMenu");}
}
@section MainContent{
<div id="stylized">
@using (Html.BeginForm("SaveSabnzbd", "Settings", FormMethod.Post, new { id = "form", name = "form", @class = "settingsForm" })) @using (Html.BeginForm("SaveSabnzbd", "Settings", FormMethod.Post, new { id = "form", name = "form", @class = "settingsForm" }))
{ {
<label class="labelClass">Auto-Configure <label class="labelClass">
<span class="small">If access to SABnzbd doesn't require a username + password and is on the same system as NzbDrone, you can auto-configure it</span> Auto-Configure <span class="small">If access to SABnzbd doesn't require a username +
password and is on the same system as NzbDrone, you can auto-configure it</span>
</label> </label>
<input type="button" onclick="autoConfigureSab(); return false;" value="Auto-Configure" class="inputClass"/> <input type="button" onclick="autoConfigureSab(); return false;" value="Auto-Configure"
class="inputClass" />
<label class="labelClass">@Html.LabelFor(m => m.SabHost) <label class="labelClass">@Html.LabelFor(m => m.SabHost)
<span class="small">@Html.DescriptionFor(m => m.SabHost)</span> <span class="small">@Html.DescriptionFor(m => m.SabHost)</span>
</label> </label>
@Html.TextBoxFor(m => m.SabHost, new { @class = "inputClass" }) @Html.TextBoxFor(m => m.SabHost, new { @class = "inputClass" })
<label class="labelClass">@Html.LabelFor(m => m.SabPort) <label class="labelClass">@Html.LabelFor(m => m.SabPort)
<span class="small">@Html.DescriptionFor(m => m.SabPort)</span> <span class="small">@Html.DescriptionFor(m => m.SabPort)</span>
</label> </label>
@Html.TextBoxFor(m => m.SabPort, new { @class = "inputClass" }) @Html.TextBoxFor(m => m.SabPort, new { @class = "inputClass" })
<label class="labelClass">@Html.LabelFor(m => m.SabApiKey) <label class="labelClass">@Html.LabelFor(m => m.SabApiKey)
<span class="small">@Html.DescriptionFor(m => m.SabApiKey)</span> <span class="small">@Html.DescriptionFor(m => m.SabApiKey)</span>
</label> </label>
@Html.TextBoxFor(m => m.SabApiKey, new { @class = "inputClass" }) @Html.TextBoxFor(m => m.SabApiKey, new { @class = "inputClass" })
<label class="labelClass">@Html.LabelFor(m => m.SabUsername) <label class="labelClass">@Html.LabelFor(m => m.SabUsername)
<span class="small">@Html.DescriptionFor(m => m.SabUsername)</span> <span class="small">@Html.DescriptionFor(m => m.SabUsername)</span>
</label> </label>
@Html.TextBoxFor(m => m.SabUsername, new { @class = "inputClass" }) @Html.TextBoxFor(m => m.SabUsername, new { @class = "inputClass" })
<label class="labelClass">@Html.LabelFor(m => m.SabPassword) <label class="labelClass">@Html.LabelFor(m => m.SabPassword)
<span class="small">@Html.DescriptionFor(m => m.SabPassword)</span> <span class="small">@Html.DescriptionFor(m => m.SabPassword)</span>
</label> </label>
@Html.TextBoxFor(m => m.SabPassword, new { @class = "inputClass" }) @Html.TextBoxFor(m => m.SabPassword, new { @class = "inputClass" })
<label class="labelClass">@Html.LabelFor(m => m.SabTvCategory) <label class="labelClass">@Html.LabelFor(m => m.SabTvCategory)
<span class="small">@Html.DescriptionFor(m => m.SabTvCategory)</span> <span class="small">@Html.DescriptionFor(m => m.SabTvCategory)</span>
</label> </label>
@Html.DropDownListFor(m => m.SabTvCategory, Model.SabTvCategorySelectList, new { @class = "inputClass selectClass" }) @Html.DropDownListFor(m => m.SabTvCategory, Model.SabTvCategorySelectList, new { @class = "inputClass selectClass" })
<label class="labelClass">@Html.LabelFor(m => m.SabTvPriority) <label class="labelClass">@Html.LabelFor(m => m.SabTvPriority)
<span class="small">@Html.DescriptionFor(m => m.SabTvPriority)</span> <span class="small">@Html.DescriptionFor(m => m.SabTvPriority)</span>
</label> </label>
@Html.DropDownListFor(m => m.SabTvPriority, Model.PrioritySelectList, new { @class = "inputClass selectClass" }) @Html.DropDownListFor(m => m.SabTvPriority, Model.PrioritySelectList, new { @class = "inputClass selectClass" })
<label class="labelClass">@Html.LabelFor(m => m.SabDropDirectory) <label class="labelClass">@Html.LabelFor(m => m.SabDropDirectory)
<span class="small">@Html.DescriptionFor(m => m.SabDropDirectory)</span> <span class="small">@Html.DescriptionFor(m => m.SabDropDirectory)</span>
</label> </label>
@Html.TextBoxFor(m => m.SabDropDirectory, new { @class = "inputClass folderLookup" }) @Html.TextBoxFor(m => m.SabDropDirectory, new { @class = "inputClass folderLookup" })
<button type="submit" id="save_button" disabled="disabled">Save</button> <button type="submit" id="save_button" disabled="disabled">
Save</button>
} }
</div> </div>
<div id="result" class="hiddenResult">
<div id="result" class="hiddenResult"></div> </div>
}
@section Scripts{ @section Scripts{
<script src="../../Scripts/NzbDrone/settingsForm.js" type="text/javascript"></script> <script src="../../Scripts/NzbDrone/settingsForm.js" type="text/javascript"></script>
<script type="text/javascript"> <script type="text/javascript">
var autoConfigureSabUrl = '@Url.Action("AutoConfigureSab", "Settings")'; var autoConfigureSabUrl = '@Url.Action("AutoConfigureSab", "Settings")';

View File

@ -1,42 +1,33 @@
@using NzbDrone.Web.Helpers @using NzbDrone.Web.Helpers
@model NzbDrone.Web.Models.SystemSettingsModel @model NzbDrone.Web.Models.SystemSettingsModel
@{ Layout = "~/Views/Shared/_RefrenceLayout.cshtml"; }
@section HeaderContent{ @section HeaderContent{
<link rel="stylesheet" type="text/css" href="../../Content/Settings.css" /> <link rel="stylesheet" type="text/css" href="../../Content/Settings.css" />
} }
@section TitleContent{
Settings > System
}
@section ActionMenu{
@{Html.RenderPartial("SubMenu");}
}
@section MainContent{
<div id="stylized"> <div id="stylized">
@using (Html.BeginForm("SaveSystem", "Settings", FormMethod.Post, new { id = "form", name = "form", @class = "settingsForm" })) @using (Html.BeginForm("SaveSystem", "Settings", FormMethod.Post, new { id = "form", name = "form", @class = "settingsForm" }))
{ {
@Html.ValidationSummary(true, "Unable to save your settings. Please correct the errors and try again.") @Html.ValidationSummary(true, "Unable to save your settings. Please correct the errors and try again.")
<label class="labelClass">@Html.LabelFor(m => m.LaunchBrowser) <label class="labelClass">@Html.LabelFor(m => m.LaunchBrowser)
<span class="small">@Html.DescriptionFor(m => m.LaunchBrowser)</span> <span class="small">@Html.DescriptionFor(m => m.LaunchBrowser)</span>
</label> </label>
@Html.CheckBoxFor(m => m.LaunchBrowser, new { @class = "inputClass checkClass" }) @Html.CheckBoxFor(m => m.LaunchBrowser, new { @class = "inputClass checkClass" })
<label class="labelClass">@Html.LabelFor(m => m.Port) <label class="labelClass">@Html.LabelFor(m => m.Port)
<span class="small">@Html.DescriptionFor(m => m.Port)</span> <span class="small">@Html.DescriptionFor(m => m.Port)</span>
</label> </label>
@Html.TextBoxFor(m => m.Port, new { @class = "inputClass" }) @Html.TextBoxFor(m => m.Port, new { @class = "inputClass" })
<label class="labelClass">@Html.LabelFor(m => m.AuthenticationType) <label class="labelClass">@Html.LabelFor(m => m.AuthenticationType)
<span class="small">@Html.DescriptionFor(m => m.AuthenticationType)</span> <span class="small">@Html.DescriptionFor(m => m.AuthenticationType)</span>
</label> </label>
@Html.DropDownListFor(m => m.AuthenticationType, Model.AuthTypeSelectList, new { @class = "inputClass" }) @Html.DropDownListFor(m => m.AuthenticationType, Model.AuthTypeSelectList, new { @class = "inputClass" })
<button type="submit" id="save_button" disabled="disabled">Save</button> <button type="submit" id="save_button" disabled="disabled">
Save</button>
} }
</div> </div>
}
@section Scripts{ @section Scripts{
<script src="../../Scripts/NzbDrone/settingsForm.js" type="text/javascript"></script> <script src="../../Scripts/NzbDrone/settingsForm.js" type="text/javascript"></script>
} }

View File

@ -1,24 +1,13 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
@{ Layout = "~/Views/Shared/_RefrenceLayout.cshtml"; }
@using NzbDrone.Common @using NzbDrone.Common
@using NzbDrone.Web.Helpers @using NzbDrone.Web.Helpers
@using Telerik.Web.Mvc.UI @section HeaderContent
<html xmlns="http://www.w3.org/1999/xhtml"> {
<head runat="server">
<link rel="SHORTCUT ICON" href="../../favicon.ico" />
<title>NzbDrone</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<link type="text/css" rel="stylesheet" href="../../Content/2011.3.1115/telerik.common.min.css" />
<link type="text/css" rel="stylesheet" href="../../Content/2011.3.1115/telerik.sitefinity.min.css" />
<link type="text/css" rel="stylesheet" href="../../Content/jQueryUI/jquery-ui-1.8.16.custom.css" />
<link type="text/css" rel="stylesheet" href="../../Content/jquery.gritter.css" />
<link type="text/css" rel="stylesheet" href="../../Content/NzbDrone.css" />
<link type="text/css" rel="stylesheet" href="../../Content/ActionButton.css" />
<link type="text/css" rel="stylesheet" href="../../Content/overrides.css" />
<link type="text/css" rel="stylesheet" href="../../Content/Menu.css" />
<link type="text/css" rel="stylesheet" href="../../Content/Messages.css" />
@MvcMiniProfiler.MiniProfiler.RenderIncludes() @MvcMiniProfiler.MiniProfiler.RenderIncludes()
@RenderSection("HeaderContent", required: false) @RenderSection("HeaderContent", required: false)
</head> }
<body> <body>
<div id="centered"> <div id="centered">
<div id="menu"> <div id="menu">
@ -30,14 +19,13 @@
@MvcHtmlString.Create(Html.CurrentActionLink("Settings", "Index", "Settings")) @MvcHtmlString.Create(Html.CurrentActionLink("Settings", "Index", "Settings"))
@MvcHtmlString.Create(Html.CurrentActionLink("Logs", "Index", "Log")) @MvcHtmlString.Create(Html.CurrentActionLink("Logs", "Index", "Log"))
</ul> </ul>
<input id="localSeriesLookup" type="text"/> <input id="localSeriesLookup" type="text" />
</div> </div>
<div id="logo"> <div id="logo">
@RenderSection("TitleContent", required: false) @RenderSection("TitleContent", required: false)
</div> </div>
<div id="page"> <div id="page">
@RenderSection("ActionMenu", required: false) @RenderSection("ActionMenu", required: false)
@RenderSection("MainContent", required: false)
@RenderBody() @RenderBody()
</div> </div>
<div id="footer"> <div id="footer">
@ -47,22 +35,10 @@
<div id="msgBox"> <div id="msgBox">
<span id="msgText">background notification</span> <span id="msgText">background notification</span>
</div> </div>
@(Html.Telerik().ScriptRegistrar().jQuery(true)) @section Scripts
<script type="text/javascript" src="../../Scripts/jquery-ui-1.8.16.min.js"></script> {
<script type="text/javascript" src="../../Scripts/MicrosoftAjax.js"></script>
<script type="text/javascript" src="../../Scripts/MicrosoftMvcAjax.js"></script>
<script type="text/javascript" src="../../Scripts/jquery.gritter.js"></script>
<script type="text/javascript" src="../../Scripts/jquery.form.js"></script>
<script type="text/javascript" src="../../Scripts/jquery-tgc-countdown-1.0.js"></script>
<script type="text/javascript" src="../../Scripts/jquery.watermark.min.js"></script>
<script type="text/javascript" src="../../Scripts/jquery.hotkeys.js"></script>
<script type="text/javascript" src="../../Scripts/doTimeout.js"></script>
<script type="text/javascript" src="../../Scripts/NzbDrone/episodeSearch.js"></script>
<script type="text/javascript" src="../../Scripts/NzbDrone/AutoComplete.js"></script>
<script type="text/javascript" src="../../Scripts/NzbDrone/LocalSearch.js"></script>
<script type="text/javascript" src="../../Scripts/NzbDrone/Notification.js"></script>
@RenderSection("Scripts", required: false) @RenderSection("Scripts", required: false)
@if (EnviromentProvider.IsProduction) @if (EnviromentProvider.IsProduction)
{ {
<script type="text/javascript"> <script type="text/javascript">
var _gaq = _gaq || []; var _gaq = _gaq || [];
@ -78,5 +54,4 @@
})(); })();
</script> </script>
} }
</body> }
</html>

View File

@ -0,0 +1,37 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
@using Telerik.Web.Mvc.UI
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<link rel="SHORTCUT ICON" href="../../favicon.ico" />
<title>NzbDrone</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<link type="text/css" rel="stylesheet" href="../../Content/2011.3.1115/telerik.common.min.css" />
<link type="text/css" rel="stylesheet" href="../../Content/2011.3.1115/telerik.sitefinity.min.css" />
<link type="text/css" rel="stylesheet" href="../../Content/jQueryUI/jquery-ui-1.8.16.custom.css" />
<link type="text/css" rel="stylesheet" href="../../Content/jquery.gritter.css" />
<link type="text/css" rel="stylesheet" href="../../Content/NzbDrone.css" />
<link type="text/css" rel="stylesheet" href="../../Content/ActionButton.css" />
<link type="text/css" rel="stylesheet" href="../../Content/overrides.css" />
<link type="text/css" rel="stylesheet" href="../../Content/Menu.css" />
<link type="text/css" rel="stylesheet" href="../../Content/Messages.css" />
@RenderSection("HeaderContent", required: false)
</head>
<body>
@RenderBody()
@(Html.Telerik().ScriptRegistrar().jQuery(true))
<script type="text/javascript" src="../../Scripts/jquery-ui-1.8.16.min.js"></script>
<script type="text/javascript" src="../../Scripts/MicrosoftAjax.js"></script>
<script type="text/javascript" src="../../Scripts/MicrosoftMvcAjax.js"></script>
<script type="text/javascript" src="../../Scripts/jquery.gritter.js"></script>
<script type="text/javascript" src="../../Scripts/jquery.form.js"></script>
<script type="text/javascript" src="../../Scripts/jquery-tgc-countdown-1.0.js"></script>
<script type="text/javascript" src="../../Scripts/jquery.watermark.min.js"></script>
<script type="text/javascript" src="../../Scripts/jquery.hotkeys.js"></script>
<script type="text/javascript" src="../../Scripts/doTimeout.js"></script>
<script type="text/javascript" src="../../Scripts/NzbDrone/episodeSearch.js"></script>
<script type="text/javascript" src="../../Scripts/NzbDrone/AutoComplete.js"></script>
<script type="text/javascript" src="../../Scripts/NzbDrone/LocalSearch.js"></script>
<script type="text/javascript" src="../../Scripts/NzbDrone/Notification.js"></script>
@RenderSection("Scripts", required: false)
</body>
</html>