diff --git a/internal/glance/templates/repository.html b/internal/glance/templates/repository.html index d0d1b8e2..0dbe9383 100644 --- a/internal/glance/templates/repository.html +++ b/internal/glance/templates/repository.html @@ -7,7 +7,7 @@
  • {{ .Repository.Forks | formatNumber }} forks
  • -{{ if gt (len .Repository.Commits) 0 }} +{{ if .Repository.ShowCommits }}
    Last {{ .CommitsLimit }} commits
    @@ -15,6 +15,11 @@ {{ range .Repository.Commits }}
  • {{ end }} + {{ if .Repository.FixedHeight }} + {{ range .Repository.CommitsDiff }} +
  •  
  • + {{ end }} + {{ end }}
    {{ end }} -{{ if gt (len .Repository.PullRequests) 0 }} +{{ if .Repository.ShowPullRequests }}
    Open pull requests ({{ .Repository.OpenPullRequests | formatNumber }} total)
    @@ -32,6 +37,11 @@ {{ range .Repository.PullRequests }}
  • {{ end }} + {{ if .Repository.FixedHeight }} + {{ range .Repository.PullRequestsDiff }} +
  •  
  • + {{ end }} + {{ end }}
    {{ end }} -{{ if gt (len .Repository.Issues) 0 }} +{{ if .Repository.ShowIssues }}
    Open issues ({{ .Repository.OpenIssues | formatNumber }} total)
    @@ -49,6 +59,11 @@ {{ range .Repository.Issues }}
  • {{ end }} + {{ if .Repository.FixedHeight }} + {{ range .Repository.IssuesDiff }} +
  •  
  • + {{ end }} + {{ end }}