aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFuwn <[email protected]>2023-09-13 01:56:47 -0700
committerFuwn <[email protected]>2023-09-13 01:56:47 -0700
commitbb363c5cd4216ea435ddae81278ada86fb35d7f0 (patch)
treea80ef138204659da9d92aa828d5dc59b66995ed5 /src
parentrefactor(updates): rename to updates (diff)
downloaddue.moe-bb363c5cd4216ea435ddae81278ada86fb35d7f0.tar.xz
due.moe-bb363c5cd4216ea435ddae81278ada86fb35d7f0.zip
feat(activity-history): move into details
Diffstat (limited to 'src')
-rw-r--r--src/routes/activity-history/+page.svelte48
1 files changed, 25 insertions, 23 deletions
diff --git a/src/routes/activity-history/+page.svelte b/src/routes/activity-history/+page.svelte
index a1938ee9..2bb0f129 100644
--- a/src/routes/activity-history/+page.svelte
+++ b/src/routes/activity-history/+page.svelte
@@ -63,30 +63,32 @@
// };
</script>
-<h1>Activity History Hole Risk</h1>
+<details open>
+ <summary>Activity History</summary>
-Days in risk of developing an activity history hole. (days with one activity)
+ Days in risk of developing an activity history hole. (days with one activity)
-<p />
+ <p />
-{#if data.user === undefined}
- Please log in to view this page.
-{:else}
- {#await activityHistoryData}
- Loading ...
- {:then activities}
- {#if activities === undefined}
+ {#if data.user === undefined}
+ Please log in to view this page.
+ {:else}
+ {#await activityHistoryData}
Loading ...
- {:else}
- <ul>
- {#each fillMissingDays(activities) as activity}
- {#if activity.amount === 0}
- <li>
- {new Date(activity.date * 1000 + timezoneOffset).toDateString()}
- </li>
- {/if}
- {/each}
- </ul>
- {/if}
- {/await}
-{/if}
+ {:then activities}
+ {#if activities === undefined}
+ Loading ...
+ {:else}
+ <ul>
+ {#each fillMissingDays(activities) as activity}
+ {#if activity.amount === 0}
+ <li>
+ {new Date(activity.date * 1000 + timezoneOffset).toDateString()}
+ </li>
+ {/if}
+ {/each}
+ </ul>
+ {/if}
+ {/await}
+ {/if}
+</details>