From 1011b8506779541ad19dd5fb723d8f72ab0979ee Mon Sep 17 00:00:00 2001 From: Gesina Schwalbe Date: Fri, 8 Jan 2021 23:32:35 +0100 Subject: [PATCH] moved redundant item sheet header into partial --- src/templates/item/armor-sheet.hbs | 9 +--- src/templates/item/equipment-sheet.hbs | 9 +--- src/templates/item/racialAbility-sheet.hbs | 9 +--- src/templates/item/shield-sheet.hbs | 19 ++++----- src/templates/item/talent-sheet.hbs | 19 ++++----- src/templates/item/trinket-sheet.hbs | 9 +--- src/templates/item/weapon-sheet.hbs | 49 ++++++++++------------ 7 files changed, 44 insertions(+), 79 deletions(-) diff --git a/src/templates/item/armor-sheet.hbs b/src/templates/item/armor-sheet.hbs index b7887131..1a2a14bf 100644 --- a/src/templates/item/armor-sheet.hbs +++ b/src/templates/item/armor-sheet.hbs @@ -1,9 +1,5 @@
-
- -
-

-

{{localize (lookup config.itemTypes item.type)}}

+ {{#> systems/ds4/templates/item/partials/sheet-header.hbs}}
@@ -31,8 +27,7 @@ placeholder="0" data-dtype="Number" />
-
-
+ {{/systems/ds4/templates/item/partials/sheet-header.hbs}} {{!-- Common Item body --}} {{> systems/ds4/templates/item/partials/body.hbs}} diff --git a/src/templates/item/equipment-sheet.hbs b/src/templates/item/equipment-sheet.hbs index 5c2c3d4e..3fa5d4a9 100644 --- a/src/templates/item/equipment-sheet.hbs +++ b/src/templates/item/equipment-sheet.hbs @@ -1,11 +1,6 @@ -
- -
-

-

{{localize (lookup config.itemTypes item.type)}}

-
-
+ {{#> systems/ds4/templates/item/partials/sheet-header.hbs}} + {{/systems/ds4/templates/item/partials/sheet-header.hbs}} {{!-- Common Item body --}} {{> systems/ds4/templates/item/partials/body.hbs}} diff --git a/src/templates/item/racialAbility-sheet.hbs b/src/templates/item/racialAbility-sheet.hbs index 46dcf476..40771481 100644 --- a/src/templates/item/racialAbility-sheet.hbs +++ b/src/templates/item/racialAbility-sheet.hbs @@ -1,11 +1,6 @@ -
- -
-

-

{{localize (lookup config.itemTypes item.type)}}

-
-
+ {{#> systems/ds4/templates/item/partials/sheet-header.hbs}} + {{/systems/ds4/templates/item/partials/sheet-header.hbs}} {{!-- Common Item body --}} {{> systems/ds4/templates/item/partials/body.hbs}} diff --git a/src/templates/item/shield-sheet.hbs b/src/templates/item/shield-sheet.hbs index ede89655..1c1092c3 100644 --- a/src/templates/item/shield-sheet.hbs +++ b/src/templates/item/shield-sheet.hbs @@ -1,18 +1,13 @@ -
- -
-

-

{{localize (lookup config.itemTypes item.type)}}

-
-
- - -
+ {{#> systems/ds4/templates/item/partials/sheet-header.hbs}} +
+
+ +
-
+ {{/systems/ds4/templates/item/partials/sheet-header.hbs}} {{!-- Common Item body --}} {{> systems/ds4/templates/item/partials/body.hbs}} diff --git a/src/templates/item/talent-sheet.hbs b/src/templates/item/talent-sheet.hbs index a4be9b03..1611beea 100644 --- a/src/templates/item/talent-sheet.hbs +++ b/src/templates/item/talent-sheet.hbs @@ -17,19 +17,14 @@ -
- -
-

-

{{localize (lookup config.itemTypes item.type)}}

-
- {{> talentRankBasicProperty data=data property='base' localizeString='DS4.TalentRankBase' }} - {{> talentRankBasicProperty data=data property='max' localizeString='DS4.TalentRankMax'}} - {{> talentRankBasicProperty data=data property='mod' localizeString='DS4.TalentRankMod'}} - {{> talentRankBasicProperty data=data property='total' localizeString='DS4.TalentRankTotal' disabled='disabled'}} -
+ {{#> systems/ds4/templates/item/partials/sheet-header.hbs}} +
+ {{> talentRankBasicProperty data=data property='base' localizeString='DS4.TalentRankBase' }} + {{> talentRankBasicProperty data=data property='max' localizeString='DS4.TalentRankMax'}} + {{> talentRankBasicProperty data=data property='mod' localizeString='DS4.TalentRankMod'}} + {{> talentRankBasicProperty data=data property='total' localizeString='DS4.TalentRankTotal' disabled='disabled'}}
-
+ {{/systems/ds4/templates/item/partials/sheet-header.hbs}} {{!-- Common Item body --}} {{> systems/ds4/templates/item/partials/body.hbs}} diff --git a/src/templates/item/trinket-sheet.hbs b/src/templates/item/trinket-sheet.hbs index 5c2c3d4e..3fa5d4a9 100644 --- a/src/templates/item/trinket-sheet.hbs +++ b/src/templates/item/trinket-sheet.hbs @@ -1,11 +1,6 @@ -
- -
-

-

{{localize (lookup config.itemTypes item.type)}}

-
-
+ {{#> systems/ds4/templates/item/partials/sheet-header.hbs}} + {{/systems/ds4/templates/item/partials/sheet-header.hbs}} {{!-- Common Item body --}} {{> systems/ds4/templates/item/partials/body.hbs}} diff --git a/src/templates/item/weapon-sheet.hbs b/src/templates/item/weapon-sheet.hbs index 24a5f2d7..69145376 100644 --- a/src/templates/item/weapon-sheet.hbs +++ b/src/templates/item/weapon-sheet.hbs @@ -1,33 +1,28 @@ -
- -
-

-

{{localize (lookup config.itemTypes item.type)}}

-
-
- - -
-
- - -
-
- - -
+ {{#> systems/ds4/templates/item/partials/sheet-header.hbs}} +
+
+ + +
+
+ + +
+
+ +
-
+ {{/systems/ds4/templates/item/partials/sheet-header.hbs}} {{!-- Common Item body --}} {{> systems/ds4/templates/item/partials/body.hbs}}