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.

15 lines
979 B

  1. <menu user=input.user>
  2. <menu-header>List</menu-header>
  3. <menu-link key="characters" selected=input.selected.characters icon="C" href="/data/characters/">Characters</menu-link>
  4. <menu-link key="channels" selected=input.selected.channels icon="#" href="/data/channels/">Channels</menu-link>
  5. <menu-link key="history" selected=input.selected.changes icon="H" href="/data/changes/">History</menu-link>
  6. <if-permitted user=input.user permission=["member", "character.add", "channel.add", "file.add"]>
  7. <menu-gap />
  8. <menu-header>Add</menu-header>
  9. <if-permitted key="characters_add" user=input.user permission=["character.add", "member"]>
  10. <menu-link dark icon="+" on-click("emit", "open", "character.add")>Character</menu-link>
  11. </if-permitted>
  12. <if-permitted key="channels_add" user=input.user permission="channel.add">
  13. <menu-link dark icon="+" on-click("emit", "open", "channel.add")>Channel</menu-link>
  14. </if-permitted>
  15. </if-permitted>
  16. </menu>