Font-Awesomed System

pull/3113/head
Mark McDowall 12 years ago
parent b5bdda1c63
commit 9a006fc702

@ -27,7 +27,7 @@ namespace NzbDrone.Core.Providers
{ {
var series = _database.Fetch<Series>(); var series = _database.Fetch<Series>();
var episodes = _database.Fetch<Episode>(); var episodes = _database.Fetch<Episode>();
var history = _database.Fetch<History>("WHERE Date <= @0", DateTime.Today.AddDays(-30)); var history = _database.Fetch<History>("WHERE Date >= @0", DateTime.Today.AddDays(-30));
var stats = new StatsModel(); var stats = new StatsModel();
stats.SeriesTotal = series.Count; stats.SeriesTotal = series.Count;
@ -37,7 +37,7 @@ namespace NzbDrone.Core.Providers
stats.EpisodesOnDisk = episodes.Count(e => e.EpisodeFileId > 0); stats.EpisodesOnDisk = episodes.Count(e => e.EpisodeFileId > 0);
stats.EpisodesMissing = episodes.Count(e => e.Ignored == false && e.EpisodeFileId == 0); stats.EpisodesMissing = episodes.Count(e => e.Ignored == false && e.EpisodeFileId == 0);
stats.DownloadedLastMonth = history.Count; stats.DownloadedLastMonth = history.Count;
stats.DownloadLastWeek = history.Count(h => h.Date <= DateTime.Today.AddDays(7)); stats.DownloadLastWeek = history.Count(h => h.Date >= DateTime.Today.AddDays(-7));
return stats; return stats;
} }

@ -58,6 +58,10 @@
display: none; display: none;
} }
.dataTable tr {
line-height: 25px;
}
/* Colour alternating rows */ /* Colour alternating rows */
.seriesTable .alt-row .seriesTable .alt-row
{ {

@ -2,7 +2,6 @@
@model string @model string
@{ViewBag.Title = "Jobs";} @{ViewBag.Title = "Jobs";}
<div class="grid-container"> <div class="grid-container">
<table id="jobGrid" class="dataTablesGrid hidden-grid no-details"> <table id="jobGrid" class="dataTablesGrid hidden-grid no-details">
<thead> <thead>
@ -68,7 +67,7 @@
if (!row.aData["Enable"]) if (!row.aData["Enable"])
return ""; return "";
var link = '@Ajax.ImageActionLink("../../Content/Images/Gear.png", new { title = "Run Job", alt = "Job", @class = "gridAction" }, "RunJob", "System", new { typeName = "REPLACE" }, null, null)'; var link = '@Ajax.IconActionLink("icon-cog gridAction", "", "RunJob", "System", new { typeName = "REPLACE" }, null, new { title = "Run Job" })';
link = link.replace("REPLACE", row.aData["TypeName"]); link = link.replace("REPLACE", row.aData["TypeName"]);
return link; return link;
} }

@ -14,8 +14,6 @@
</style> </style>
} }
<h2>Stats</h2>
@Html.LabelFor(m => m.SeriesTotal): @Html.LabelFor(m => m.SeriesTotal):
@Html.DisplayTextFor(m => m.SeriesTotal) @Html.DisplayTextFor(m => m.SeriesTotal)
<br/> <br/>

Loading…
Cancel
Save