{% macro candidate_text(snapshot) %} {% if snapshot is none %}
{{ t.context_text_not_recorded }}
{% else %} {% if snapshot['items'] is none %}
{{ t['context_outcome_' ~ snapshot.outcome] }} · {{ t.context_text_not_recorded }}
{% else %} {% for item in snapshot['items'] %}
{{ loop.index }}{% if item.get('artifact') %} · {% if item.get('url') %}{{ item.artifact.artifact_id }} @{{ item.artifact.revision }}{% else %}{{ item.artifact.artifact_id }} @{{ item.artifact.revision }}{% endif %}{% elif item.get('code_evidence') %} · {{ item.code_evidence.path }}:{{ item.code_evidence.start_line }}–{{ item.code_evidence.end_line }}{% endif %}
{{ item.text }}
{% else %}
{{ t.context_text_no_results }}
{% endfor %} {% endif %} {% endif %} {% endmacro %} {% macro candidate_text_drawer(id) %} {% endmacro %}