mirror of
https://gitlab.com/buildfeed/BuildFeed.git
synced 2024-03-22 21:10:34 +08:00
Add Private/Public indicator
This commit is contained in:
parent
e486908b2c
commit
36514dc2ed
|
@ -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>
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user