Stop showing the skip reason next to a skipped enclosure

The chip already names the kind ("image"), so the sentence beside it added
nothing. A reason is now shown only when the state is an error. It is
still recorded and still reaches the API and the log, where it is useful.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AdXho5tTkjFLeUXKbEjKBh
This commit is contained in:
2026-09-10 18:16:41 +00:00
parent 5190a29cdb
commit c77d152015

View File

@@ -781,8 +781,7 @@ function encBox(x){
return `<div class="encbox"> return `<div class="encbox">
<span class="chip ${esc(x.state)}">${x.state==='skipped'?kindOf(x):esc(x.state)}</span> <span class="chip ${esc(x.state)}">${x.state==='skipped'?kindOf(x):esc(x.state)}</span>
<span class="meta" style="flex:1">${esc(kindOf(x))}${size?' \u00b7 '+size:''}</span> <span class="meta" style="flex:1">${esc(kindOf(x))}${size?' \u00b7 '+size:''}</span>
${x.last_error&&x.state==='error'?`<span class="err">${esc(x.last_error)}</span>` ${x.state==='error'&&x.last_error?`<span class="err">${esc(x.last_error)}</span>`:''}
:(x.last_error?`<span class="meta">${esc(x.last_error)}</span>`:'')}
${viewable?`<a class="btn" href="${esc(x.url)}" target="_blank" rel="noopener noreferrer">View</a>`:''} ${viewable?`<a class="btn" href="${esc(x.url)}" target="_blank" rel="noopener noreferrer">View</a>`:''}
<button class="btn" data-a="get" data-enc="${x.id}">Download</button> <button class="btn" data-a="get" data-enc="${x.id}">Download</button>
</div>`; </div>`;