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.

17 lines
1.2 KiB

  1. <if (!state.deleted)>
  2. <compact-list-property primary short label="ID" value=input.data.id />
  3. <compact-list-property title=input.data.nicks.join(", ") label="Nick" value=(input.data.nick) />
  4. <compact-list-property long label="Name" value=input.data.name />
  5. <compact-list-property short label="Author" value=input.data.author />
  6. <compact-list-options long>
  7. <if-permitted user=input.user author=input.data.author permission="character.edit">
  8. <a key="edit" on-click("open", "edit", input.data)>Edit</a>
  9. <a key="nicks" on-click("open", "nicks", input.data)>Nicks</a>
  10. </if-permitted>
  11. <if-permitted user=input.user author=input.data.author permission="character.remove">
  12. <a key="remove" on-click("open", "remove", input.data)>Remove</a>
  13. </if-permitted>
  14. </compact-list-options>
  15. <remove-character-modal enabled=(state.modal === "remove") character=input.data on-removed("emit", "removed") on-close("close") />
  16. <edit-character-modal enabled=(state.modal === "edit") character=input.data on-edited("emit", "edited") on-close("close") />
  17. <character-nicks-modal enabled=(state.modal === "nicks") character=input.data on-nicks("emit", "nicks") on-close("close") />
  18. </if>