fr1: books.ruzzy.dev — читалка с ИИ (PDF/EPUB → главы, рекапы, перевод/объяснение выделенного, вопросы с RAG; Claude Code по подписке без инструментов; вход через Telegram)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
8fd84239be
commit
9aab5b3f40
@@ -0,0 +1,14 @@
|
||||
{% extends "base.html" %}
|
||||
{% block body %}
|
||||
<form action="/search" method="get" class="row">
|
||||
<input name="q" value="{{ q }}" placeholder="Что найти" autofocus>
|
||||
{% if book %}<input type="hidden" name="book" value="{{ book }}">{% endif %}<button>Найти</button></form>
|
||||
{% if q and not hits %}<p class="muted">Ничего не нашлось.</p>{% endif %}
|
||||
<ul class="hits">
|
||||
{% for h in hits %}
|
||||
<li><a href="/book/{{ h.book_id }}/ch/{{ h.ch_idx }}#p{{ h.page }}"><b>{{ h.book_title }}</b> — гл. {{ h.ch_idx }} «{{ h.ch_title }}», с. {{ h.page }}</a>
|
||||
{% if h.kind == 'recap' %}<span class="small">📝 рекап</span>{% endif %}
|
||||
<p class="small">{{ h.text[:400] }}{% if h.text|length > 400 %}…{% endif %}</p></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user