Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions app/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,12 @@
const typeBadge = $(`<span class="badge rounded-pill ${typeBadgeClass} game-tag"></span>`).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 = $(`<span class="badge rounded-pill ${ownedBadgeClass} game-tag"></span>`).text(ownedText);
tagsContainer.append(ownedBadge);

if (game.has_latest_version !== undefined) {
const versionBadge = $(`<span class="badge rounded-pill game-tag version-tag" title="${game.name} [${game.title_id}] Updates"></span>`)
.addClass(`text-bg-${game.has_latest_version ? 'success' : 'warning'}`)
Expand Down