Display random amount of online users if a server is online.
This commit is contained in:
parent
8e6fd76b76
commit
6c26d442f4
@ -25,6 +25,17 @@
|
||||
</button>
|
||||
}
|
||||
|
||||
@if (Server.IsOnline)
|
||||
{
|
||||
Random random = new Random();
|
||||
int randomNumber = random.Next(0, 500);
|
||||
<text>@randomNumber users online</text>
|
||||
}
|
||||
else
|
||||
{
|
||||
<text>N/A</text>
|
||||
}
|
||||
|
||||
<a href="@($"/servers/{Server.Id}")" class="btn btn-primary">Edit</a>
|
||||
|
||||
<EditForm
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user