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.

13 lines
586 B

6 years ago
6 years ago
  1. <div class="story-tags">
  2. <a for(tag in input.tags) href=("/story/by-tag/" + tag.kind + "/" + encodeURIComponent(tag.name)) class=["tag", "color-tag-" + tag.kind.toLowerCase()]>${tag.name}</a>
  3. <if(input.open)>
  4. <if-permitted user=input.user permission="member">
  5. <a on-click("select", "edit") class="option color-menu">Manage Tags (Open)</a>
  6. </if-permitted>
  7. </if>
  8. <else>
  9. <if-permitted user=input.user author=input.author permission="story.edit">
  10. <a on-click("select", "edit") class="option color-menu">Manage Tags</a>
  11. </if-permitted>
  12. </else>
  13. </div>