{# Macros that labinacan's templates use (#6628). #}
{# A paper's status (#3150): a preprint with the issues still open on it, or published on a day. Text says it, not colour. #}
{% macro paper_status(status, repo_url) -%}
{% if status %}{% if status.preprint %}Preprint work left: {% for n in status.issues %}#{{ n }}{{ ", " if not loop.last }}{% endfor %}{% else %}Published ; changes since are addenda{% endif %}{% endif %}
{%- endmacro %}
{# The chevron of `fold` and `read_more`. It points right when closed and down when open, so the state shows by shape, not by colour. #}
{% macro chevron() -%}
{%- endmacro %}
{# Method text that the reader opens: how a value is measured, what a gate tests, caveats (#5566). The page shows the result, and this holds the rest. #}
{% macro read_more(label="Read more") -%}
{{ chevron() }}{{ label }}
{{ caller() }}
{%- endmacro %}
{# One section of a page, closed until the reader opens it (#5566). The title is the section's heading, inside the summary. #}
{% macro fold(title, hint=none, open=false, level=3) -%}
{{ chevron() }}{{ title }}