From e5fee32098b34324714fe4d2f62f5980e4389ce1 Mon Sep 17 00:00:00 2001 From: Tianyu Liu Date: Mon, 27 Apr 2026 20:22:01 +0200 Subject: [PATCH] bug fixed --- .gitignore | 1 + app/templates/items/show.html | 5 +++++ tests/test_app.py | 1 + 3 files changed, 7 insertions(+) diff --git a/.gitignore b/.gitignore index 04a9445..d09795e 100644 --- a/.gitignore +++ b/.gitignore @@ -14,3 +14,4 @@ data/*.db **/.Spotlight-V100 .Trashes **/.Trashes +.codex \ No newline at end of file diff --git a/app/templates/items/show.html b/app/templates/items/show.html index 374f446..3b99942 100644 --- a/app/templates/items/show.html +++ b/app/templates/items/show.html @@ -70,6 +70,11 @@ 上级容器:{{ item.name }} {% if subitem.note %}

备注:{{ subitem.note }}

{% endif %} +
+
+ +
+
{% endfor %} diff --git a/tests/test_app.py b/tests/test_app.py index c97f878..00cb717 100644 --- a/tests/test_app.py +++ b/tests/test_app.py @@ -926,6 +926,7 @@ def test_item_detail_page_renders_clear_hierarchy(client, db_session): assert "书房箱" in response.text assert "SubItem" in response.text assert f'data-href="/subitems/{subitem.id}/edit"' in response.text + assert f'action="/subitems/{subitem.id}/delete"' in response.text assert "overview-grid" in response.text