{# partials/_result_card.html Compact card shown in the entries list. Expects: id (str), entry (dict), selected_file, truncated=True Optional: bulk_form=True to render the checkbox (set by entries page) #} {% from "partials/_macros.html" import entry_state, entry_label %} {% set _is_combined = selected_file == 'combined' or (selected_file and selected_file.startswith('folder:')) %} {% set _src = source_label(entry) if _is_combined else '' %} {% set _state = entry_state(entry) %}
{# ---- Checkbox (only on entries list page) ---- #} {% if bulk_form %} {% endif %} {# ---- Clickable header strip ---- #} #{{ entry.id }}{% if entry.long_id %} — {{ entry.long_id }}{% endif %} {% if _src %} {{ _src }} {% endif %} {{ entry_label(entry) }}
{# ---- Card body: badges + truncated input/response ---- #}
{# Tag badges #}
{% if entry.judge_name and entry.judge_name not in ('', 'None', none) %} {{ entry.judge_name }} {% endif %} {% if entry.attack_name and entry.attack_name not in ('', 'None', none) %} {{ entry.attack_name }} {% if entry.attack_attempt %}Attempt {{ entry.attack_attempt }} ยท Dataset #{{ entry.attack_parent_id }}{% endif %} {% endif %} {% if entry.plugin and entry.plugin not in ('', 'None', none) %} {{ entry.plugin }} {% endif %} {% if entry.lang and entry.lang not in ('', 'None', none) %} {{ entry.lang }} {% endif %}
{% set truncated = true %} {% include "partials/_input.html" %} {% include "partials/_response.html" %} {% include "partials/_attempt_history.html" %}