mirror of
https://github.com/Sonarr/Sonarr
synced 2024-12-27 02:07:41 +00:00
Merge remote-tracking branch 'origin/master' into metadata
This commit is contained in:
commit
8263ab1d0f
2 changed files with 7 additions and 2 deletions
|
@ -5,6 +5,11 @@ namespace NzbDrone.Web.Models
|
||||||
{
|
{
|
||||||
public class SearchItemModel
|
public class SearchItemModel
|
||||||
{
|
{
|
||||||
|
public SearchItemModel()
|
||||||
|
{
|
||||||
|
Details = "";
|
||||||
|
}
|
||||||
|
|
||||||
public int Id { get; set; }
|
public int Id { get; set; }
|
||||||
public string ReportTitle { get; set; }
|
public string ReportTitle { get; set; }
|
||||||
public string Indexer { get; set; }
|
public string Indexer { get; set; }
|
||||||
|
|
|
@ -21,11 +21,11 @@
|
||||||
.AddColumn(new Column().DisplayAndSort("Quality", "QualityInt").Title("Quality").Width("80px"))
|
.AddColumn(new Column().DisplayAndSort("Quality", "QualityInt").Title("Quality").Width("80px"))
|
||||||
.AddColumn(new Column().DataProperty("SearchError").Title("Error"))
|
.AddColumn(new Column().DataProperty("SearchError").Title("Error"))
|
||||||
.AddColumn(new Column().DataProperty("return actionColumn(source, type, val);", true).Sortable(false).Searchable(false))
|
.AddColumn(new Column().DataProperty("return actionColumn(source, type, val);", true).Sortable(false).Searchable(false))
|
||||||
.AddColumn(new Column().DataProperty("Details").RenderFunction("return getDetails(row, val);").Visible(false))
|
.AddColumn(new Column().DataProperty("Details").Sortable(false).Visible(false).RenderFunction("return details(row);"))
|
||||||
.AddSorting(3, SortDirection.Desc))
|
.AddSorting(3, SortDirection.Desc))
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
function getDetails(row, val) {
|
function details(row) {
|
||||||
var result = "<a href=\"" + row.aData["NzbInfoUrl"] + "\">Nzb Info</a><br/>" +
|
var result = "<a href=\"" + row.aData["NzbInfoUrl"] + "\">Nzb Info</a><br/>" +
|
||||||
"<b>Proper: </b>" + row.aData["Proper"] + " <br/>" +
|
"<b>Proper: </b>" + row.aData["Proper"] + " <br/>" +
|
||||||
"<b>Age: </b>" + row.aData["Age"] + " days<br/>" +
|
"<b>Age: </b>" + row.aData["Age"] + " days<br/>" +
|
||||||
|
|
Loading…
Reference in a new issue