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.

21 lines
951 B

  1. $ const fullNames = (input.log.characters.length < 4);
  2. <tr key=input.log.shortId class="logs-table-row color-text">
  3. <td class="date color-primary">
  4. <a href=("/logs/"+input.log.id)>${state.dateStr}</a>
  5. </td>
  6. <td class="channel color-menu">
  7. <a on-click("emit", "addfilter", "channels", input.log.channelName)>${input.log.channelName}</a>
  8. </td>
  9. <td class="event color-tag-event">
  10. <a on-click("emit", "addfilter", "events", input.log.eventName)>${(input.log.eventName || "")}</a>
  11. </td>
  12. <td class="characters color-menu">
  13. <span for(character in input.log.characters | status-var=loop)>
  14. <a on-click("emit", "addfilter", "characters", character.id) class="name">${fullNames ? character.name : character.shortName}</a>
  15. <span class="comma" if(loop.getIndex() < (loop.getLength() - 1))>, </span>
  16. </span>
  17. </td>
  18. </tr>
  19. <tr if(state.expand) key=(input.log.shortId + "_expand") class="logs-table-row-expanded">
  20. </tr>