diff --git a/app/templates/index.html b/app/templates/index.html index e4848b50..20266216 100644 --- a/app/templates/index.html +++ b/app/templates/index.html @@ -212,6 +212,12 @@ const typeBadge = $(``).text(game.app_type); tagsContainer.append(typeBadge); + // Add owned/missing tag + const ownedBadgeClass = game.owned ? 'text-bg-success' : 'text-bg-danger'; + const ownedText = game.owned ? 'Owned' : 'Missing'; + const ownedBadge = $(``).text(ownedText); + tagsContainer.append(ownedBadge); + if (game.has_latest_version !== undefined) { const versionBadge = $(``) .addClass(`text-bg-${game.has_latest_version ? 'success' : 'warning'}`)