All user data for FoundryVTT. Includes worlds, systems, modules, and any asset in the "foundryuserdata" directory. Does NOT include the FoundryVTT installation itself.
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.

76 lines
2.9 KiB

1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
  1. {{#if featSlot.feat}}
  2. <li class="item feat-item" data-item-id="{{featSlot.feat.id}}" data-slot-id="{{featSlot.id}}">
  3. <div class="item-name rollable drag-handle">
  4. <div class="feat-slot-title">{{featSlot.label}}</div>
  5. <div class="item-image framed">
  6. <img class="item-icon" src="{{featSlot.feat.img}}" alt="{{featSlot.feat.name}}">
  7. <i class="fa-solid fa-message"></i>
  8. </div>
  9. <h4>{{featSlot.feat.name}}</h4>
  10. </div>
  11. <div class="item-controls">
  12. {{#if @root.editable}}
  13. <a class="item-control item-edit" title="{{localize "PF2E.EditItemTitle"}}"><i class="fa-solid fa-fw fa-edit"></i></a>
  14. <a class="item-control item-delete" title="{{localize "PF2E.DeleteItemTitle"}}"><i class="fa-solid fa-fw fa-trash"></i></a>
  15. {{/if}}
  16. </div>
  17. {{#if featSlot.children}}
  18. {{> nestedSlots slot=featSlot}}
  19. {{/if}}
  20. </li>
  21. {{else}}
  22. {{> emptySlot slot=featSlot}}
  23. {{/if}}
  24. {{#*inline "nestedSlots"}}
  25. <ol class="nested-items">
  26. {{#each slot.children as |childSlot|}}
  27. {{#if childSlot.feat}}
  28. {{> nestedSlot slot=childSlot}}
  29. {{else}}
  30. {{> emptySlot slot=childSlot}}
  31. {{/if}}
  32. {{/each}}
  33. </ol>
  34. {{/inline}}
  35. {{#*inline "nestedSlot"}}
  36. <li data-item-id="{{slot.feat.id}}">
  37. <div class="item-name rollable">
  38. <div class="feat-slot-title"></div>
  39. <div class="item-image framed">
  40. <img class="item-icon" src="{{slot.feat.img}}" alt="{{slot.feat.name}}">
  41. <i class="fa-solid fa-message"></i>
  42. </div>
  43. <h4>{{slot.feat.name}}</h4>
  44. </div>
  45. <div class="item-controls">
  46. {{#if @root.editable}}
  47. <a class="item-control item-edit" title="{{localize "PF2E.EditItemTitle"}}"><i class="fa-solid fa-fw fa-edit"></i></a>
  48. <a class="item-control item-delete" title="{{localize "PF2E.DeleteItemTitle"}}"><i class="fa-solid fa-fw fa-trash"></i></a>
  49. {{/if}}
  50. </div>
  51. {{#if slot.children}}
  52. {{> nestedSlots slot=slot}}
  53. {{/if}}
  54. </li>
  55. {{/inline}}
  56. {{#*inline "emptySlot"}}
  57. <li class="feat-item" data-slot-id="{{slot.id}}">
  58. <div class="item-name">
  59. <div class="feat-slot-title">{{slot.label}}</div>
  60. <div class="item-placeholder">{{coalesce slot.restriction.hint (localize "PF2E.EmptySlot")}}</div>
  61. </div>
  62. <div class="item-controls">
  63. {{#if @root.editable}}
  64. <a
  65. class="item-control"
  66. data-action="browse-feats"
  67. data-filter="{{featFilter}},conjunction-or"
  68. data-level="{{slot.level}}"
  69. ><i class="fa-solid fa-fw fa-search"></i></a>
  70. {{/if}}
  71. </div>
  72. </li>
  73. {{/inline}}