tr.hbs 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <tr id="tr-{{id}}" {{#if swap_oob}}hx-swap-oob="true"{{/if}}>
  2. <td class="original-url">
  3. <a href="{{target}}">
  4. {{target}}
  5. </a>
  6. {{#if description}}
  7. <p class="description">
  8. {{description}}
  9. </p>
  10. {{/if}}
  11. </td>
  12. <td class="created-at">
  13. {{relative_created_at}}
  14. {{#if relative_expire_in}}
  15. <p class="expire-in">
  16. Expires in {{relative_expire_in}}
  17. </p>
  18. {{/if}}
  19. </td>
  20. <td class="short-link">
  21. {{!-- <div class="clipboard">
  22. <button
  23. aria-label="Copy"
  24. hx-on:click="handleShortURLCopyLink(this);"
  25. data-url="{{url}}"
  26. >
  27. <svg class="copy" xmlns="http://www.w3.org/2000/svg" fill="none" stroke="currentColor" viewBox="0 0 24 24"><rect width="13" height="13" x="9" y="9" rx="2" ry="2"/><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"/></svg>
  28. </button>
  29. <svg class="check" xmlns="http://www.w3.org/2000/svg" fill="none" stroke="#000" viewBox="0 0 24 24"><path d="M20 6 9 17l-5-5"/></svg>
  30. </div> --}}
  31. <a href="{{link.url}}">{{link.link}}</a>
  32. </td>
  33. <td class="views">
  34. {{visit_count}}
  35. </td>
  36. {{> links/actions}}
  37. </tr>
  38. <tr class="edit">
  39. <td class="loading">
  40. {{> icons/spinner}}
  41. </td>
  42. </tr>