{# templates/_search_results_table.html #} {# This partial template renders the search results table and pagination #} {% if packages %} {# Add Dependencies header if needed based on your data #} {# #} {% for pkg in packages %} {# Add Dependencies data if needed #} {# #} {% endfor %}
Package Latest Author FHIR Versions Dependencies
{# Link to package details page - adjust if endpoint name is different #} {{ pkg.name }} {{ pkg.display_version }} {{ pkg.author or '' }} {{ pkg.fhir_version or '' }} {{ pkg.version_count }} {{ pkg.dependencies | join(', ') if pkg.dependencies else '' }}
{# Pagination Controls - Ensure 'pagination' object is passed from the route #} {% if pagination and pagination.pages > 1 %} {% endif %} {# End pagination nav #} {% elif request and request.args.get('search') %} {# Message when search term is present but no results found #}

No packages found matching your search term.

{% else %} {# Initial message before any search #}

Start typing in the search box above to find packages.

{% endif %}