ips/pkg6depotd/templates/index.html
Till Wegmueller 195863f6d8
fix: Show actual repo last-modified time and widen publisher cards
Read last-modified from catalog.attrs instead of using get_info() which
falls back to current time when the package directory scan finds nothing.
Widened publisher card grid min-width from 320px to 420px so the
formatted date doesn't get cut off.
2026-03-15 23:06:09 +01:00

31 lines
1 KiB
HTML

{% extends "base.html" %}
{% block title %}Package Repository{% endblock %}
{% block nav_publishers %} class="active"{% endblock %}
{% block content %}
<div class="page-header">
<h1>Package Repository</h1>
<p class="subtitle">Browse publishers and packages served by this depot</p>
</div>
<div class="publisher-grid">
{% for pub_info in publishers %}
<a href="/ui/packages/{{ pub_info.name }}" class="publisher-card">
<div class="pub-name">{{ pub_info.name }}</div>
<div class="pub-stats">
<div class="stat">
<span class="stat-value">{{ pub_info.package_count }}</span>
<span class="stat-label">Packages</span>
</div>
{% if !pub_info.updated.is_empty() %}
<div class="stat">
<span class="stat-value" style="font-size: 0.82rem; font-weight: 500;">{{ pub_info.updated }}</span>
<span class="stat-label">Last Updated</span>
</div>
{% endif %}
</div>
</a>
{% endfor %}
</div>
{% endblock %}