Browse Source

don't show project cog in issue sidebar if no permission (#14953)

mj-v1.14.3
Norwin 1 year ago
committed by GitHub
parent
commit
855a4f476e
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      templates/repo/issue/view_content/sidebar.tmpl

4
templates/repo/issue/view_content/sidebar.tmpl

@ -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>

Loading…
Cancel
Save