feat(цены): ссылка на стоимость услуг из чата

Страница цен была только в подвалах входа и правовых страниц — вошедший человек
её не находил. Теперь ссылка есть в окне остатка и в строке реквизитов под полем
ввода; в проверку добавлено, что обе стоят на месте.

Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
anor
2026-11-18 00:07:07 +10:00
co-authored by Claude Code
parent 7c5bb04f2e
commit 311af1c627
2 changed files with 8 additions and 2 deletions
+3 -1
View File
@@ -535,6 +535,7 @@ html { color-scheme: light; }
<div id="balance-window" style="font-size:.74rem;color:var(--text-muted);margin:6px 0;line-height:1.45"></div>
<div id="balance-price" style="font-size:.74rem;color:var(--text-muted);margin:6px 0;line-height:1.45"></div>
<div id="balance-unknown" style="display:none;font-size:.74rem;color:var(--accent);margin:6px 0;line-height:1.45">Часть ответов ещё не оценена — остаток может уточниться.</div>
<div style="font-size:.74rem;margin:6px 0;line-height:1.45"><a href="/static/pricing.html" target="_blank" rel="noopener" style="color:var(--accent)">Стоимость услуг и как считается цена</a></div>
<div style="display:flex;justify-content:flex-end;margin-top:10px">
<button type="button" onclick="closeBalancePopover()" style="padding:5px 12px;font-size:.8rem;background:transparent;border:1px solid var(--border);border-radius:7px;color:var(--text-muted);cursor:pointer">Закрыть</button>
</div>
@@ -579,7 +580,8 @@ html { color-scheme: light; }
<!-- Адрес для обратной связи (08.09.2026): вне ленты, иначе стирается при новом чате -->
<p id="contact-line">Обратная связь: <a id="contact-email" href="mailto:info@infosmeta.ru">info@infosmeta.ru</a>
&nbsp;·&nbsp; Новости: <a id="tg-channel-chat" class="tg-channel" href="https://t.me/infosmeta_ru" target="_blank" rel="noopener noreferrer">@infosmeta_ru</a></p>
<p id="requisites-line" style="text-align:center;font-size:.65rem;color:var(--text-muted);opacity:.55">Самозанятый Казин Юрий Владимирович · ИНН 272404581280 · г. Хабаровск</p>
<p id="requisites-line" style="text-align:center;font-size:.65rem;color:var(--text-muted);opacity:.55">Самозанятый Казин Юрий Владимирович · ИНН 272404581280 · г. Хабаровск ·
<a href="/static/pricing.html" target="_blank" rel="noopener" style="color:inherit;text-decoration:underline">стоимость услуг</a></p>
</div>
</div><!-- /.main-col -->
</div><!-- /.app-layout -->
+5 -1
View File
@@ -245,11 +245,15 @@ def test_contacts_and_pricing_served(env):
# Контакты вставлены картинкой на всех страницах, где человек их ищет, и обе версии
# переключаются темой (иначе на тёмной карточке снова побелеет).
for page in ("/static/privacy.html", "/static/terms.html", "/static/pricing.html",
"/register"):
"/register", "/"):
html = client.get(page).text
assert 'src="/static/contacts.png"' in html, page
assert 'src="/static/contacts-dark.png"' in html, page
assert '[data-theme="dark"] .contacts-img.contacts-dark' in html, page
# В самом чате цена видна под ответом, а «сколько стоит» — ссылкой в окне остатка
# и в строке реквизитов: иначе человек ищет цены и не находит (вопрос Хозяина 18.11).
chat = client.get("/").text
assert chat.count('href="/static/pricing.html"') >= 2
def test_admin_toggle_rbac_and_validation(env):