diff --git a/src/components/ItemDialogContentRenderer.js b/src/components/ItemDialogContentRenderer.js index 0b764aac..2c0709d6 100644 --- a/src/components/ItemDialogContentRenderer.js +++ b/src/components/ItemDialogContentRenderer.js @@ -12,6 +12,7 @@ const icons = require('../utils/icons'); module.exports.render = function({settings, tweetsCount, itemInfo}) { const closeUrl = stringifyParams; + const wideBadges = settings.big_picture.main.wide_badges || false; const formatDate = function(x) { if (x.text) { @@ -147,6 +148,17 @@ module.exports.render = function({settings, tweetsCount, itemInfo}) { `); } + const renderAllTags = function(itemInfo, tweetButton) { + const projectTag = renderProjectTag(itemInfo); + const parentTag = renderParentTag(itemInfo); + const openSourceTag = renderOpenSourceTag(itemInfo.oss); + const licenseTag = renderLicenseTag(itemInfo); + const badgeTag = renderBadgeTag(itemInfo); + return [projectTag, parentTag, openSourceTag, licenseTag, badgeTag, tweetButton].filter(Boolean).map(tag => { + return `