aboutsummaryrefslogtreecommitdiff
path: root/web/pw-server/src/routes
diff options
context:
space:
mode:
authorIlion Beyst <ilion.beyst@gmail.com>2022-07-24 18:09:04 +0200
committerIlion Beyst <ilion.beyst@gmail.com>2022-07-24 18:09:04 +0200
commit14b51033fc9ca2188a0140893a56c0a249b3e118 (patch)
tree314ccc760d6d2f6f557a8342f3179fb0f9a7b46d /web/pw-server/src/routes
parent90dfc3dec45b3f5d5700f711130d04a5f4d958db (diff)
downloadplanetwars.dev-14b51033fc9ca2188a0140893a56c0a249b3e118.tar.xz
planetwars.dev-14b51033fc9ca2188a0140893a56c0a249b3e118.zip
add placeholders for empty lists
Diffstat (limited to 'web/pw-server/src/routes')
-rw-r--r--web/pw-server/src/routes/bots/[bot_name].svelte3
-rw-r--r--web/pw-server/src/routes/users/[user_name].svelte3
2 files changed, 6 insertions, 0 deletions
diff --git a/web/pw-server/src/routes/bots/[bot_name].svelte b/web/pw-server/src/routes/bots/[bot_name].svelte
index 9e9f016..33a522f 100644
--- a/web/pw-server/src/routes/bots/[bot_name].svelte
+++ b/web/pw-server/src/routes/bots/[bot_name].svelte
@@ -101,6 +101,9 @@
</li>
{/each}
</ul>
+ {#if versions.length == 0}
+ This bot does not have any versions yet.
+ {/if}
</div>
</div>
diff --git a/web/pw-server/src/routes/users/[user_name].svelte b/web/pw-server/src/routes/users/[user_name].svelte
index b6bd34e..c0267b8 100644
--- a/web/pw-server/src/routes/users/[user_name].svelte
+++ b/web/pw-server/src/routes/users/[user_name].svelte
@@ -41,6 +41,9 @@
</li>
{/each}
</ul>
+ {#if bots.length == 0}
+ This user does not have any bots yet.
+ {/if}
</div>
<style lang="scss">