From c43a39ab8b3c845f4d2a0b076e37fe5e5311fafb Mon Sep 17 00:00:00 2001 From: Martin Lehoux <martin@lehoux.net> Date: Sat, 16 Feb 2019 13:40:04 +0100 Subject: [PATCH] simpler characters page --- views/character_summary.pug | 38 ++++++++++++++++++------------------- views/characters.pug | 7 ++++--- 2 files changed, 23 insertions(+), 22 deletions(-) diff --git a/views/character_summary.pug b/views/character_summary.pug index 407b0ef..8e8cca8 100644 --- a/views/character_summary.pug +++ b/views/character_summary.pug @@ -9,24 +9,24 @@ .label span(id="action-points-value-"+character._id)= character.actionPoints | action points - .content - .ui.label(class=character.attributes.strength<=8 ? "orange" : character.attributes.strength>=12 ? "green" : "" ) - | Strength - .detail= character.attributes.strength - .ui.label(class=character.attributes.constitution<=8 ? "orange" : character.attributes.constitution>=12 ? "green" : "" ) - | Constitution - .detail= character.attributes.constitution - .ui.label(class=character.attributes.dexterity<=8 ? "orange" : character.attributes.dexterity>=12 ? "green" : "" ) - | Dexterity - .detail= character.attributes.dexterity - .ui.label(class=character.attributes.intelligence<=8 ? "orange" : character.attributes.intelligence>=12 ? "green" : "" ) - | Intelligence - .detail= character.attributes.intelligence - .ui.label(class=character.attributes.wisdom<=8 ? "orange" : character.attributes.wisdom>=12 ? "green" : "" ) - | Wisdom - .detail= character.attributes.wisdom - .ui.label(class=character.attributes.charisma<=8 ? "orange" : character.attributes.charisma>=12 ? "green" : "" ) - | Charisma - .detail= character.attributes.charisma + //- .content + //- .ui.label(class=character.attributes.strength<=8 ? "orange" : character.attributes.strength>=12 ? "green" : "" ) + //- | Strength + //- .detail= character.attributes.strength + //- .ui.label(class=character.attributes.constitution<=8 ? "orange" : character.attributes.constitution>=12 ? "green" : "" ) + //- | Constitution + //- .detail= character.attributes.constitution + //- .ui.label(class=character.attributes.dexterity<=8 ? "orange" : character.attributes.dexterity>=12 ? "green" : "" ) + //- | Dexterity + //- .detail= character.attributes.dexterity + //- .ui.label(class=character.attributes.intelligence<=8 ? "orange" : character.attributes.intelligence>=12 ? "green" : "" ) + //- | Intelligence + //- .detail= character.attributes.intelligence + //- .ui.label(class=character.attributes.wisdom<=8 ? "orange" : character.attributes.wisdom>=12 ? "green" : "" ) + //- | Wisdom + //- .detail= character.attributes.wisdom + //- .ui.label(class=character.attributes.charisma<=8 ? "orange" : character.attributes.charisma>=12 ? "green" : "" ) + //- | Charisma + //- .detail= character.attributes.charisma script $('#action-points-bar-#{character._id}').progress({ total: #{maxActionPoints}, value: #{character.actionPoints}}); script updateActionPoints('#{character._id}', #{character.actionPoints}, #{maxActionPoints}); diff --git a/views/characters.pug b/views/characters.pug index 5c8c567..88b3d75 100644 --- a/views/characters.pug +++ b/views/characters.pug @@ -4,9 +4,10 @@ block main .ui.cards each character in characters include character_summary.pug - button.ui.basic.teal.labeled.icon.button(onClick="$('.ui.modal').modal('show');") - | Create character - i.add.icon + .ui.container.center.aligned + button.ui.basic.teal.labeled.icon.button(onClick="$('.ui.modal').modal('show');") + | Create character + i.add.icon .ui.modal i.close.icon -- GitLab