mirror of
https://gitlab.com/buildfeed/BuildFeed.git
synced 2024-03-22 21:10:34 +08:00
30 lines
1.1 KiB
Plaintext
30 lines
1.1 KiB
Plaintext
@model IEnumerable<IGrouping<BuildFeed.Models.BuildGroup, BuildFeed.Models.Build>>
|
|
@using Humanizer;
|
|
@{
|
|
ViewBag.Title = "BuildFeed";
|
|
}
|
|
|
|
<div class="row">
|
|
@foreach (var group in Model)
|
|
{
|
|
<div class="col-sm-2">
|
|
<h3 class="build-group-title"><a href="#"><span class="icon"><i class="fa fa-plus-square"></i></span> @group.Key.ToString()</a></h3>
|
|
<p>
|
|
@if (group.Any(k => k.BuildTime.HasValue))
|
|
{
|
|
var maxDate = group.Max(k => k.BuildTime).Value;
|
|
if (maxDate.AddDays(28) > DateTime.Now)
|
|
{
|
|
<span title="@maxDate.ToString("dd MMMM yyyy")"><i class="fa fa-calendar fa-fw"></i> @maxDate.Humanize()</span><br />
|
|
}
|
|
else
|
|
{
|
|
<span title="@maxDate.Humanize()"><i class="fa fa-calendar fa-fw"></i> @maxDate.ToString("dd MMMM yyyy")</span><br />
|
|
}
|
|
}
|
|
<i class="fa fa-server fa-fw"></i> @group.Count().ToString() builds
|
|
</p>
|
|
</div>
|
|
}
|
|
</div>
|