ips/pkg6depotd/templates/partials/search_results.html
Till Wegmueller d49bb3c306
feat: Add web UI for browsing packages in pkg6depotd
Add a human-facing web interface at /ui/ for browsing IPS package
repositories. Uses Askama templates, HTMX for interactivity, and
Pico.css for styling.

Routes:
- /ui/ - Publisher list with package counts
- /ui/packages/:publisher - Paginated package list
- /ui/search - Search with HTMX search-as-you-type
- /ui/package/:publisher/*fmri - Package detail with lazy manifest
- /ui/p5i - P5I file generation for installing package sets
2026-03-15 21:55:10 +01:00

28 lines
786 B
HTML

{% if results.is_empty() %}
<p>No packages found.</p>
{% else %}
<table class="packages" role="grid">
<thead>
<tr>
<th style="width: 40px;"></th>
<th>Package</th>
<th>Publisher</th>
</tr>
</thead>
<tbody>
{% for r in &results %}
<tr>
<td>
<input type="checkbox"
onchange="toggleP5i(this, '{{ r.publisher }}', '{{ r.fmri }}')"
aria-label="Select {{ r.name }}">
</td>
<td class="pkg-name">
<a href="/ui/package/{{ r.publisher }}/{{ r.fmri_encoded }}">{{ r.name }}</a>
</td>
<td>{{ r.publisher }}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endif %}