manuscript: fix a quote in the report
This commit is contained in:
parent
dd5eae01f7
commit
54ef998e14
1 changed files with 1 additions and 1 deletions
|
|
@ -323,7 +323,7 @@
|
|||
var r = await api("adapt_report", { adaptation_id: AID, chapter: CH.n });
|
||||
if (!r.ok) { msg(r.error); return; }
|
||||
REPORT = r;
|
||||
var people = Object.keys(r.by_person || {}).map(function (k) { var v = r.by_person[k]; return '<li><b>' + esc(k.replace(/^human:/, "").replace(/^sim:/, "")) + '</b>' + (/^sim:/.test(k) ? ' <span class="tiny">(entries made by the assistant at this person's instruction, as a simulation)</span>' : '') + ' — ' + v.decisions + ' creative decisions, ' + v.rewrites + ' rewrites, ' + v.kept + ' kept as written, ' + v.flags + ' flagged, ' + v.reverts + ' put back</li>'; }).join("");
|
||||
var people = Object.keys(r.by_person || {}).map(function (k) { var v = r.by_person[k]; return '<li><b>' + esc(k.replace(/^human:/, "").replace(/^sim:/, "")) + '</b>' + (/^sim:/.test(k) ? ' <span class="tiny">(entries made by the assistant at this person’s instruction, as a simulation)</span>' : '') + ' — ' + v.decisions + ' creative decisions, ' + v.rewrites + ' rewrites, ' + v.kept + ' kept as written, ' + v.flags + ' flagged, ' + v.reverts + ' put back</li>'; }).join("");
|
||||
$("report").innerHTML = '<p><b>' + esc(r.adaptation.title) + '</b> by ' + esc(r.adaptation.author) + ' · ' + esc(r.adaptation.source) + (r.adaptation.edition ? '<br><span class="tiny">' + esc(r.adaptation.edition) + '</span>' : '') + '<br><span class="tiny">source fingerprint ' + esc(r.adaptation.source_sha256) + ' · record chain ' + (r.chain_ok ? 'intact' : 'BROKEN at ' + r.chain_broken_at) + ' · made ' + esc(when(r.made_at)) + '</span></p>'
|
||||
+ '<h3>Chapter ' + r.chapter.n + ' — ' + esc(r.chapter.title) + '</h3><p class="tiny">' + r.chapter.changed + ' of ' + r.chapter.paragraphs + ' paragraphs changed · ' + r.chapter.words_original + ' words in the source, ' + r.chapter.words_final + ' now</p>'
|
||||
+ '<h3>By person</h3><ul>' + (people || '<li class="tiny">nobody yet</li>') + '</ul>'
|
||||
|
|
|
|||
Loading…
Reference in a new issue