Fixes
This commit is contained in:
1 parent
ce73c76126
commit
84c07a912b
5 files changed
+44
-133
No files matched your search
@@ -1,5 +1,4 @@
|
||||
{# The footer under the book list: what this device is running, and the one
|
||||
button that makes it forget.
|
||||
{# The footer under the book list: what this device is running.
|
||||
|
||||
Both digests are stamped into sw.js by server.py from the files on disk:
|
||||
shell covers assets/, the hand-written chrome, and library covers bible/,
|
||||
@@ -12,10 +11,9 @@
|
||||
the next full load -- which is the reload you would do to check it anyway.
|
||||
|
||||
version is null in one case: boot.html composed this page, so there was no
|
||||
worker to ask. The line is then absent, which is the honest answer -- no
|
||||
worker means no version, and the bookmark slot in the navbar is empty for
|
||||
the same reason. The button stays, because a device with no worker and a
|
||||
full cache is exactly the state worth clearing.
|
||||
worker to ask. Nothing is rendered at all then, which is the honest answer
|
||||
-- no worker means no version, and the bookmark slot in the navbar is empty
|
||||
for the same reason. app.js finds no element and leaves it at that.
|
||||
|
||||
Rendered on every page and shown under the book list alone. Populating it
|
||||
only for the index would look like the smaller change and would not work:
|
||||
@@ -23,17 +21,11 @@
|
||||
book list swaps #content without rebuilding anything around it. So the page
|
||||
decides, not the composer -- app.js looks for the index in #content after
|
||||
every swap. The body class this was rendered with cannot be asked, for the
|
||||
same reason: it goes stale the moment a link is clicked.
|
||||
|
||||
The button is a plain <button> outside any form, which is the whole of why
|
||||
hx-boost on <body> leaves it alone: htmx boosts links, forms, and submits
|
||||
belonging to one. resetApp() in js/app.js is what it runs. #}
|
||||
<div class="app-version d-none text-center mt-5 mb-2" id="app-version">
|
||||
same reason: it goes stale the moment a link is clicked. #}
|
||||
{%- if version %}
|
||||
<p class="app-version-digests form-text mt-0 mb-2">
|
||||
<div class="app-version d-none text-center mt-5 mb-2" id="app-version">
|
||||
<p class="app-version-digests form-text m-0">
|
||||
shell {{ version.shell }} · library {{ version.library }}
|
||||
</p>
|
||||
{%- endif %}
|
||||
<button type="button" class="app-reset btn btn-outline-secondary btn-sm"
|
||||
id="app-reset">Reset app</button>
|
||||
</div>
|
||||
{%- endif %}
|
||||
Reference in new issue
Block a user