{% macro status_badge(status) -%} {% if status %}{{ t("status." ~ status) }}{% endif %} {%- endmacro %} {% macro category_dot(key) -%} {% set category = category_of(key) %} {% if category %}{% endif %} {%- endmacro %} {% macro note_link(note) -%} {{ note.title }} {%- endmacro %} {# Graphs are drawn as mycelium by static/js/graph.js over the vendored d3-force (ยง7c). #} {% macro graph_head(script) -%} {%- endmacro %} {% macro graph_box(scope, label, extra_class="", manual=False, mode="free", max=0) -%} {%- endmacro %} {# A project's mushroom, drawn by static/js/specimens.js; its color comes from the category. #} {% macro mushroom(project, scene=False, notes=0) -%} {% set category = category_of(project.category) %} {%- endmacro %}