2018-03-14 00:14:57 +00:00
|
|
|
{{#if $isUserLoggedIn}}
|
2018-03-30 06:16:53 +00:00
|
|
|
<TimelinePage timeline="list/{{params.listId}}">
|
|
|
|
{{#if $pinnedPage !== `/lists/${params.listId}`}}
|
|
|
|
<DynamicPageBanner title="{{listTitle}}" icon="#fa-bars"/>
|
|
|
|
{{/if}}
|
|
|
|
</TimelinePage>
|
2018-03-14 00:14:57 +00:00
|
|
|
{{else}}
|
2018-03-30 06:16:53 +00:00
|
|
|
<HiddenFromSSR>
|
|
|
|
<FreeTextLayout>
|
|
|
|
<h1>List</h1>
|
2018-03-14 00:14:57 +00:00
|
|
|
|
2018-03-30 06:16:53 +00:00
|
|
|
<p>A list will appear here when logged in.</p>
|
|
|
|
</FreeTextLayout>
|
|
|
|
</HiddenFromSSR>
|
2018-03-14 00:14:57 +00:00
|
|
|
{{/if}}
|
|
|
|
<script>
|
2018-03-30 06:16:53 +00:00
|
|
|
import TimelinePage from '../../_components/TimelinePage.html'
|
2018-03-14 00:14:57 +00:00
|
|
|
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: {
|
2018-03-30 06:16:53 +00:00
|
|
|
TimelinePage,
|
2018-03-14 00:14:57 +00:00
|
|
|
FreeTextLayout,
|
|
|
|
HiddenFromSSR,
|
|
|
|
DynamicPageBanner
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|