2021-02-18 21:30:13 -05:00
|
|
|
@model BirdsiteLive.Component.NodeInfoViewModel
|
2021-02-17 20:49:17 -05:00
|
|
|
|
|
|
|
<div>
|
2021-02-18 21:30:13 -05:00
|
|
|
@if (ViewData.Model.WhitelistingEnabled)
|
|
|
|
{
|
2021-02-24 00:33:40 -05:00
|
|
|
<a asp-controller="About" asp-action="Whitelisting" class="badge badge-light" title="What does this mean?">Whitelisting Enabled</a>
|
2021-02-18 21:30:13 -05:00
|
|
|
}
|
|
|
|
@if (ViewData.Model.BlacklistingEnabled)
|
|
|
|
{
|
2021-02-24 00:33:40 -05:00
|
|
|
<a asp-controller="About" asp-action="Blacklisting" class="badge badge-light" title="What does this mean?">Blacklisting Enabled</a>
|
2021-02-18 21:30:13 -05:00
|
|
|
}
|
2021-02-17 23:18:53 -05:00
|
|
|
|
|
|
|
<div class="node-progress-bar">
|
2021-02-24 00:33:40 -05:00
|
|
|
<div class="node-progress-bar__label"><a asp-controller="About" asp-action="Index">Instance saturation:</a></div>
|
2021-02-18 21:30:13 -05:00
|
|
|
<div class="progress node-progress-bar__bar">
|
|
|
|
<div class="progress-bar
|
|
|
|
@((ViewData.Model.InstanceSaturation > 50 && ViewData.Model.InstanceSaturation < 75) ? "bg-warning ":"")
|
|
|
|
@((ViewData.Model.InstanceSaturation > 75 && ViewData.Model.InstanceSaturation < 100) ? "bg-danger ":"")
|
|
|
|
@((ViewData.Model.InstanceSaturation > 100) ? "bg-saturation-danger ":"")" style="width: @ViewData.Model.InstanceSaturation%">@ViewData.Model.InstanceSaturation%</div>
|
2021-02-17 23:18:53 -05:00
|
|
|
</div>
|
|
|
|
</div>
|
2021-02-17 20:49:17 -05:00
|
|
|
</div>
|