mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	Remove 'primary' class from tab counter labels (#22687)
Using the primary color for each label counter makes the use of color redundant, as well as suggesting this is a call to action. Use the base grey color instead. 
This commit is contained in:
		@@ -163,7 +163,7 @@
 | 
				
			|||||||
					<a class="{{if .PageIsIssueList}}active {{end}}item" href="{{.RepoLink}}/issues">
 | 
										<a class="{{if .PageIsIssueList}}active {{end}}item" href="{{.RepoLink}}/issues">
 | 
				
			||||||
						{{svg "octicon-issue-opened"}} {{.locale.Tr "repo.issues"}}
 | 
											{{svg "octicon-issue-opened"}} {{.locale.Tr "repo.issues"}}
 | 
				
			||||||
						{{if .Repository.NumOpenIssues}}
 | 
											{{if .Repository.NumOpenIssues}}
 | 
				
			||||||
							<span class="ui primary small label">{{CountFmt .Repository.NumOpenIssues}}</span>
 | 
												<span class="ui small label">{{CountFmt .Repository.NumOpenIssues}}</span>
 | 
				
			||||||
						{{end}}
 | 
											{{end}}
 | 
				
			||||||
					</a>
 | 
										</a>
 | 
				
			||||||
				{{end}}
 | 
									{{end}}
 | 
				
			||||||
@@ -178,7 +178,7 @@
 | 
				
			|||||||
					<a class="{{if .PageIsPullList}}active {{end}}item" href="{{.RepoLink}}/pulls">
 | 
										<a class="{{if .PageIsPullList}}active {{end}}item" href="{{.RepoLink}}/pulls">
 | 
				
			||||||
						{{svg "octicon-git-pull-request"}} {{.locale.Tr "repo.pulls"}}
 | 
											{{svg "octicon-git-pull-request"}} {{.locale.Tr "repo.pulls"}}
 | 
				
			||||||
						{{if .Repository.NumOpenPulls}}
 | 
											{{if .Repository.NumOpenPulls}}
 | 
				
			||||||
							<span class="ui primary small label">{{CountFmt .Repository.NumOpenPulls}}</span>
 | 
												<span class="ui small label">{{CountFmt .Repository.NumOpenPulls}}</span>
 | 
				
			||||||
						{{end}}
 | 
											{{end}}
 | 
				
			||||||
					</a>
 | 
										</a>
 | 
				
			||||||
				{{end}}
 | 
									{{end}}
 | 
				
			||||||
@@ -187,7 +187,7 @@
 | 
				
			|||||||
					<a class="{{if .PageIsActions}}active {{end}}item" href="{{.RepoLink}}/actions">
 | 
										<a class="{{if .PageIsActions}}active {{end}}item" href="{{.RepoLink}}/actions">
 | 
				
			||||||
						{{svg "octicon-play"}} {{.locale.Tr "actions.actions"}}
 | 
											{{svg "octicon-play"}} {{.locale.Tr "actions.actions"}}
 | 
				
			||||||
						{{if .Repository.NumOpenActionRuns}}
 | 
											{{if .Repository.NumOpenActionRuns}}
 | 
				
			||||||
							<span class="ui primary small label">{{CountFmt .Repository.NumOpenActionRuns}}</span>
 | 
												<span class="ui small label">{{CountFmt .Repository.NumOpenActionRuns}}</span>
 | 
				
			||||||
						{{end}}
 | 
											{{end}}
 | 
				
			||||||
					</a>
 | 
										</a>
 | 
				
			||||||
				{{end}}
 | 
									{{end}}
 | 
				
			||||||
@@ -202,7 +202,7 @@
 | 
				
			|||||||
					<a href="{{.RepoLink}}/projects" class="{{if .IsProjectsPage}}active {{end}}item">
 | 
										<a href="{{.RepoLink}}/projects" class="{{if .IsProjectsPage}}active {{end}}item">
 | 
				
			||||||
						{{svg "octicon-project"}} {{.locale.Tr "repo.project_board"}}
 | 
											{{svg "octicon-project"}} {{.locale.Tr "repo.project_board"}}
 | 
				
			||||||
						{{if .Repository.NumOpenProjects}}
 | 
											{{if .Repository.NumOpenProjects}}
 | 
				
			||||||
							<span class="ui primary small label">{{CountFmt .Repository.NumOpenProjects}}</span>
 | 
												<span class="ui small label">{{CountFmt .Repository.NumOpenProjects}}</span>
 | 
				
			||||||
						{{end}}
 | 
											{{end}}
 | 
				
			||||||
					</a>
 | 
										</a>
 | 
				
			||||||
				{{end}}
 | 
									{{end}}
 | 
				
			||||||
@@ -211,7 +211,7 @@
 | 
				
			|||||||
				<a class="{{if .PageIsReleaseList}}active {{end}}item" href="{{.RepoLink}}/releases">
 | 
									<a class="{{if .PageIsReleaseList}}active {{end}}item" href="{{.RepoLink}}/releases">
 | 
				
			||||||
					{{svg "octicon-tag"}} {{.locale.Tr "repo.releases"}}
 | 
										{{svg "octicon-tag"}} {{.locale.Tr "repo.releases"}}
 | 
				
			||||||
					{{if .NumReleases}}
 | 
										{{if .NumReleases}}
 | 
				
			||||||
						<span class="ui primary small label">{{CountFmt .NumReleases}}</span>
 | 
											<span class="ui small label">{{CountFmt .NumReleases}}</span>
 | 
				
			||||||
					{{end}}
 | 
										{{end}}
 | 
				
			||||||
				</a>
 | 
									</a>
 | 
				
			||||||
				{{end}}
 | 
									{{end}}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user