From f635272128ce67473db149bf71e1730067b434f3 Mon Sep 17 00:00:00 2001 From: Vladislav Kopnin Date: Sat, 10 Oct 2026 13:17:45 +0300 Subject: [PATCH] =?UTF-8?q?=D0=90=D1=83=D0=B4=D0=B8=D1=82=D0=BE=D1=80?= =?UTF-8?q?=D0=B8=D0=B8:=20=D0=BF=D0=BE=D0=BC=D0=B5=D1=82=D0=BA=D0=B0=20?= =?UTF-8?q?=D0=BF=D1=80=D0=BE=20=D0=B4=D0=BD=D0=B8=20=E2=80=94=20=D0=BF?= =?UTF-8?q?=D1=80=D0=BE=D1=81=D1=82=D0=BE=20=D0=B6=D1=91=D0=BB=D1=82=D1=8B?= =?UTF-8?q?=D0=BC=20=D1=82=D0=B5=D0=BA=D1=81=D1=82=D0=BE=D0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - убрана подсказка «С ограничением по дням: N» из панели фильтров; - в карточке убран префикс «в таблице:» — осталось «занятия только по четвергам и пятницам», выделенное жёлтым (в тёмной теме — светлее); - класс .room-note.bad больше не использовался, удалён. --- src/frontend/static/app.js | 8 +------- src/frontend/static/style.css | 4 +++- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/src/frontend/static/app.js b/src/frontend/static/app.js index 6b4420c..a7f7038 100644 --- a/src/frontend/static/app.js +++ b/src/frontend/static/app.js @@ -678,12 +678,6 @@ function updateRoomsSummary() { notes.push(`скрыто ${unknown} ${pluralRu(unknown, "аудитория", "аудитории", "аудиторий")}: в таблице нет данных о вместимости`); } } - if (roomsState.mode !== "free") { - const restricted = all.filter((r) => !roomAvailableOn(r)).length; - if (restricted) { - notes.push(`с ограничением по дням: ${restricted}`); - } - } if (hint) { hint.textContent = notes .map((text) => text.charAt(0).toUpperCase() + text.slice(1)) @@ -731,7 +725,7 @@ function roomsCardHead(room) { ${escapeHTML(room.room)} ${attrs ? `
${escapeHTML(attrs)}
` : ""} ${info ? `
${escapeHTML(info)}
` : ""} - ${room.available_days ? `
в таблице: занятия только ${escapeHTML(daysPhrase(room.available_days))}
` : ""} + ${room.available_days ? `
занятия только ${escapeHTML(daysPhrase(room.available_days))}
` : ""} `; return head; } diff --git a/src/frontend/static/style.css b/src/frontend/static/style.css index c6e932b..47489a6 100644 --- a/src/frontend/static/style.css +++ b/src/frontend/static/style.css @@ -753,7 +753,9 @@ main { .room-card-free { padding-bottom: 12px; } .room-attrs { font-size: 13px; font-weight: 600; color: var(--text); margin-top: 3px; } .room-note { font-size: 12px; color: var(--muted); margin-top: 2px; } -.room-note.bad { color: var(--accent-red-bright); font-weight: 600; } +/* пометка про дни доступности — заметная, жёлтым */ +.room-note.days { color: #b8860b; font-weight: 600; } +[data-theme="dark"] .room-note.days { color: #e8b339; } .room-free-note { font-size: 13px; color: var(--muted); margin-top: 10px; }