Skip to content

Commit c8a8fc6

Browse files
committed
Don't display create branch link for closed issue
1 parent 66681c3 commit c8a8fc6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

templates/repo/issue/view_content/sidebar_development.tmpl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
<span class="text"><strong>{{ctx.Locale.Tr "repo.issues.development"}}</strong></span>
22
<div class="ui devlinks list">
3+
{{if not .Issue.IsClosed}}
34
<div>
4-
<a class="tw-mt-1 fluid ui show-modal" data-modal="#create_branch">{{ctx.Locale.Tr "repo.branch.new_branch"}}</a>
5+
<a class="tw-mt-1 fluid ui show-modal" data-modal="#create_branch">{{ctx.Locale.Tr "repo.branch.new_branch"}}</a>
56
</div>
7+
{{end}}
68
{{range .DevLinks}}
79
{{if .PullRequest}}
810
<span>{{template "shared/issueicon" .PullRequest.Issue}}
@@ -60,7 +62,6 @@
6062
<label for="source_repository">{{ctx.Locale.Tr "repository"}}</label>
6163
<div class="ui fluid dropdown selection">
6264
<select name="repo_id">
63-
<option value=""> </option>
6465
{{range .AllowedRepos}}
6566
<option value="{{.ID}}">{{.FullName}}</option>
6667
{{end}}
@@ -81,7 +82,6 @@
8182
<label for="source_branch_name">{{ctx.Locale.Tr "repo.issues.base_branch"}}</label>
8283
<div class="ui fluid dropdown selection">
8384
<select name="source_branch_name">
84-
<option value=""> </option>
8585
{{range .Branches}}
8686
<option value="{{.}}"{{if eq . $.Issue.Ref}} checked{{end}}>{{.}}</option>
8787
{{end}}

0 commit comments

Comments
 (0)