add helm badge to tags

This commit is contained in:
Evan Jarrett
2026-01-03 20:01:55 -06:00
parent 84866f5e74
commit 6dd612e157
3 changed files with 30 additions and 2 deletions
+20
View File
@@ -1569,6 +1569,26 @@ a.license-badge:hover {
margin-left: 0.5rem;
}
/* Helm chart badge */
.badge-helm {
display: inline-flex;
align-items: center;
gap: 0.25rem;
padding: 0.25rem 0.6rem;
font-size: 0.75rem;
font-weight: 600;
border-radius: 12px;
background: #0f1689;
color: #fff;
white-space: nowrap;
margin-left: 0.5rem;
}
.badge-helm svg {
width: 12px;
height: 12px;
}
.platform-badge {
display: inline-flex;
align-items: center;
+7 -1
View File
@@ -92,11 +92,17 @@ func (s *ManifestStore) Get(ctx context.Context, dgst digest.Digest, options ...
}
}
// Determine media type - prefer record field, fallback to blob mimeType for old records
mediaType := manifestRecord.MediaType
if mediaType == "" && manifestRecord.ManifestBlob != nil {
mediaType = manifestRecord.ManifestBlob.MimeType
}
// Parse the manifest based on media type
// For now, we'll return the raw bytes wrapped in a manifest object
// In a full implementation, you'd use distribution's manifest parsing
return &rawManifest{
mediaType: manifestRecord.MediaType,
mediaType: mediaType,
payload: ociManifest,
}, nil
}
+3 -1
View File
@@ -146,7 +146,9 @@
<div class="tag-item-header">
<div>
<span class="tag-name-large">{{ .Tag.Tag }}</span>
{{ if .IsMultiArch }}
{{ if eq .ArtifactType "helm-chart" }}
<span class="badge-helm"><i data-lucide="anchor"></i> Helm</span>
{{ else if .IsMultiArch }}
<span class="badge-multi">Multi-arch</span>
{{ end }}
{{ if .HasAttestations }}