Remove the status explanation line under the OCA module table
This commit is contained in:
1 parent
43d0fc4658
commit
a46e513f50
3 files changed
+1
-18
No files matched your search
@@ -724,14 +724,6 @@ html.js [data-rv].rv-in { opacity: 1; transform: none; }
|
|||||||
color: var(--muted);
|
color: var(--muted);
|
||||||
}
|
}
|
||||||
.mark.is-on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
|
.mark.is-on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
|
||||||
.oca-note {
|
|
||||||
margin: 14px 0 0;
|
|
||||||
max-width: 48em;
|
|
||||||
font-family: var(--serif);
|
|
||||||
font-style: italic;
|
|
||||||
font-size: var(--step-sm);
|
|
||||||
color: var(--muted);
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 600px) {
|
@media (max-width: 600px) {
|
||||||
.oca-table thead th:nth-child(2),
|
.oca-table thead th:nth-child(2),
|
||||||
|
|||||||
@@ -185,7 +185,6 @@
|
|||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<p class="oca-note" id="oca-note">Status read from the OCA module feed on page load. A tick means the module carries a branch for that series; a dash means it does not yet.</p>
|
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section class="section" id="community" aria-labelledby="community-title">
|
<section class="section" id="community" aria-labelledby="community-title">
|
||||||
|
|||||||
+1
-9
@@ -54,7 +54,6 @@
|
|||||||
|
|
||||||
/* ---------- OCA module status, live from the n8n feed ---------- */
|
/* ---------- OCA module status, live from the n8n feed ---------- */
|
||||||
var ocaBody = document.getElementById('oca-rows');
|
var ocaBody = document.getElementById('oca-rows');
|
||||||
var ocaNote = document.getElementById('oca-note');
|
|
||||||
|
|
||||||
function statusCell(ok, version) {
|
function statusCell(ok, version) {
|
||||||
var td = document.createElement('td');
|
var td = document.createElement('td');
|
||||||
@@ -105,16 +104,9 @@
|
|||||||
: (Array.isArray(payload) ? payload : null);
|
: (Array.isArray(payload) ? payload : null);
|
||||||
if (!rows || !rows.length) throw new Error('empty');
|
if (!rows || !rows.length) throw new Error('empty');
|
||||||
renderOca(rows);
|
renderOca(rows);
|
||||||
if (ocaNote) {
|
|
||||||
ocaNote.textContent = 'Status read from the OCA module feed at '
|
|
||||||
+ new Date().toLocaleTimeString([], { hour: '2-digit', minute: '2-digit' })
|
|
||||||
+ '. A tick means the module carries a branch for that series; a dash means it does not yet.';
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
.catch(function () {
|
.catch(function () {
|
||||||
if (ocaNote) {
|
/* keep the snapshot already in the markup */
|
||||||
ocaNote.textContent = 'The live feed could not be reached just now; the rows above are the last snapshot.';
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user