Font-Awesomed System

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

@ -27,7 +27,7 @@ namespace NzbDrone.Core.Providers
{
var series = _database.Fetch<Series>();
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();
stats.SeriesTotal = series.Count;
@ -37,7 +37,7 @@ namespace NzbDrone.Core.Providers
stats.EpisodesOnDisk = episodes.Count(e => e.EpisodeFileId > 0);
stats.EpisodesMissing = episodes.Count(e => e.Ignored == false && e.EpisodeFileId == 0);
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;
}

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

@ -2,7 +2,6 @@
@model string
@{ViewBag.Title = "Jobs";}
<div class="grid-container">
<table id="jobGrid" class="dataTablesGrid hidden-grid no-details">
<thead>
@ -68,7 +67,7 @@
if (!row.aData["Enable"])
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"]);
return link;
}

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

Loading…
Cancel
Save