roundabout,
created on Monday, 9 September 2024, 10:13:41 (1725876821),
received on Monday, 9 September 2024, 10:49:32 (1725878972)
Author identity: vlad <vlad.muntoiu@gmail.com>
54a064a2fa47a516d5839353462ea0889adc8062
app.py
@@ -799,6 +799,11 @@ def raw_picture(id):
return response @app.route("/object/") def graphical_object_types(): return flask.render_template("object-types.html", objects=PictureObject.query.all()) @app.route("/api/object-types") def object_types(): objects = db.session.query(PictureObject).all()
static/style.css
@@ -361,3 +361,11 @@ small {
a.button { text-decoration: none; } dt { font-weight: 600; } dd { margin-left: 40px; }
templates/object-types.html
@@ -0,0 +1,15 @@
{% extends "default.html" %} {% block title %}List of objects | gigadata{% endblock %} {% block content %} <x-frame style="--width: 768px" class="vbox"> <h1>Objects</h1> <dl> {% for object in objects %} <dt><a href="/object/{{ object.id }}">{{ object.id }}</a></dt> <dd>{{ object.description }}</dd> {% endfor %} </dl> </x-frame> {% endblock %}