mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	don't show project cog in issue sidebar if no permission (#14953)
This commit is contained in:
		@@ -195,7 +195,9 @@
 | 
			
		||||
			<div class="ui {{if or (not .HasIssuesOrPullsWritePermission) .Repository.IsArchived}}disabled{{end}} floating jump select-project dropdown">
 | 
			
		||||
				<span class="text">
 | 
			
		||||
					<strong>{{.i18n.Tr "repo.issues.new.projects"}}</strong>
 | 
			
		||||
					{{svg "octicon-gear"}}
 | 
			
		||||
					{{if and .HasIssuesOrPullsWritePermission (not .Repository.IsArchived)}}
 | 
			
		||||
						{{svg "octicon-gear"}}
 | 
			
		||||
					{{end}}
 | 
			
		||||
				</span>
 | 
			
		||||
				<div class="menu" data-action="update" data-issue-id="{{$.Issue.ID}}" data-update-url="{{$.RepoLink}}/issues/projects">
 | 
			
		||||
					<div class="no-select item">{{.i18n.Tr "repo.issues.new.clear_projects"}}</div>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user