mirror of
https://github.com/ProjectSegfault/website.git
synced 2024-12-22 13:09:49 +05:30
arya moment
This commit is contained in:
parent
eda5adf19b
commit
612f3037bb
@ -36,17 +36,8 @@
|
||||
<h2>Online users</h2>
|
||||
|
||||
{#if !data.users.error}
|
||||
{#if onlineUserCount == 1}
|
||||
<p class="my-4">There is {onlineUserCount} user online out of {userCount} users.</p>
|
||||
<div class="flex flex-row flex-wrap gap-4">
|
||||
{#each data.users.users as user}
|
||||
{#if user.online}
|
||||
<User {user} />
|
||||
{/if}
|
||||
{/each}
|
||||
</div>
|
||||
{:else if onlineUserCount > 1}
|
||||
<p class="my-4">There are {onlineUserCount} users online out of {userCount} users.</p>
|
||||
{#if data.users.users.some(isOnline)}
|
||||
<p class="my-4">There {onlineUserCount === 1 ? "is" : "are"} {onlineUserCount} {onlineUserCount === 1 ? "user" : "users"} online out of {userCount} users.</p>
|
||||
<div class="flex flex-row flex-wrap gap-4">
|
||||
{#each data.users.users as user}
|
||||
{#if user.online}
|
||||
@ -55,7 +46,7 @@
|
||||
{/each}
|
||||
</div>
|
||||
{:else}
|
||||
<p>No users online out of {userCount} users.</p>
|
||||
<p>No users online</p>
|
||||
{/if}
|
||||
{:else}
|
||||
<p>{data.users.message}</p>
|
||||
|
Loading…
Reference in New Issue
Block a user