pinafore/src/routes/_pages/notifications/index.html

34 lines
975 B
HTML

{#if $isUserLoggedIn}
<NotificationFilters filter="" />
<TimelinePage timeline="notifications" />
{:else}
<HiddenFromSSR>
<FreeTextLayout>
<h1>Notifications</h1>
<p>Your notifications will appear here when logged in.</p>
</FreeTextLayout>
<div style="display: none">
<!-- TODO: this is just a hack so that `sapper export` knows to crawl these files -->
<a href="/notifications/mentions">Notification mentions</a>
</div>
</HiddenFromSSR>
{/if}
<script>
import FreeTextLayout from '../../_components/FreeTextLayout.html'
import { store } from '../../_store/store.js'
import HiddenFromSSR from '../../_components/HiddenFromSSR'
import TimelinePage from '../../_components/TimelinePage.html'
import NotificationFilters from '../../_components/NotificationFilters.html'
export default {
store: () => store,
components: {
FreeTextLayout,
HiddenFromSSR,
TimelinePage,
NotificationFilters
}
}
</script>