From 7c171daedbeb7bb395364e3ddc26979737df29cc Mon Sep 17 00:00:00 2001 From: hermes Date: Sat, 24 Oct 2026 07:35:29 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20tasks=20card=20loads=20via=20hx-trigger?= =?UTF-8?q?=3Dload=20(=D0=B2=D1=81=D0=B5=D0=B3=D0=B4=D0=B0=20=D1=81=D0=BE?= =?UTF-8?q?=D0=B4=D0=B5=D1=80=D0=B6=D0=B8=D1=82=20add-task=20=D0=BA=D0=BD?= =?UTF-8?q?=D0=BE=D0=BF=D0=BA=D1=83=20+=20inline=20edit).=20=D0=A3=D0=B1?= =?UTF-8?q?=D1=80=D0=B0=D0=BD=20=D1=81=D1=82=D0=B0=D1=82=D0=B8=D1=87=D0=B5?= =?UTF-8?q?=D1=81=D0=BA=D0=B8=D0=B9=20Jinja-=D1=80=D0=B5=D0=BD=D0=B4=D0=B5?= =?UTF-8?q?=D1=80=20=D0=B1=D0=BB=D0=BE=D0=BA=D0=B0=20=D0=B7=D0=B0=D0=B4?= =?UTF-8?q?=D0=B0=D1=87.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- webui/app.py | 4 +++- webui/static/css/app.css | 2 ++ webui/templates/index.html | 18 +++--------------- 3 files changed, 8 insertions(+), 16 deletions(-) diff --git a/webui/app.py b/webui/app.py index 4bcf266..1c37353 100644 --- a/webui/app.py +++ b/webui/app.py @@ -395,7 +395,9 @@ def tasks_reload(request: Request, _: AuthDep): btn = '' html = f'''
✅ Текущие задачи {active}
-{items_html}{btn}
''' +{items_html} + +''' return HTMLResponse(html) diff --git a/webui/static/css/app.css b/webui/static/css/app.css index 18da086..53ac7ed 100644 --- a/webui/static/css/app.css +++ b/webui/static/css/app.css @@ -182,6 +182,8 @@ body.f3 .c3{flex:1} .card .cbody{flex:1;overflow-y:auto;padding:4px 0} .card .cbody::-webkit-scrollbar{width:5px} .card .cbody::-webkit-scrollbar-thumb{background:var(--border);border-radius:3px} +.add-task{background:none;border:1px dashed var(--fg3);color:var(--fg2);cursor:pointer;font-size:12px;padding:6px 14px;border-radius:6px;margin:6px 10px;width:calc(100% - 20px);display:block} +.add-task:hover{border-color:var(--accent);color:var(--fg)} .tk{display:flex;gap:8px;padding:8px 14px;border-bottom:1px solid var(--border); cursor:pointer;align-items:flex-start} diff --git a/webui/templates/index.html b/webui/templates/index.html index 921a74a..f65729e 100644 --- a/webui/templates/index.html +++ b/webui/templates/index.html @@ -56,21 +56,9 @@
-
-
✅ Текущие задачи {{ tasks|selectattr('completed','false')|list|length }}
-
- {% for t in tasks %} -
- -
-
{{ t.summary }}
- {% if t.due %}
срок {{ t.due }}
{% endif %} -
-
- {% else %} -
Задач нет или Radicale недоступен
- {% endfor %} -
+
+
✅ Текущие задачи 0
+
Загрузка...