Merge pull request #6193 from mempool/mononaut/fix-core-hash

fix core subversion display on monitoring page
This commit is contained in:
wiz 2026-01-04 03:07:45 -10:00 committed by GitHub
commit 82113b7879
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -38,6 +38,8 @@
<td class="{{type}} only-large" [style.background-color]="type !== 'core' && host.hashes?.[type] ? '#' + host.hashes[type].slice(0, 6) : ''">
@if (type !== 'core' && host.hashes?.[type]) {
<a [style.color]="'white'" href="https://github.com/mempool/{{repoMap[type]}}/commit/{{ host.hashes[type] }}" target="_blank">{{ host.hashes[type].slice(0, 8) || '?' }}</a>
} @else if (host.hashes?.[type]) {
<span [style.color]="'white'" style="font-size: 10px;">{{ host.hashes[type] || '?' }}</span>
} @else {
<span>?</span>
}