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 @@
-

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

+

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

@@ -40,6 +40,7 @@