
* first attempt * progress * working * working * test timeago * rm * get timeago working * reduce size * fix whitespace * more intl stuff * more effort * more work * more progress * more work * more intl * set lang=LOCALE * flatten * more work * add ltr/rtl * more work * add comments * yet more work * still more work * more work * fix tests * more test and string fixes * fix test * fix test * fix test * fix some more strings, add test * fix snackbar * fix } * fix typo * fix english * measure perf * start on french * more work on french * more french * more french * finish french * fix some missing translations * update readme * fix test
36 lines
1 KiB
HTML
36 lines
1 KiB
HTML
{#if $isUserLoggedIn}
|
|
<TimelinePage timeline="list/{params.listId}">
|
|
{#if $pinnedPage !== `/lists/${params.listId}`}
|
|
<DynamicPageBanner title={listTitle} icon="#fa-bars"/>
|
|
{/if}
|
|
</TimelinePage>
|
|
{:else}
|
|
<HiddenFromSSR>
|
|
<FreeTextLayout>
|
|
<h1>{intl.list}</h1>
|
|
|
|
<p>{intl.listNotLoggedIn}</p>
|
|
</FreeTextLayout>
|
|
</HiddenFromSSR>
|
|
{/if}
|
|
<script>
|
|
import TimelinePage from '../../_components/TimelinePage.html'
|
|
import FreeTextLayout from '../../_components/FreeTextLayout.html'
|
|
import { store } from '../../_store/store.js'
|
|
import HiddenFromSSR from '../../_components/HiddenFromSSR'
|
|
import DynamicPageBanner from '../../_components/DynamicPageBanner.html'
|
|
|
|
export default {
|
|
computed: {
|
|
list: ({ params, $lists }) => $lists && $lists.find(_ => _.id === params.listId),
|
|
listTitle: ({ list }) => list ? list.title : ''
|
|
},
|
|
store: () => store,
|
|
components: {
|
|
TimelinePage,
|
|
FreeTextLayout,
|
|
HiddenFromSSR,
|
|
DynamicPageBanner
|
|
}
|
|
}
|
|
</script>
|