Show why a picture could not be redrawn

This commit is contained in:
gator 2026-09-19 15:38:51 +00:00
parent 03052f7182
commit 39c41c689d

View file

@ -853,13 +853,16 @@
// picture is what the shot is filmed from, so a fault here is inherited by // picture is what the shot is filmed from, so a fault here is inherited by
// the film and cannot be fixed by filming again. // the film and cannot be fixed by filming again.
function frameFaultHtml(s) { function frameFaultHtml(s) {
if (!s.opening_url || s.clip_url) return ""; // Why the last attempt at these pictures failed, in words - an author
// looking at an unchanged frame otherwise concludes the button is broken.
var err = s.draw_error ? '<p class="cont" style="color:#b4531f">' + esc(s.draw_error) + '</p>' : "";
if (!s.opening_url || s.clip_url) return err;
if (s.fixing || s.drawing) if (s.fixing || s.drawing)
return '<p class="busy">Redrawing this scene\u2019s pictures from your note\u2026</p>'; return '<p class="busy">Redrawing this scene\u2019s pictures from your note\u2026</p>';
return '<div class="ffault"><input type="text" id="ff-' + esc(s.id) + '" maxlength="400" ' return '<div class="ffault"><input type="text" id="ff-' + esc(s.id) + '" maxlength="400" '
+ 'placeholder="Something wrong with this picture? Say what you see \u2014 \u201cit should be night\u201d, ' + 'placeholder="Something wrong with this picture? Say what you see \u2014 \u201cit should be night\u201d, '
+ '\u201cthere should be nobody else in the garden\u201d\u2026">' + '\u201cthere should be nobody else in the garden\u201d\u2026">'
+ '<button type="button" class="btn go" data-ffgo="' + esc(s.id) + '">Redraw &middot; $0.16</button></div>'; + '<button type="button" class="btn go" data-ffgo="' + esc(s.id) + '">Redraw &middot; $0.16</button></div>' + err;
} }
// WHO IS IN THIS SCENE, as they look in it. This is where an author changes // WHO IS IN THIS SCENE, as they look in it. This is where an author changes