mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
[FastAPI] Modularize homepage and add side panel
This puts one more toward completion of the homepage overall; we'll need to still implement the authenticated user dashboard after this. Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
parent
9e73936c4e
commit
d9cdd5faef
10 changed files with 500 additions and 102 deletions
35
templates/partials/packages/widgets/updates.html
Normal file
35
templates/partials/packages/widgets/updates.html
Normal file
|
@ -0,0 +1,35 @@
|
|||
<div id="pkg-updates" class="widget box">
|
||||
<h3>
|
||||
{{ "Recent Updates" | tr }}
|
||||
<span class="more">
|
||||
(<a href="/packages/?SB=l&SO=d">{{ "more" | tr }}</a>)
|
||||
</span>
|
||||
</h3>
|
||||
<a class="rss-icon latest" href="/rss/"
|
||||
title="AUR Latest Packages RSS Feed">
|
||||
<img src="/static/images/rss.svg" alt="RSS Feed" />
|
||||
</a>
|
||||
<a class="rss-icon" href="/rss/modified"
|
||||
title="AUR Modified Packages RSS Feed">
|
||||
<img src="/static/images/rss.svg" alt="RSS Feed" />
|
||||
</a>
|
||||
|
||||
<table>
|
||||
<tbody>
|
||||
{% for pkg in package_updates %}
|
||||
<tr>
|
||||
<td class="pkg-name">
|
||||
<a href="/packages/{{ pkg.Name }}">
|
||||
{{ pkg.Name }} {{ pkg.Version }}
|
||||
</a>
|
||||
</td>
|
||||
<td class="pkg-date">
|
||||
{% set modified = pkg.PackageBase.ModifiedTS | dt | as_timezone(timezone) %}
|
||||
{{ modified.strftime("%Y-%m-%d %H:%M") }}
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue