mirror of
https://codeberg.org/Toasterson/ips.git
synced 2026-04-10 21:30:41 +00:00
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.
31 lines
1 KiB
HTML
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 %}
|