1
0

Display random amount of online users if a server is online.

This commit is contained in:
Kevin Matsubara 2025-03-27 22:22:08 +01:00
parent 8e6fd76b76
commit 6c26d442f4

View File

@ -25,6 +25,17 @@
</button> </button>
} }
&nbsp; &nbsp;
@if (Server.IsOnline)
{
Random random = new Random();
int randomNumber = random.Next(0, 500);
<text>@randomNumber users online</text>
}
else
{
<text>N/A</text>
}
&nbsp;
<a href="@($"/servers/{Server.Id}")" class="btn btn-primary">Edit</a> <a href="@($"/servers/{Server.Id}")" class="btn btn-primary">Edit</a>
&nbsp; &nbsp;
<EditForm <EditForm