diff --git a/SharpbinV3.Client/src/routes/user/[username]/+page.svelte b/SharpbinV3.Client/src/routes/user/[username]/+page.svelte index 04e3650..89ee327 100644 --- a/SharpbinV3.Client/src/routes/user/[username]/+page.svelte +++ b/SharpbinV3.Client/src/routes/user/[username]/+page.svelte @@ -1,11 +1,44 @@
{data.user.pastes?.length} paste{data.user.pastes?.length !== 1 ? 's' : ''}{pagination.totalCount} paste{pagination.totalCount !== 1 ? 's' : ''}
- {#if data.user.pastes && data.user.pastes.length > 0} - {#each data.user.pastes as paste} + {#if pastes && pastes.length > 0} + {#each pastes.slice().sort((a, b) => b.uuid.localeCompare(a.uuid)) as paste (paste.uuid)} This user has not created any pastes yet.

{/if}
+ {#if pagination.totalPages && pagination.totalPages > 1} +
+ + + Page {currentPage} of {pagination.totalPages} + + +
+ {/if}