package templates import "gitgud/internal/domain" templ CommitDetail(user *domain.User, repo *domain.Repository, commit *domain.Commit, diffs []domain.FileDiff) { @Layout("Commit "+commit.ShortHash+" ยท "+repo.Name, user) { @repoHeader(repo, "code")
{ firstLine(commit.Message) }
@avatar(commit.Author, "size-5") { commit.Author } committed on { fmtTime(commit.When) } commit { commit.ShortHash }
@diffFiles(diffs) } }