fix: Display unowned domains with a message
All checks were successful
Build Docker / BuildImage (push) Successful in 41s
Check Code Quality / RuffCheck (push) Successful in 51s

This commit is contained in:
2025-11-20 18:31:35 +11:00
parent 7c1c6a3a2a
commit 99bf4a6a1a

View File

@@ -619,10 +619,15 @@
<div class="tx-section"> <div class="tx-section">
<h4>Owner</h4> <h4>Owner</h4>
<div style="cursor: pointer; padding: 1rem; background: rgba(255, 107, 53, 0.1); border-radius: 8px;" onclick="window.location.href='/tx/${info.owner.hash}'"> ${ info.owner.hash == '0000000000000000000000000000000000000000000000000000000000000000' ? `
<div style="padding: 1rem; background: rgba(255, 107, 53, 0.1); border-radius: 8px;">
<div class="mono" style="word-break: break-all; color: #ff6b35;">This name is unowned</div>
</div>
` : `<div style="cursor: pointer; padding: 1rem; background: rgba(255, 107, 53, 0.1); border-radius: 8px;" onclick="window.location.href='/tx/${info.owner.hash}'">
<div class="mono" style="word-break: break-all; color: #ff6b35;">TX: ${info.owner.hash}</div> <div class="mono" style="word-break: break-all; color: #ff6b35;">TX: ${info.owner.hash}</div>
<div style="color: #b0b0b0; margin-top: 0.5rem;">Output Index: ${info.owner.index}</div> <div style="color: #b0b0b0; margin-top: 0.5rem;">Output Index: ${info.owner.index}</div>
</div> </div>
`}
</div> </div>
<div class="tx-section"> <div class="tx-section">