<tr> <td class="slot-h">{{ y }}</td> {% for x in 1..board.get_size().0 + 1 %} {% let ability = board.get_ability_at(x, y) %} {% match ability %} {% when Some with (val) %} <td colspan="1" class="{{ val.get_slot_details(board) }}"> <div class="slot tooltip-wrapper" {% if val.tip.is_some() %}style="cursor: help"{% endif %} > <span>{{ val.name }}</span> {% match val.type %} {% when AbilityType::Checkpoint %} <br /> <span>{{ val.price }}</span> {% when _ %} {% endmatch %} {% if val.tip.is_some() %} <div class="tooltip">{{ val.tip() }}</div> {% endif %} </div> <div class="path"></div> </td> {% when None %} <td colspan="1"></td> {% endmatch %} {% endfor %} </tr>