| 
									
										
										
										
											2018-02-07 22:49:50 -08:00
										 |  |  |  | <:Head> | 
					
						
							|  |  |  |  |   <title>Pinafore – Community</title> | 
					
						
							|  |  |  |  | </:Head> | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | <Layout page='community'> | 
					
						
							|  |  |  |  |   {{#if $isUserLoggedIn}} | 
					
						
							|  |  |  |  |   <div class="community-page"> | 
					
						
							| 
									
										
										
										
											2018-02-10 16:03:28 -08:00
										 |  |  |  | 
 | 
					
						
							|  |  |  |  |     <h2 class="community-header"> | 
					
						
							|  |  |  |  |       Timelines | 
					
						
							|  |  |  |  |     </h2> | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |     <PageList label="Timelines"> | 
					
						
							| 
									
										
										
										
											2018-02-07 22:49:50 -08:00
										 |  |  |  |       <PageListItem href="/local" | 
					
						
							|  |  |  |  |                     label="Local Timeline" | 
					
						
							|  |  |  |  |                     icon="#fa-users" | 
					
						
							| 
									
										
										
										
											2018-02-10 16:03:28 -08:00
										 |  |  |  |                     pinnable="true" | 
					
						
							| 
									
										
										
										
											2018-02-07 22:49:50 -08:00
										 |  |  |  |       /> | 
					
						
							|  |  |  |  |       <PageListItem href="/federated" | 
					
						
							|  |  |  |  |                     label="Federated Timeline" | 
					
						
							|  |  |  |  |                     icon="#fa-globe" | 
					
						
							| 
									
										
										
										
											2018-02-10 16:03:28 -08:00
										 |  |  |  |                     pinnable="true" | 
					
						
							| 
									
										
										
										
											2018-02-07 22:49:50 -08:00
										 |  |  |  |       /> | 
					
						
							|  |  |  |  |       <PageListItem href="/favorites" | 
					
						
							|  |  |  |  |                     label="Favorites" | 
					
						
							|  |  |  |  |                     icon="#fa-star" | 
					
						
							| 
									
										
										
										
											2018-02-10 16:03:28 -08:00
										 |  |  |  |                     pinnable="true" | 
					
						
							| 
									
										
										
										
											2018-02-07 22:49:50 -08:00
										 |  |  |  |       /> | 
					
						
							| 
									
										
										
										
											2018-02-10 16:03:28 -08:00
										 |  |  |  |     </PageList> | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |     {{#if $lists.length}} | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |       <h2 class="community-header"> | 
					
						
							|  |  |  |  |         Lists | 
					
						
							|  |  |  |  |       </h2> | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |       <PageList label="Lists"> | 
					
						
							|  |  |  |  |         {{#each $lists as list}} | 
					
						
							|  |  |  |  |         <PageListItem href="/lists/{{list.id}}" | 
					
						
							|  |  |  |  |                       label="{{list.title}}" | 
					
						
							|  |  |  |  |                       icon="#fa-bars" | 
					
						
							|  |  |  |  |                       pinnable="true" | 
					
						
							|  |  |  |  |         /> | 
					
						
							|  |  |  |  |         {{/each}} | 
					
						
							|  |  |  |  |       </PageList> | 
					
						
							| 
									
										
										
										
											2018-02-08 09:15:25 -08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-02-10 16:03:28 -08:00
										 |  |  |  |     {{/if}} | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |     <h2 class="community-header"> | 
					
						
							|  |  |  |  |       Instance settings | 
					
						
							|  |  |  |  |     </h2> | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |     <PageList label="Instance settings"> | 
					
						
							|  |  |  |  |       <PageListItem href="/muted" | 
					
						
							|  |  |  |  |                     label="Muted users" | 
					
						
							|  |  |  |  |                     icon="#fa-volume-off" | 
					
						
							|  |  |  |  |       /> | 
					
						
							|  |  |  |  |       <PageListItem href="/blocked" | 
					
						
							|  |  |  |  |                     label="Blocked users" | 
					
						
							|  |  |  |  |                     icon="#fa-ban" | 
					
						
							|  |  |  |  |       /> | 
					
						
							|  |  |  |  |       <PageListItem href="/pinned" | 
					
						
							|  |  |  |  |                     label="Pinned toots" | 
					
						
							|  |  |  |  |                     icon="#fa-thumb-tack" | 
					
						
							| 
									
										
										
										
											2018-02-08 09:15:25 -08:00
										 |  |  |  |       /> | 
					
						
							| 
									
										
										
										
											2018-02-07 22:49:50 -08:00
										 |  |  |  |     </PageList> | 
					
						
							| 
									
										
										
										
											2018-02-10 16:03:28 -08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-02-07 22:49:50 -08:00
										 |  |  |  |   </div> | 
					
						
							|  |  |  |  |   {{else}} | 
					
						
							|  |  |  |  |   <HiddenFromSSR> | 
					
						
							|  |  |  |  |     <FreeTextLayout> | 
					
						
							|  |  |  |  |       <h1>More</h1> | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |       <p>More options appear here when logged in.</p> | 
					
						
							|  |  |  |  |     </FreeTextLayout> | 
					
						
							|  |  |  |  |   </HiddenFromSSR> | 
					
						
							|  |  |  |  |   {{/if}} | 
					
						
							|  |  |  |  | </Layout> | 
					
						
							|  |  |  |  | <style> | 
					
						
							|  |  |  |  |   .community-page { | 
					
						
							|  |  |  |  |     margin: 20px; | 
					
						
							|  |  |  |  |   } | 
					
						
							|  |  |  |  |   @media (max-width: 767px) { | 
					
						
							|  |  |  |  |     .community-page { | 
					
						
							|  |  |  |  |       margin: 20px 10px; | 
					
						
							|  |  |  |  |     } | 
					
						
							|  |  |  |  |   } | 
					
						
							|  |  |  |  | </style> | 
					
						
							|  |  |  |  | <script> | 
					
						
							|  |  |  |  |   import Layout from '../_components/Layout.html' | 
					
						
							|  |  |  |  |   import FreeTextLayout from '../_components/FreeTextLayout.html' | 
					
						
							|  |  |  |  |   import { store } from '../_store/store.js' | 
					
						
							|  |  |  |  |   import HiddenFromSSR from '../_components/HiddenFromSSR' | 
					
						
							|  |  |  |  |   import PageList from './_components/PageList.html' | 
					
						
							|  |  |  |  |   import PageListItem from './_components/PageListItem.html' | 
					
						
							| 
									
										
										
										
											2018-02-08 17:51:48 -08:00
										 |  |  |  |   import { updateLists } from '../_actions/lists' | 
					
						
							| 
									
										
										
										
											2018-02-07 22:49:50 -08:00
										 |  |  |  | 
 | 
					
						
							|  |  |  |  |   export default { | 
					
						
							| 
									
										
										
										
											2018-02-08 09:15:25 -08:00
										 |  |  |  |     async oncreate() { | 
					
						
							| 
									
										
										
										
											2018-02-08 17:51:48 -08:00
										 |  |  |  |       await updateLists() | 
					
						
							| 
									
										
										
										
											2018-02-08 09:15:25 -08:00
										 |  |  |  |     }, | 
					
						
							| 
									
										
										
										
											2018-02-07 22:49:50 -08:00
										 |  |  |  |     store: () => store, | 
					
						
							|  |  |  |  |     components: { | 
					
						
							|  |  |  |  |       Layout, | 
					
						
							|  |  |  |  |       FreeTextLayout, | 
					
						
							|  |  |  |  |       HiddenFromSSR, | 
					
						
							|  |  |  |  |       PageList, | 
					
						
							|  |  |  |  |       PageListItem | 
					
						
							|  |  |  |  |     } | 
					
						
							|  |  |  |  |   }; | 
					
						
							|  |  |  |  | </script> |