From 849e835422ebe99bf77e0c1e401c9adc50cad637 Mon Sep 17 00:00:00 2001 From: kalugin66 Date: Sun, 14 Dec 2025 14:39:21 +0500 Subject: [PATCH] r --- public/admin-script.js | 25 ------------------------- public/admin.html | 12 +----------- public/index.html | 5 +++-- 3 files changed, 4 insertions(+), 38 deletions(-) diff --git a/public/admin-script.js b/public/admin-script.js index 65fccce..d4caf4b 100644 --- a/public/admin-script.js +++ b/public/admin-script.js @@ -179,31 +179,6 @@ function updateStatsUI(stats) { const fileSizeMB = (stats.totalFilesSize / 1024 / 1024).toFixed(2); document.getElementById('total-files-size').textContent = `${fileSizeMB} MB`; - // Последние задачи - renderRecentTasks(stats.recentTasks || []); -} - -function renderRecentTasks(tasks) { - const container = document.getElementById('recent-tasks-list'); - - if (!tasks || tasks.length === 0) { - container.innerHTML = '
Нет недавних задач
'; - return; - } - - container.innerHTML = tasks.map(task => ` -
-
-
${task.title}
-
- Создал: ${task.creator_name} | ${formatDateTime(task.created_at)} -
-
- -
- `).join(''); } function searchUsers() { diff --git a/public/admin.html b/public/admin.html index cfead24..e467589 100644 --- a/public/admin.html +++ b/public/admin.html @@ -192,12 +192,6 @@ gap: 8px; } - .user-actions button { - padding: 6px 12px; - font-size: 0.85rem; - border-radius: 6px; - } - .ldap-badge { background: #3498db; color: white; @@ -285,6 +279,7 @@
+
@@ -373,11 +368,6 @@
0 MB
- -
-

Последние созданные задачи

-
Загрузка...
-
diff --git a/public/index.html b/public/index.html index 8d92a26..f2c55a5 100644 --- a/public/index.html +++ b/public/index.html @@ -22,9 +22,9 @@
-

Тестовый пользователь:

+

Управление задачами

    -
  • teacher / teacher123
  • +
  • @2025 МАОУ - СОШ № 25
@@ -40,6 +40,7 @@