diff --git a/booth/app.py b/booth/app.py index c547790..8f37bea 100644 --- a/booth/app.py +++ b/booth/app.py @@ -226,6 +226,8 @@ from booth.links import ( # noqa: E402 def human_dur(seconds: float) -> str: + if not math.isfinite(seconds): # as S5a fixup: int(nan) raises; say nothing we cannot know + return "—" s = int(seconds) if s <= 0: return "expired" diff --git a/booth/templates/_ask_inline.html b/booth/templates/_ask_inline.html index e51646b..90952d2 100644 --- a/booth/templates/_ask_inline.html +++ b/booth/templates/_ask_inline.html @@ -25,10 +25,10 @@ {% set skipped = a.answer and not picked %}
{{ q.prompt }}
+{{ q.prompt }}
{% if picked %}recorded: {{ qa.label }}{% if qa.notes %} — {{ qa.notes }}{% endif %}
{% elif skipped %}left blank — pick one any time, or leave it{% if qa and qa.notes %}; note: {{ qa.notes }}{% endif %}
{% endif %} -{{ a.title }}
{% endif %} + {% if a.title %}{{ a.title }}
{% endif %} {% for q in a.questions %}{{ question(a, q, form_id, name_url) }}{% endfor %} {{ submit(a, form_id, name_url) }} {% endif %} diff --git a/booth/templates/base.html b/booth/templates/base.html index 02677ee..dc1a24e 100644 --- a/booth/templates/base.html +++ b/booth/templates/base.html @@ -30,6 +30,52 @@ } catch (e) {} })(); +