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