List scanned flakes

This commit is contained in:
2025-02-01 18:34:14 +01:00
parent b2ea0c311d
commit 055a9c9d57
8 changed files with 97 additions and 31 deletions

14
templates/base.html Normal file
View File

@@ -0,0 +1,14 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Flake Tracker</title>
</head>
<body>
<div id="content">
{% block content %}{% endblock %}
</div>
</body>
</html>

12
templates/flakes.html Normal file
View File

@@ -0,0 +1,12 @@
{% extends "base.html" %}
{% block content %}
<h1>All scanned flakes</h1>
<ul>
{% for flake in flakes %}
<li><a href="/f/{{ flake.uri_encoded() }}">{{ flake.uri }}</a></li>
{% endfor %}
</ul>
{% endblock %}

View File

@@ -1 +1,10 @@
Hello World!
{% extends "base.html" %}
{% block content %}
<h1>Flake Tracker</h1>
<ul>
<li><a href="/flakes">All scanned flakes</a></li>
</ul>
{% endblock %}