mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-10-30 23:42:33 +01:00
New: Added indexer status summary to Settings -> Indexer.
This commit is contained in:
parent
9c28e1b22d
commit
ac58d84a78
@ -15,21 +15,49 @@
|
||||
padding-top: 20px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.indexerStatusContainer {
|
||||
margin-left: 12px;
|
||||
margin-bottom: -4px;
|
||||
}
|
||||
|
||||
.indexerStatus {
|
||||
padding: 6px 10px;
|
||||
display: inline-block;
|
||||
color: white;
|
||||
|
||||
margin: 3px;
|
||||
}
|
||||
|
||||
.enabled {
|
||||
background-color: #065EFE;
|
||||
}
|
||||
|
||||
.disabled {
|
||||
background-color: #616161;
|
||||
}
|
||||
</style>
|
||||
}
|
||||
<div class="infoBox">
|
||||
RSS feeds are checked every 25 minutes for new episodes.</div>
|
||||
|
||||
<div class="indexerStatusContainer">
|
||||
<div class="indexerStatus disabled" id="nzbsOrgStatus" title="Enabled/Disabled">Nzbs.Org</div>
|
||||
<div class="indexerStatus disabled" id="nzbMatrixStatus" title="Enabled/Disabled">NZBMatrix</div>
|
||||
<div class="indexerStatus disabled" id="nzbsRusStatus" title="Enabled/Disabled">NZBsRus</div>
|
||||
<div class="indexerStatus disabled" id="newzbinStatus" title="Enabled/Disabled">Newzbin</div>
|
||||
<div class="indexerStatus disabled" id="newznabStatus" title="Enabled/Disabled">Newznab</div>
|
||||
</div>
|
||||
<div id="stylized">
|
||||
@using (Html.BeginForm("SaveIndexers", "Settings", FormMethod.Post, new { id = "IndexersForm", name = "IndexersForm", @class = "settingsForm" }))
|
||||
{
|
||||
<div class="jquery-accordion">
|
||||
<h3>
|
||||
<a href="#">NZBs.org</a></h3>
|
||||
<h3><a href="#">NZBs.org</a></h3>
|
||||
<div class="indexerPanel">
|
||||
<label class="labelClass">
|
||||
Enable <span class="small">@Html.DescriptionFor(m => m.NzbsOrgEnabled)</span>
|
||||
</label>
|
||||
@Html.CheckBoxFor(m => m.NzbsOrgEnabled, new { @class = "inputClass checkClass" })
|
||||
@Html.CheckBoxFor(m => m.NzbsOrgEnabled, new { @class = "inputClass checkClass enabledCheck" })
|
||||
<label class="labelClass">@Html.LabelFor(m => m.NzbsOrgUId)
|
||||
<span class="small">@Html.DescriptionFor(m => m.NzbsOrgUId)</span>
|
||||
</label>
|
||||
@ -39,13 +67,13 @@
|
||||
</label>
|
||||
@Html.TextBoxFor(m => m.NzbsOrgHash, new { @class = "inputClass" })
|
||||
</div>
|
||||
<h3>
|
||||
<a href="#">NZBMatrix</a></h3>
|
||||
|
||||
<h3><a href="#">NZBMatrix</a></h3>
|
||||
<div class="indexerPanel">
|
||||
<label class="labelClass">
|
||||
Enable <span class="small">@Html.DescriptionFor(m => m.NzbMatrixEnabled)</span>
|
||||
</label>
|
||||
@Html.CheckBoxFor(m => m.NzbMatrixEnabled, new { @class = "inputClass checkClass" })
|
||||
@Html.CheckBoxFor(m => m.NzbMatrixEnabled, new { @class = "inputClass checkClass enabledCheck" })
|
||||
<label class="labelClass">@Html.LabelFor(m => m.NzbMatrixUsername)
|
||||
<span class="small">@Html.DescriptionFor(m => m.NzbMatrixUsername)</span>
|
||||
</label>
|
||||
@ -55,14 +83,14 @@
|
||||
</label>
|
||||
@Html.TextBoxFor(m => m.NzbMatrixApiKey, new { @class = "inputClass" })
|
||||
</div>
|
||||
<h3>
|
||||
<a href="#">NZBsRus</a></h3>
|
||||
|
||||
<h3><a href="#">NZBsRus</a></h3>
|
||||
<div class="indexerPanel">
|
||||
<div class="warningBox">NZBsRus does not support backlog searching</div>
|
||||
<label class="labelClass">
|
||||
Enable <span class="small">@Html.DescriptionFor(m => m.NzbsRUsEnabled)</span>
|
||||
</label>
|
||||
@Html.CheckBoxFor(m => m.NzbsRUsEnabled, new { @class = "inputClass checkClass" })
|
||||
@Html.CheckBoxFor(m => m.NzbsRUsEnabled, new { @class = "inputClass checkClass enabledCheck" })
|
||||
<label class="labelClass">@Html.LabelFor(m => m.NzbsrusUId)
|
||||
<span class="small">@Html.DescriptionFor(m => m.NzbsrusUId)</span>
|
||||
</label>
|
||||
@ -72,13 +100,13 @@
|
||||
</label>
|
||||
@Html.TextBoxFor(m => m.NzbsrusHash, new { @class = "inputClass" })
|
||||
</div>
|
||||
<h3>
|
||||
<a href="#">Newzbin</a></h3>
|
||||
|
||||
<h3><a href="#">Newzbin</a></h3>
|
||||
<div class="indexerPanel">
|
||||
<label class="labelClass">
|
||||
Enable <span class="small">@Html.DescriptionFor(m => m.NewzbinEnabled)</span>
|
||||
</label>
|
||||
@Html.CheckBoxFor(m => m.NewzbinEnabled, new { @class = "inputClass checkClass" })
|
||||
@Html.CheckBoxFor(m => m.NewzbinEnabled, new { @class = "inputClass checkClass enabledCheck" })
|
||||
<label class="labelClass">@Html.LabelFor(m => m.NewzbinUsername)
|
||||
<span class="small">@Html.DescriptionFor(m => m.NewzbinUsername)</span>
|
||||
</label>
|
||||
@ -88,13 +116,13 @@
|
||||
</label>
|
||||
@Html.TextBoxFor(m => m.NewzbinPassword, new { @class = "inputClass", type = "password" })
|
||||
</div>
|
||||
<h3>
|
||||
<a href="#">Newznab</a></h3>
|
||||
|
||||
<h3><a href="#">Newznab</a></h3>
|
||||
<div class="indexerPanel">
|
||||
<label class="labelClass">
|
||||
Enable <span class="small">@Html.DescriptionFor(m => m.NewznabEnabled)</span>
|
||||
</label>
|
||||
@Html.CheckBoxFor(m => m.NewznabEnabled, new { @class = "inputClass checkClass" })
|
||||
@Html.CheckBoxFor(m => m.NewznabEnabled, new { @class = "inputClass checkClass enabledCheck" })
|
||||
<br />
|
||||
<br />
|
||||
<p>
|
||||
@ -127,6 +155,42 @@
|
||||
</div>
|
||||
@section Scripts{
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
if ($('#NzbsOrgEnabled').attr('checked'))
|
||||
$('#nzbsOrgStatus').toggleClass('enabled disabled');
|
||||
|
||||
if ($('#NzbMatrixEnabled').attr('checked'))
|
||||
$('#nzbMatrixStatus').toggleClass('enabled disabled');
|
||||
|
||||
if ($('#NzbsRUsEnabled').attr('checked'))
|
||||
$('#nzbsRusStatus').toggleClass('enabled disabled');
|
||||
|
||||
if ($('#NewzbinEnabled').attr('checked'))
|
||||
$('#newzbinStatus').toggleClass('enabled disabled');
|
||||
|
||||
if ($('#NewznabEnabled').attr('checked'))
|
||||
$('#newznabStatus').toggleClass('enabled disabled');
|
||||
});
|
||||
|
||||
$('.enabledCheck').on('change', function () {
|
||||
var id = $(this).attr('id');
|
||||
|
||||
if (id == 'NzbsOrgEnabled')
|
||||
$('#nzbsOrgStatus').toggleClass('enabled disabled');
|
||||
|
||||
if (id == 'NzbMatrixEnabled')
|
||||
$('#nzbMatrixStatus').toggleClass('enabled disabled');
|
||||
|
||||
if (id == 'NzbsRUsEnabled')
|
||||
$('#nzbsRusStatus').toggleClass('enabled disabled');
|
||||
|
||||
if (id == 'NewzbinEnabled')
|
||||
$('#newzbinStatus').toggleClass('enabled disabled');
|
||||
|
||||
if (id == 'NewznabEnabled')
|
||||
$('#newznabStatus').toggleClass('enabled disabled');
|
||||
});
|
||||
|
||||
$("#addItem").live('click', function () {
|
||||
$.ajax({
|
||||
url: this.href,
|
||||
@ -170,6 +234,6 @@
|
||||
var profileId = getProviderId(this);
|
||||
$("#title_" + profileId).text(value);
|
||||
}).keyup();
|
||||
|
||||
|
||||
</script>
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user