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 @@ ...@@ -9,24 +9,24 @@
.label .label
span(id="action-points-value-"+character._id)= character.actionPoints span(id="action-points-value-"+character._id)= character.actionPoints
|&nbspaction points |&nbspaction points
.content //- .content
.ui.label(class=character.attributes.strength<=8 ? "orange" : character.attributes.strength>=12 ? "green" : "" ) //- .ui.label(class=character.attributes.strength<=8 ? "orange" : character.attributes.strength>=12 ? "green" : "" )
| Strength //- | Strength
.detail= character.attributes.strength //- .detail= character.attributes.strength
.ui.label(class=character.attributes.constitution<=8 ? "orange" : character.attributes.constitution>=12 ? "green" : "" ) //- .ui.label(class=character.attributes.constitution<=8 ? "orange" : character.attributes.constitution>=12 ? "green" : "" )
| Constitution //- | Constitution
.detail= character.attributes.constitution //- .detail= character.attributes.constitution
.ui.label(class=character.attributes.dexterity<=8 ? "orange" : character.attributes.dexterity>=12 ? "green" : "" ) //- .ui.label(class=character.attributes.dexterity<=8 ? "orange" : character.attributes.dexterity>=12 ? "green" : "" )
| Dexterity //- | Dexterity
.detail= character.attributes.dexterity //- .detail= character.attributes.dexterity
.ui.label(class=character.attributes.intelligence<=8 ? "orange" : character.attributes.intelligence>=12 ? "green" : "" ) //- .ui.label(class=character.attributes.intelligence<=8 ? "orange" : character.attributes.intelligence>=12 ? "green" : "" )
| Intelligence //- | Intelligence
.detail= character.attributes.intelligence //- .detail= character.attributes.intelligence
.ui.label(class=character.attributes.wisdom<=8 ? "orange" : character.attributes.wisdom>=12 ? "green" : "" ) //- .ui.label(class=character.attributes.wisdom<=8 ? "orange" : character.attributes.wisdom>=12 ? "green" : "" )
| Wisdom //- | Wisdom
.detail= character.attributes.wisdom //- .detail= character.attributes.wisdom
.ui.label(class=character.attributes.charisma<=8 ? "orange" : character.attributes.charisma>=12 ? "green" : "" ) //- .ui.label(class=character.attributes.charisma<=8 ? "orange" : character.attributes.charisma>=12 ? "green" : "" )
| Charisma //- | Charisma
.detail= character.attributes.charisma //- .detail= character.attributes.charisma
script $('#action-points-bar-#{character._id}').progress({ total: #{maxActionPoints}, value: #{character.actionPoints}}); script $('#action-points-bar-#{character._id}').progress({ total: #{maxActionPoints}, value: #{character.actionPoints}});
script updateActionPoints('#{character._id}', #{character.actionPoints}, #{maxActionPoints}); script updateActionPoints('#{character._id}', #{character.actionPoints}, #{maxActionPoints});
...@@ -4,6 +4,7 @@ block main ...@@ -4,6 +4,7 @@ block main
.ui.cards .ui.cards
each character in characters each character in characters
include character_summary.pug include character_summary.pug
.ui.container.center.aligned
button.ui.basic.teal.labeled.icon.button(onClick="$('.ui.modal').modal('show');") button.ui.basic.teal.labeled.icon.button(onClick="$('.ui.modal').modal('show');")
| Create character | Create character
i.add.icon i.add.icon
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment