A custom index.html is returned verbatim, so booth.html's asks panel never rendered there — a valid ask (emmie-anchor/anchor.ask.json) was listed by the CLI and shown nowhere, with nothing to say so. - panel extracted to _asks.html; new GET /b/<name>/asks standalone page - verbatim pages get an amber '? N open asks' chip beside the back chip - POST /answer honours back=asks so answering returns to that page - single-question asks now keep an optional 'title' (was silently dropped) - README + routes table; 8 regression tests; v0.1.12
20 lines
935 B
HTML
20 lines
935 B
HTML
{% extends "base.html" %}
|
||
{% block title %}{{ name }} · asks · The Booth{% endblock %}
|
||
{% block content %}
|
||
{# The asks page for a booth whose own index.html is served VERBATIM. That page
|
||
cannot render the panel inline (it is returned untouched by design), so the
|
||
injected chip links here instead. Same forms, same POST target — only the
|
||
redirect differs, so answering lands back here rather than on the report. #}
|
||
<div class="boothhead">
|
||
<a class="back" href="/b/{{ name_url }}/">‹ {{ name }}</a>
|
||
<h1>Asks</h1>
|
||
{% set open_asks = asks|selectattr('answer', 'none')|rejectattr('error')|list|length %}
|
||
<span class="sub">{% if open_asks %}<span class="badge badge-ask">{{ open_asks }} open</span> · {% endif %}{{ asks|length }} ask{{ '' if asks|length == 1 else 's' }}</span>
|
||
</div>
|
||
{% if asks %}
|
||
{% include "_asks.html" %}
|
||
{% else %}
|
||
<div class="empty">This booth has no asks.</div>
|
||
{% endif %}
|
||
{% endblock %}
|