fix(templates): complete revision of actor templates to remove duplicates and fix inconsistencies
- Fixed grid-2 to grid-2col CSS class usage
- Replaced improper <p><a> tags with <div><a> in item lists (actor-weapons, actor-defenses, group-items, group-vehicles)
- Fixed typos: smarttlk -> smarttl, compétence -> Compétence
- Fixed duplicate class attributes
- Standardized HTML comments to Handlebars comments ({{!-- --}})
- Added missing localizations for Character and Skills headers
- Removed orphan {{/if}} tag in character-id.hbs
- Created npc-skill-category.hbs partial to eliminate 150+ lines of duplicated skill category code in actor-npc-sheet.hbs
- Created item-list.hbs partial for reusable item list display
- Fixed html.find(...).forEach error in roll.mjs by ensuring jQuery object
- Added .history/ to .gitignore
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
@@ -9,25 +9,13 @@
|
||||
<h4 class="align-center">
|
||||
{{smarttl "TOTEMS" system.identity.totem "name"}}
|
||||
</h4>
|
||||
<p style="font-size:80%;">{{smarttlk
|
||||
"TOTEMS"
|
||||
system.identity.totem
|
||||
"description"
|
||||
}}</p>
|
||||
<p style="font-size:80%;">{{smarttl "TOTEMS" system.identity.totem "description"}}</p>
|
||||
<div class="grid grid-2col">
|
||||
<div class>
|
||||
<div class="item-name"><strong>Principes</strong><br />{{smarttlk
|
||||
"TOTEMS"
|
||||
system.identity.totem
|
||||
"instincts"
|
||||
}}</div>
|
||||
<div class="item-name"><strong>Principes</strong><br />{{smarttl "TOTEMS" system.identity.totem "instincts"}}</div>
|
||||
</div>
|
||||
<div class>
|
||||
<div class="item-name"><strong>Interdits</strong><br />{{smarttlk
|
||||
"TOTEMS"
|
||||
system.identity.totem
|
||||
"bans"
|
||||
}}</div>
|
||||
<div class="item-name"><strong>Interdits</strong><br />{{smarttl "TOTEMS" system.identity.totem "bans"}}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -39,11 +27,7 @@
|
||||
|
||||
{{/if}}
|
||||
|
||||
<!--
|
||||
|
||||
___________abstract Items_____________
|
||||
|
||||
-->
|
||||
{{!-- Abstract Items --}}
|
||||
<div class="grid grid-2col">
|
||||
<div>
|
||||
<h4>
|
||||
@@ -56,7 +40,7 @@ ___________abstract Items_____________
|
||||
<ol class="list-item">
|
||||
{{#each abilities as |item id|}}
|
||||
<li class="item flexrow" data-item-id="{{item._id}}">
|
||||
<div class="item-name" class="flexrow" style="flex:4;">
|
||||
<div class="item-name flexrow" style="flex:4;">
|
||||
<a
|
||||
class="item-control item-edit"
|
||||
data-tooltip="edit">{{item.name}}</a>
|
||||
@@ -95,7 +79,7 @@ ___________abstract Items_____________
|
||||
<a
|
||||
class="item-control item-edit"
|
||||
title="Edit Item">{{item.name}}</a>
|
||||
<span data-tooltip="{{compétence}}">{{item.system.skill}}</span>
|
||||
<span data-tooltip="Compétence">{{item.system.skill}}</span>
|
||||
</div>
|
||||
<div class="item-controls flexrow">
|
||||
{{#if item.system.description}}
|
||||
|
||||
Reference in New Issue
Block a user