Spaces:
Running
Running
multi-line verdict layout
Browse files- review.html +6 -6
review.html
CHANGED
|
@@ -278,18 +278,18 @@ function renderRef(sp) {
|
|
| 278 |
const n = cur().spans.findIndex(x => x.key === sp.key) + 1;
|
| 279 |
const subj = `“${esc(sp.surface)}” (#${n})`;
|
| 280 |
const flag = (youKeep === lunaKeep)
|
| 281 |
-
? `<span style="color:var(--mut)">
|
| 282 |
-
: `<b class="d">DISAGREE</b> <span style="color:var(--mut)">— ${subj}: Luna ${lunaKeep ? 'kept this, you\u2019re dropping' : 'dropped this, you\u2019re keeping'}</span>`;
|
| 283 |
let detail;
|
| 284 |
-
const why = sp.luna_reason ? ` · Luna's reasoning: “${esc(sp.luna_reason)}”` : '';
|
| 285 |
if (sp.luna_label !== undefined && sp.human_verdict) {
|
| 286 |
const g = lunaKeep ? '<b class="k">KEEP</b>' : '<b class="d">DROP</b>';
|
| 287 |
-
detail = `gold ${g} · human ${esc(sp.human_verdict)}${sp.human_note ? ' (' + esc(sp.human_note) + ')' : ''} · model ${sp.pred} @ ${sp.probe_score}
|
| 288 |
} else {
|
| 289 |
const g = lunaKeep ? '<b class="k">KEEP</b>' : '<b class="d">DROP</b>';
|
| 290 |
-
detail = `luna ${g} · probe ${esc(sp.probe_tag)} @ ${sp.probe_score}
|
| 291 |
}
|
| 292 |
-
|
|
|
|
| 293 |
}
|
| 294 |
function lightMeta() {
|
| 295 |
const mine = R[span().key];
|
|
|
|
| 278 |
const n = cur().spans.findIndex(x => x.key === sp.key) + 1;
|
| 279 |
const subj = `“${esc(sp.surface)}” (#${n})`;
|
| 280 |
const flag = (youKeep === lunaKeep)
|
| 281 |
+
? `<div>${subj}: <span style="color:var(--mut)">you agree with Luna</span></div>`
|
| 282 |
+
: `<div><b class="d">DISAGREE</b> <span style="color:var(--mut)">— ${subj}: Luna ${lunaKeep ? 'kept this, you\u2019re dropping' : 'dropped this, you\u2019re keeping'}</span></div>`;
|
| 283 |
let detail;
|
|
|
|
| 284 |
if (sp.luna_label !== undefined && sp.human_verdict) {
|
| 285 |
const g = lunaKeep ? '<b class="k">KEEP</b>' : '<b class="d">DROP</b>';
|
| 286 |
+
detail = `gold ${g} · human ${esc(sp.human_verdict)}${sp.human_note ? ' (' + esc(sp.human_note) + ')' : ''} · model ${sp.pred} @ ${sp.probe_score}`;
|
| 287 |
} else {
|
| 288 |
const g = lunaKeep ? '<b class="k">KEEP</b>' : '<b class="d">DROP</b>';
|
| 289 |
+
detail = `luna ${g} · probe ${esc(sp.probe_tag)} @ ${sp.probe_score}`;
|
| 290 |
}
|
| 291 |
+
const why = sp.luna_reason ? `<div style="color:var(--mut)">Luna's reasoning: “${esc(sp.luna_reason)}”</div>` : '';
|
| 292 |
+
$('ref').innerHTML = `${flag}<div>${detail}</div>${why}`;
|
| 293 |
}
|
| 294 |
function lightMeta() {
|
| 295 |
const mine = R[span().key];
|