Show restream status in Admin.cshtml
This commit is contained in:
parent
653b1cf500
commit
220ea3ad95
|
@ -30,18 +30,21 @@
|
||||||
<th scope="row">@user.Username</th>
|
<th scope="row">@user.Username</th>
|
||||||
<td>
|
<td>
|
||||||
@if (StreamUtils.IsLive(user.Username)) {
|
@if (StreamUtils.IsLive(user.Username)) {
|
||||||
/*if (StreamUtils.IsLive(user.Username, "1080")) {
|
if (user.AllowRestream && !string.IsNullOrWhiteSpace(user.RestreamTargets)) {
|
||||||
<button class="btn btn-dark" role="button" style="width:13ch" disabled>Restreaming</button>
|
var restreams = StreamUtils.CountLiveRestreams(user.Username);
|
||||||
|
if (restreams > 0) {
|
||||||
|
<button class="btn btn-dark" role="button" style="width:18ch" disabled>Restreaming (@restreams)</button>
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
<button class="btn btn-warning" role="button" style="width:18ch" disabled>Restreaming (@restreams)</button>
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
<button class="btn btn-success" role="button" style="width:18ch" disabled>Live</button>
|
||||||
}
|
}
|
||||||
else {*/
|
|
||||||
<button class="btn btn-success" role="button" style="width:13ch" disabled>Live</button>
|
|
||||||
//}
|
|
||||||
|
|
||||||
//kept around for
|
|
||||||
//TODO Restreaming & direct stats support
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
<button class="btn btn-danger" role="button" style="width:13ch" disabled>No data</button>
|
<button class="btn btn-danger" role="button" style="width:18ch" disabled>No data</button>
|
||||||
}
|
}
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
|
|
Loading…
Reference in a new issue