forked from Mirrors/keyoxide-web
Hide proofs if none present
This commit is contained in:
parent
d8952c8ea3
commit
a504e8fd9d
1 changed files with 18 additions and 16 deletions
|
@ -213,23 +213,25 @@ async function displayProfile(opts) {
|
||||||
feedback += `<div class="profileDataItem__value"><a href="https://keys.openpgp.org/pks/lookup?op=get&options=mr&search=0x${keyData.fingerprint}">${keyData.fingerprint}</a></div>`;
|
feedback += `<div class="profileDataItem__value"><a href="https://keys.openpgp.org/pks/lookup?op=get&options=mr&search=0x${keyData.fingerprint}">${keyData.fingerprint}</a></div>`;
|
||||||
feedback += `</div>`;
|
feedback += `</div>`;
|
||||||
|
|
||||||
feedback += `<div class="profileDataItem profileDataItem--separator profileDataItem--noLabel">`;
|
if (verifications.length > 0) {
|
||||||
feedback += `<div class="profileDataItem__label"></div>`;
|
feedback += `<div class="profileDataItem profileDataItem--separator profileDataItem--noLabel">`;
|
||||||
feedback += `<div class="profileDataItem__value">proofs</div>`;
|
feedback += `<div class="profileDataItem__label"></div>`;
|
||||||
feedback += `</div>`;
|
feedback += `<div class="profileDataItem__value">proofs</div>`;
|
||||||
for (var i = 0; i < verifications.length; i++) {
|
feedback += `</div>`;
|
||||||
if (!verifications[i].type) { continue; }
|
for (var i = 0; i < verifications.length; i++) {
|
||||||
feedback += `<div class="profileDataItem">`;
|
if (!verifications[i].type) { continue; }
|
||||||
feedback += `<div class="profileDataItem__label">${verifications[i].type}</div>`;
|
feedback += `<div class="profileDataItem">`;
|
||||||
feedback += `<div class="profileDataItem__value">`;
|
feedback += `<div class="profileDataItem__label">${verifications[i].type}</div>`;
|
||||||
feedback += `<a class="proofDisplay" href="${verifications[i].url}">${verifications[i].display}</a>`;
|
feedback += `<div class="profileDataItem__value">`;
|
||||||
if (verifications[i].isVerified) {
|
feedback += `<a class="proofDisplay" href="${verifications[i].url}">${verifications[i].display}</a>`;
|
||||||
feedback += `<a class="proofUrl proofUrl--verified" href="${verifications[i].proofUrl}">verified ✔</a>`;
|
if (verifications[i].isVerified) {
|
||||||
} else {
|
feedback += `<a class="proofUrl proofUrl--verified" href="${verifications[i].proofUrl}">verified ✔</a>`;
|
||||||
feedback += `<a class="proofUrl" href="${verifications[i].proofUrl}">proof</a>`;
|
} else {
|
||||||
|
feedback += `<a class="proofUrl" href="${verifications[i].proofUrl}">proof</a>`;
|
||||||
|
}
|
||||||
|
feedback += `</div>`;
|
||||||
|
feedback += `</div>`;
|
||||||
}
|
}
|
||||||
feedback += `</div>`;
|
|
||||||
feedback += `</div>`;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
feedback += `<div class="profileDataItem profileDataItem--separator profileDataItem--noLabel">`;
|
feedback += `<div class="profileDataItem profileDataItem--separator profileDataItem--noLabel">`;
|
||||||
|
|
Loading…
Reference in a new issue