{% if item.category %} {{ item.category.value }} {% endif %} {{ item.source_url | domain }} {% if item.status %} {{ item.status.value }} {% endif %}
{{ item.title }}
{# Triage-generated one-liner; auto-escaped. CSS line-clamps it (3 lines on the featured hero, 2 on standard cards). Omitted entirely when the column is null so no empty element reserves space. #} {% if item.summary %}{{ item.summary }}
{% endif %} {# Current triage state drives an active (pressed) button so a Keep/Pass is obviously reflected — a small eyebrow badge alone read as "nothing happened". Both buttons stay live so the choice can be changed. ``?featured=1`` tells the action route to re-render the swapped-in card as the hero again, so an action on the featured card does not collapse it to a standard grid cell mid-list. #} {% set is_kept = item.status and item.status.value == 'Keep' %} {% set is_passed = item.status and item.status.value == 'Archived' %} {# ``active=1`` tells the toggle route the button was rendered pressed, so a click clears the decision *based on what the user saw* — a stale service-worker-cached ✓ card can't invert the action (see toggle_asset). Params are appended only when set so untriaged cards keep their bare URLs. #} {% set keep_params = (['featured=1'] if is_featured else []) + (['active=1'] if is_kept else []) %} {% set pass_params = (['featured=1'] if is_featured else []) + (['active=1'] if is_passed else []) %}