{% extends "base.html" %} {% block title %}{{ t('title_package_detail', request.state.lang, pkg_name, pkg_version) }}{% endblock %} {% block breadcrumbs %} {% endblock %} {% block content %}

{{ pkg_name }} v{{ pkg_version }}

{{ t('heading_scans_count', request.state.lang, scans|length) }}

{% for s in scans %} {% endfor %}
{{ t('col_id', request.state.lang) }}{{ t('col_repo', request.state.lang) }}{{ t('col_status', request.state.lang) }}{{ t('col_findings', request.state.lang) }}{{ t('col_time', request.state.lang) }}
#{{ s.id }} {{ s.repository }} {% with status=s.status %}{% include "_status_badge.html" %}{% endwith %} {% if s.flagged %}{{ s.total_findings }}{% else %}0{% endif %} {{ s.started_at.strftime('%Y-%m-%d %H:%M') if s.started_at }}

{{ t('heading_findings_count', request.state.lang, findings|length) }}

{% if findings %}
{% for f in findings %}
[{{ f.data.severity }}] {{ f.data.rule }} {% if f.data.location %} @ {{ f.data.location }}{% endif %}

{{ f.data.message }}

{% if f.data.code %}
{{ f.data.code }}
{% endif %} {% if f.report and f.report.status == "analyzing" %} {% with finding_id=f.id %} {% include "_llm_spinner.html" %} {% endwith %} {% elif f.report and f.report.verdict %} {% with report=f.report, finding_id=f.id %} {% include "_llm_report_fragment.html" %} {% endwith %} {% elif config.llm_enabled and not config.llm_auto_analyze %}
{% endif %}
{% endfor %}
{% else %}

{{ t('empty_no_findings', request.state.lang) }}

{% endif %} {% endblock %}