Skip to content

Commit e06acbe

Browse files
committed
hide 'new issue' button on pull, add margin
1 parent 8060169 commit e06acbe

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

templates/repo/issue/view_title.tmpl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<div class="sixteen wide column title gt-mb-3">
2-
<div class="issue-title gt-mb-3 gt-df gt-ac" id="issue-title-wrapper">
2+
<div class="issue-title gt-mb-4 gt-df gt-ac" id="issue-title-wrapper">
33
<h1 class="gt-f1 gt-word-break">
44
<span id="issue-title">{{RenderIssueTitle $.Context .Issue.Title $.RepoLink $.Repository.ComposeMetas | RenderCodeBlock}}</span>
55
<span class="index">#{{.Issue.Index}}</span>
@@ -10,7 +10,9 @@
1010
{{if and (or .HasIssuesOrPullsWritePermission .IsIssuePoster) (not .Repository.IsArchived)}}
1111
<button id="edit-title" class="ui basic button secondary edit-button not-in-edit">{{.locale.Tr "repo.issues.edit"}}</button>
1212
{{end}}
13-
<a role="button" class="ui green button new-issue-button" href="{{.RepoLink}}/issues/new{{if .NewIssueChooseTemplate}}/choose{{end}}">{{.locale.Tr "repo.issues.new"}}</a>
13+
{{if not .Issue.IsPull}}
14+
<a role="button" class="ui green button new-issue-button" href="{{.RepoLink}}/issues/new{{if .NewIssueChooseTemplate}}/choose{{end}}">{{.locale.Tr "repo.issues.new"}}</a>
15+
{{end}}
1416
{{if and (or .HasIssuesOrPullsWritePermission .IsIssuePoster) (not .Repository.IsArchived)}}
1517
<div class="edit-buttons gt-df">
1618
<button id="cancel-edit-title" class="ui basic button secondary in-edit gt-hidden">{{.locale.Tr "repo.issues.cancel"}}</button>

0 commit comments

Comments
 (0)