{% macro character_card(c) -%} {% if c.image %}{{ c.name }}{% else %}{% endif %}
{{ c.name }}
{{ c.status }} · {{ c.species }}
{%- endmacro %} {% macro pager(page, pages, prev_url, next_url, top=false) -%} {% if pages > 1 %}
{% if prev_url %}← Précédent{% endif %} Page {{ page }} / {{ pages }} {% if next_url %}Suivant →{% endif %}
{% endif %} {%- endmacro %} {% macro view_switch(view, view_urls) -%} {%- endmacro %} {% macro characters_view(chars, view) -%} {% if view == 'liste' %} {% for c in chars %} {% endfor %}
NomStatutEspèceGenre
{% if c.image %}{% endif %} {{ c.name }} {{ c.status }} {{ c.species or "—" }} {{ c.gender }}
{% else %}
{% for c in chars %}{{ character_card(c) }}{% endfor %}
{% endif %} {%- endmacro %} {% macro location_tree(nodes, depth=0) -%} {%- endmacro %} {% macro locations_table(locs) -%} {% for l in locs %}{% endfor %}
NomTypeDimension
{{ l.name }}{{ l.type or "—" }}{{ l.dimension or "—" }}
{%- endmacro %}