The frontend/UI server, written in JS using the MarkoJS library
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
801 B

6 years ago
  1. <menu user=input.user>
  2. <menu-header>Story</menu-header>
  3. <menu-link selected=input.selected.index icon="S" href="/story/">Stories</menu-link>
  4. <menu-gap />
  5. <menu-header>Categories</menu-header>
  6. <menu-link for(category in (input.categories||[])) selected=(input.selected.category == category.name) href=`/story/by-category/${category.name}` icon=category.name.charAt(0)>${category.name}</menu-link>
  7. <menu-gap />
  8. <menu-header>Tags</menu-header>
  9. <menu-link for(tag in (input.menuTags||[])) selected=(input.selected.tag === `${tag.kind}:${tag.name}`) href=`/story/by-tag/${tag.kind}/${tag.name}` textClass=`color-tag-${tag.kind.toLowerCase()}` icon=tag.kind.charAt(0)>${tag.name}</menu-link>
  10. <menu-link selected=input.selected.tags icon="T" href="/story/tag-list/">Tags</menu-link>
  11. </menu>