package templates import "gitgud/internal/domain" templ BrowseBlob(user *domain.User, repo *domain.Repository, ref string, blob *domain.FileBlob, highlighted string) { @Layout(blob.Path+" · gitgud", user) { @repoHeader(repo, "code")
{ ref } / { blob.Path }
{ humanSize(blob.Size) } · { langLabel(blob.Path) } Raw
if blob.IsBinary {
Binary file not shown.
} else {
@templ.Raw(highlighted)
}
} }