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"> <div class="col-sm-3">
<h3 class="build-group-title">@build.Lab</h3> <h3 class="build-group-title">@build.Lab</h3>
<p>
@if (build.BuildTime.HasValue) @if (build.BuildTime.HasValue)
{ {
<p>
<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-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> <span title="@build.BuildTime.Value.Humanize()"><i class="fa fa-clock-o fa-fw"></i> @build.BuildTime.Value.ToString("h:mm tt")</span><br />
</p>
} }
@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> <p>
<a href="@Url.Action("viewBuild", new { id = build.Id })" class="btn btn-info btn-xs">Info</a> <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> <a href="#" class="btn btn-primary btn-xs">Edit</a>
@ -27,4 +34,3 @@
</div> </div>
} }
</div> </div>

View File

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