Add Private/Public indicator

This commit is contained in:
Thomas Hounsell 2015-04-11 17:39:45 +01:00
parent e486908b2c
commit 36514dc2ed
2 changed files with 19 additions and 8 deletions

View File

@ -11,14 +11,21 @@
{
<div class="col-sm-3">
<h3 class="build-group-title">@build.Lab</h3>
@if (build.BuildTime.HasValue)
{
<p>
<p>
@if (build.BuildTime.HasValue)
{
<span title="@build.BuildTime.Value.Humanize()"><i class="fa fa-calendar fa-fw"></i> @build.BuildTime.Value.ToString("d MMMM yyyy")</span><br />
<span title="@build.BuildTime.Value.Humanize()"><i class="fa fa-clock-o fa-fw"></i> @build.BuildTime.Value.ToString("h:mm tt")</span>
</p>
}
<span title="@build.BuildTime.Value.Humanize()"><i class="fa fa-clock-o fa-fw"></i> @build.BuildTime.Value.ToString("h:mm tt")</span><br />
}
@if (build.IsLeaked)
{
<span class="label label-success label-build-status">Public</span>
}
else
{
<span class="label label-danger label-build-status">Private</span>
}
</p>
<p>
<a href="@Url.Action("viewBuild", new { id = build.Id })" class="btn btn-info btn-xs">Info</a>
<a href="#" class="btn btn-primary btn-xs">Edit</a>
@ -27,4 +34,3 @@
</div>
}
</div>

View File

@ -34,6 +34,11 @@ h1
margin-left: 0.3em;
}
.label-build-status
{
padding-bottom: 0;
}
.field-validation-error
{
color: #ff4136;