Display flake details

This commit is contained in:
2025-02-01 19:00:51 +01:00
parent 055a9c9d57
commit 97ea3d3802
5 changed files with 69 additions and 3 deletions

14
templates/flake-info.html Normal file
View File

@@ -0,0 +1,14 @@
{% extends "base.html" %}
{% block content %}
<h1>{{ uri }}</h1>
<h2>Revisions</h2>
<ul>
{% for flake_revision in flake_revisions %}
<li><a href="{{ flake_revision.link() }}">{{ flake_revision.revision }}</a> ({{ flake_revision.last_modified }})</li>
{% endfor %}
</ul>
{% endblock %}

View File

@@ -5,7 +5,7 @@
<ul>
{% for flake in flakes %}
<li><a href="/f/{{ flake.uri_encoded() }}">{{ flake.uri }}</a></li>
<li><a href="{{ flake.link() }}">{{ flake.uri }}</a></li>
{% endfor %}
</ul>