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.

19 lines
1.2 KiB

  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. <menu-link key="files" selected=input.selected.files icon="F" href="/data/files/">Files</menu-link>
  7. <if-permitted user=input.user permission=["member", "character.add", "channel.add", "file.add"]>
  8. <menu-gap />
  9. <menu-header>Add</menu-header>
  10. <if-permitted key="characters_add" user=input.user permission=["character.add", "member"]>
  11. <menu-link dark icon="+" on-click("emit", "open", "character.add")>Character</menu-link>
  12. </if-permitted>
  13. <if-permitted key="channels_add" user=input.user permission="channel.add">
  14. <menu-link dark icon="+" on-click("emit", "open", "channel.add")>Channel</menu-link>
  15. </if-permitted>
  16. <if-permitted key="files_add" user=input.user permission=["file.add", "member"]>
  17. <menu-link dark icon="+" on-click("emit", "open", "file.add")>File</menu-link>
  18. </if-permitted>
  19. </if-permitted>
  20. </menu>