MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / profileInfoItem

Function profileInfoItem

deployments/desktop/static/desktop.js:4999–5004  ·  view source on GitHub ↗
(label, value, variant = "")

Source from the content-addressed store, hash-verified

4997 }
4998
4999 function profileInfoItem(label, value, variant = "") {
5000 const normalized = firstText(value) || ui().settings.profileFields.notRecorded;
5001 const emptyClass = normalized === ui().settings.profileFields.notRecorded ? " empty" : "";
5002 const variantClass = variant ? ` ${variant}` : "";
5003 return `<div class="profile-info-item${variantClass}${emptyClass}"><span>${escapeHtml(label)}</span><strong>${escapeHtml(normalized)}</strong></div>`;
5004 }
5005
5006 function profileEditItem(label, id, value, variant = "wide", multiline = false, hint = "") {
5007 const variantClass = variant ? ` ${variant}` : "";

Callers 1

renderProfileInfoGridFunction · 0.85

Calls 3

firstTextFunction · 0.85
uiFunction · 0.85
escapeHtmlFunction · 0.70

Tested by

no test coverage detected