{{haml([".line.center.wrap", [
...[Type.Hero, Type.God, Type.Location, Type.Item, Type.Enemy].map(i => [
"span.small-button", i, `data-bind=click: e => (context.filter = Type.${i}, context.subtype = null)`
]),
...[1, 2, 3].map(i => [
"span.small-button", i, `data-bind=click: e => context.tier = ${i}`
])
]])}}
{{haml([".line.center.wrap", [
...[EnemyType.Encounter, EnemyType.Summon, EnemyType.GateKeeper, EnemyType.Boss].map(i => [
"span.small-button", formated_name_of(i), `data-bind=click: e => context.subtype = EnemyType.${i}`
]),
]])}}
{{haml([".line.center.wrap", [
...[
ItemType.Equipment, ItemType.Artifact, ItemType.Ally, ItemType.Ability, ItemType.Consumable, ItemType.Status,
].map(i => [
"span.small-button", formated_name_of(i), `data-bind=click: e => context.subtype = ItemType.${i}`
]),
]])}}