diff --git a/views/character_summary.pug b/views/character_summary.pug index 407b0efd6d5a4bcf3b72abf8cab972bc420e9d83..8e8cca865ca33c2f8d3289930fc60576ca98ff57 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 5c8c567ef5e7601157028282ba84e54103e17bef..88b3d75d25d9e983aeb1591228682c18bc6344e6 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