Difference between revisions of "Widget:DCTList"
From LINKS Community Center
(2 intermediate revisions by the same user not shown) | |||
Line 585: | Line 585: | ||
/** @type {DCT} */ | /** @type {DCT} */ | ||
const dct = cell.getData(); | const dct = cell.getData(); | ||
− | let out = '<a href="' + dct.url + '">' + dct.name + '</a><br>'; | + | let out = '<a href="' + dct.url + '" translate="no">' + dct.name + '</a><br>'; |
+ | if (dct.archived.toLowerCase() === 'yes') { | ||
+ | out += '<small><span class="badge lcc-badge-grey">Archived</span></small> '; | ||
+ | } | ||
if (dct.businessModel.includes(FREE_KEY)) { | if (dct.businessModel.includes(FREE_KEY)) { | ||
out += '<small><span class="badge lcc-badge-green">' + FREE_KEY + '</span></small> '; | out += '<small><span class="badge lcc-badge-green">' + FREE_KEY + '</span></small> '; | ||
Line 688: | Line 691: | ||
// ... | // ... | ||
} | } | ||
+ | |||
+ | applyFilters(); | ||
}); | }); | ||
Latest revision as of 15:30, 19 December 2023
DCT list widget.
Currently in use – do not modify!