|
83 | 83 |
|
84 | 84 | {{if .Permission.CanRead $.UnitTypeIssues}}
|
85 | 85 | <a class="{{if .PageIsIssueList}}active{{end}} item" href="{{.RepoLink}}/issues">
|
86 |
| - {{svg "octicon-issue-opened"}} {{.i18n.Tr "repo.issues"}} <span class="ui {{if not .Repository.NumOpenIssues}}gray{{else}}blue{{end}} small label">{{CountFmt .Repository.NumOpenIssues}}</span> |
| 86 | + {{svg "octicon-issue-opened"}} {{.i18n.Tr "repo.issues"}} |
| 87 | + {{if .Repository.NumOpenIssues}} |
| 88 | + <span class="ui blue small label">{{CountFmt .Repository.NumOpenIssues}}</span> |
| 89 | + {{end}} |
87 | 90 | </a>
|
88 | 91 | {{end}}
|
89 | 92 |
|
|
95 | 98 |
|
96 | 99 | {{if and .Repository.CanEnablePulls (.Permission.CanRead $.UnitTypePullRequests)}}
|
97 | 100 | <a class="{{if .PageIsPullList}}active{{end}} item" href="{{.RepoLink}}/pulls">
|
98 |
| - {{svg "octicon-git-pull-request"}} {{.i18n.Tr "repo.pulls"}} <span class="ui {{if not .Repository.NumOpenPulls}}gray{{else}}blue{{end}} small label">{{CountFmt .Repository.NumOpenPulls}}</span> |
| 101 | + {{svg "octicon-git-pull-request"}} {{.i18n.Tr "repo.pulls"}} |
| 102 | + {{if .Repository.NumOpenPulls}} |
| 103 | + <span class="ui blue small label">{{CountFmt .Repository.NumOpenPulls}}</span> |
| 104 | + {{end}} |
99 | 105 | </a>
|
100 | 106 | {{end}}
|
101 | 107 |
|
102 | 108 | {{ if and (not .UnitProjectsGlobalDisabled) (.Permission.CanRead $.UnitTypeProjects)}}
|
103 | 109 | <a href="{{.RepoLink}}/projects" class="{{ if .IsProjectsPage }}active{{end}} item">
|
104 | 110 | {{svg "octicon-project"}} {{.i18n.Tr "repo.project_board"}}
|
105 |
| - <span class="ui {{if not .Repository.NumOpenProjects}}gray{{else}}blue{{end}} small label"> |
106 |
| - {{CountFmt .Repository.NumOpenProjects}} |
107 |
| - </span> |
| 111 | + {{if .Repository.NumOpenProjects}} |
| 112 | + <span class="ui blue small label">{{CountFmt .Repository.NumOpenProjects}}</span> |
| 113 | + {{end}} |
108 | 114 | </a>
|
109 | 115 | {{ end }}
|
110 | 116 |
|
111 | 117 | {{if and (.Permission.CanRead $.UnitTypeReleases) (not .IsEmptyRepo) }}
|
112 | 118 | <a class="{{if .PageIsReleaseList}}active{{end}} item" href="{{.RepoLink}}/releases">
|
113 |
| - {{svg "octicon-tag"}} {{.i18n.Tr "repo.releases"}} <span class="ui {{if not .NumReleases}}gray{{else}}blue{{end}} small label">{{CountFmt .NumReleases}}</span> |
| 119 | + {{svg "octicon-tag"}} {{.i18n.Tr "repo.releases"}} |
| 120 | + {{if .NumReleases}} |
| 121 | + <span class="ui blue small label">{{CountFmt .NumReleases}}</span> |
| 122 | + {{end}} |
114 | 123 | </a>
|
115 | 124 | {{end}}
|
116 | 125 |
|
|
0 commit comments