<% const body = `

📊 Update Status

${installedCount || 0} Total Packages
${updateCount || 0} Updates Available
${installedCount - updateCount || 0} Up to Date

⚡ Quick Actions

${updateCount > 0 ? ` ` : ` `} 📦 View All Installed 🌐 Browse ContentDB
${updateCount === 0 ? `

✅ All Packages Up to Date!

All your installed packages are running the latest versions.

🎉

${installedCount === 0 ? 'You haven\\'t installed any packages yet.' : \`Checked \${installedCount} package\${installedCount !== 1 ? 's' : ''}.\` }

` : `
${updates.map(update => `

${update.latest.package.title || update.installed.name}

by ${update.installed.author}
Update Available
Current Version
${update.installed.version}
Installed: ${new Date(update.installed.installed_at).toLocaleDateString()}
Latest Version
${update.latest.release.title}
Released: ${new Date(update.latest.release.created_at).toLocaleDateString()}
Location: ${update.installed.install_location === 'global' ? 'Global' : update.installed.install_location.replace('world:', '')}
View on ContentDB
`).join('')}
`}
`; %> <%- include('../layout', { body: body, currentPage: 'contentdb', title: title }) %>