diff options
author | Unknwon <u@gogs.io> | 2015-11-16 11:20:11 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-11-16 11:20:11 -0500 |
commit | d370effca5c0544c4a1877e1fa9b08703feaa82d (patch) | |
tree | dab7a238668cfb1eb9144671d9a3a9f1e5033f7a /templates/repo/issue/view.tmpl | |
parent | 29ed7872f807db590d9127cf9f447fb0ac34b40c (diff) | |
download | gitea-d370effca5c0544c4a1877e1fa9b08703feaa82d.tar.gz gitea-d370effca5c0544c4a1877e1fa9b08703feaa82d.zip |
minor fix for #1961
Diffstat (limited to 'templates/repo/issue/view.tmpl')
-rw-r--r-- | templates/repo/issue/view.tmpl | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/templates/repo/issue/view.tmpl b/templates/repo/issue/view.tmpl index dff8910b88..506e4e3f04 100644 --- a/templates/repo/issue/view.tmpl +++ b/templates/repo/issue/view.tmpl @@ -5,7 +5,11 @@ <div class="navbar"> {{template "repo/issue/navbar" .}} <div class="ui right"> - <a class="ui green button" href="{{$.RepoLink}}/issues/new">{{.i18n.Tr "repo.issues.new"}}</a> + {{if .PageIsIssueList}} + <a class="ui green button" href="{{.RepoLink}}/issues/new">{{.i18n.Tr "repo.issues.new"}}</a> + {{else}} + <a class="ui green button {{if not .HasForkedRepo}}disabled{{end}}" href="{{.RepoLink}}/compare/{{.BranchName}}...{{.SignedUserName}}:{{.BranchName}}">{{.i18n.Tr "repo.pulls.new"}}</a> + {{end}} </div> </div> <div class="ui divider"></div> |