Show the close-up the checker zoomed in on, beside what it says about a hand
This commit is contained in:
parent
a66c6b352e
commit
a26e9aed6d
1 changed files with 6 additions and 2 deletions
|
|
@ -975,11 +975,15 @@
|
||||||
return '<div class="fchk ok">\u2713 picture checked - nothing wrong' + retried + '</div>';
|
return '<div class="fchk ok">\u2713 picture checked - nothing wrong' + retried + '</div>';
|
||||||
var rows = dup.map(function (d) {
|
var rows = dup.map(function (d) {
|
||||||
return { what: "The same person appears twice: " + d, serious: true }; })
|
return { what: "The same person appears twice: " + d, serious: true }; })
|
||||||
.concat(faults.map(function (f) { return { what: f.what, serious: f.severity === "serious" }; }));
|
.concat(faults.map(function (f) { return { what: f.what, serious: f.severity === "serious", zoom: f.zoom_url || "" }; }));
|
||||||
return '<div class="fchk ' + (fc.verdict === "broken" ? 'bad' : '') + '">'
|
return '<div class="fchk ' + (fc.verdict === "broken" ? 'bad' : '') + '">'
|
||||||
+ '<b>The checker looked at this picture and sees:</b>' + retried
|
+ '<b>The checker looked at this picture and sees:</b>' + retried
|
||||||
+ rows.map(function (r, i) {
|
+ rows.map(function (r, i) {
|
||||||
return '<span class="w' + (r.serious ? ' serious' : '') + '">' + esc(r.what)
|
// The close-up the checker was looking at. Nobody should have to
|
||||||
|
// take "six fingers" on trust - and sometimes it is simply wrong.
|
||||||
|
var zm = r.zoom ? '<img data-zoom="' + esc("what the checker zoomed in on") + '" src="' + esc(r.zoom)
|
||||||
|
+ '" alt="" style="height:54px;border-radius:5px;vertical-align:middle;margin-right:6px;border:1px solid var(--line)">' : '';
|
||||||
|
return '<span class="w' + (r.serious ? ' serious' : '') + '">' + zm + esc(r.what)
|
||||||
+ ' <button type="button" class="btn go" data-fixfault="' + esc(s.id) + '|' + i + '">Fix this</button></span>';
|
+ ' <button type="button" class="btn go" data-fixfault="' + esc(s.id) + '|' + i + '">Fix this</button></span>';
|
||||||
}).join("")
|
}).join("")
|
||||||
+ '</div>';
|
+ '</div>';
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue