{% macro status_icon(code, plain, tip_extra='') %}
{% if plain %}
{{ plain }}{% if tip_extra %} — {{ tip_extra }}{% endif %}
{% endif %}
{% endmacro %}
{% macro miss_surface_icon(code, plain, tip_extra='') %}{{ status_icon(code, plain, tip_extra) }}{% endmacro %}
{# Stamps come from verify.stamp_for_state: "Found" only for doi_match. #}
{% macro verify_stamp(stamp) %}{% if stamp == 'found' %}Found{% elif stamp == 'check' %}Check{% endif %}{% endmacro %}