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.

61 lines
2.7 KiB

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">
  5. {{#if featSlot.level}}
  6. {{featSlot.level}}
  7. {{else if featSlot.feat.level}}
  8. {{featSlot.feat.level}}
  9. {{/if}}
  10. </div>
  11. <div class="item-image framed">
  12. <img class="item-icon" src="{{featSlot.feat.img}}" alt="{{featSlot.feat.name}}">
  13. <i class="fa-solid fa-message"></i>
  14. </div>
  15. <h4>{{featSlot.feat.name}}</h4>
  16. </div>
  17. <div class="item-controls">
  18. {{#if @root.editable}}
  19. <a class="item-control item-edit" title="{{localize "PF2E.EditItemTitle"}}"><i class="fas fa-fw fa-edit"></i></a>
  20. <a class="item-control item-delete" title="{{localize "PF2E.DeleteItemTitle"}}"><i class="fas fa-fw fa-trash"></i></a>
  21. {{/if}}
  22. </div>
  23. {{> grantedFeats parent=featSlot.feat}}
  24. </li>
  25. {{else}}
  26. <li class="feat-item" data-slot-id="{{featSlot.id}}">
  27. <div class="item-name">
  28. <div class="feat-slot-title">{{featSlot.level}}</div>
  29. <div class="item-placeholder">{{localize "PF2E.EmptySlot"}}</div>
  30. </div>
  31. <div class="item-controls">
  32. {{#if @root.editable}}
  33. <a class="item-control" data-action="browse-feats" data-filter="{{featFilter}},conjunction-or" data-level="{{featSlot.level}}"><i class="fas fa-fw fa-search"></i></a>
  34. {{/if}}
  35. </div>
  36. </li>
  37. {{/if}}
  38. {{#*inline "grantedFeats"}}
  39. <ol class="nested-items">
  40. {{#each parent.grants as |feat|}}
  41. <li data-item-id="{{feat.id}}">
  42. <div class="item-name rollable">
  43. <div class="feat-slot-title"></div>
  44. <div class="item-image framed">
  45. <img class="item-icon" src="{{feat.img}}" alt="{{feat.name}}">
  46. <i class="fa-solid fa-message"></i>
  47. </div>
  48. <h4>{{feat.name}}</h4>
  49. </div>
  50. <div class="item-controls">
  51. {{#if @root.editable}}
  52. <a class="item-control item-edit" title="{{localize "PF2E.EditItemTitle"}}"><i class="fas fa-fw fa-edit"></i></a>
  53. <a class="item-control item-delete" title="{{localize "PF2E.DeleteItemTitle"}}"><i class="fas fa-fw fa-trash"></i></a>
  54. {{/if}}
  55. </div>
  56. {{> grantedFeats parent=feat}}
  57. </li>
  58. {{/each}}
  59. </ol>
  60. {{/inline}}