Skip to content
Snippets Groups Projects
Commit c43a39ab authored by Martin Lehoux's avatar Martin Lehoux
Browse files

simpler characters page

parent 9e9959e1
No related branches found
No related tags found
No related merge requests found
......@@ -9,24 +9,24 @@
.label
span(id="action-points-value-"+character._id)= character.actionPoints
|&nbspaction 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});
......@@ -4,6 +4,7 @@ block main
.ui.cards
each character in characters
include character_summary.pug
.ui.container.center.aligned
button.ui.basic.teal.labeled.icon.button(onClick="$('.ui.modal').modal('show');")
| Create character
i.add.icon
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment