diff options
author | Cherrg <michael@gnehr.de> | 2019-06-29 11:18:49 +0200 |
---|---|---|
committer | zeripath <art27@cantab.net> | 2019-06-29 10:18:49 +0100 |
commit | 711f6dc9b0f77b35706bcb31a41b5f6a9e50d401 (patch) | |
tree | 24f6aa9c8bfef19e68e1c56bcbd31400f5c0c806 /templates/repo/diff/compare.tmpl | |
parent | e005b5f6e6c96fe0dc70ee9e0a171230b7adf732 (diff) | |
download | gitea-711f6dc9b0f77b35706bcb31a41b5f6a9e50d401.tar.gz gitea-711f6dc9b0f77b35706bcb31a41b5f6a9e50d401.zip |
Fix 7303 - remove unnessesary buttons on archived repos (#7326)
* archived repo - remove
- open/close button on issue list
- assigne person on issue list
Signed-off-by: Michael Gnehr <michael@gnehr.de>
* archived repo - remove
- comment field on issue view
- lock/unlock issue conversation button from sidebar on issue view
Signed-off-by: Michael Gnehr <michael@gnehr.de>
* archived repo - add 'compare commits' button to pull request
+ remove new pull request button from compare view
as the route is still working, and there is no need to be hidden
Signed-off-by: Michael Gnehr <michael@gnehr.de>
Diffstat (limited to 'templates/repo/diff/compare.tmpl')
-rw-r--r-- | templates/repo/diff/compare.tmpl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/templates/repo/diff/compare.tmpl b/templates/repo/diff/compare.tmpl index cc727422d7..877241fb39 100644 --- a/templates/repo/diff/compare.tmpl +++ b/templates/repo/diff/compare.tmpl @@ -56,9 +56,11 @@ {{.i18n.Tr "repo.pulls.has_pull_request" $.RepoLink $.RepoRelPath .PullRequest.Index | Safe}} </div> {{else}} + {{if not .Repository.IsArchived}} <div class="ui info message show-form-container"> <button class="ui button green show-form">{{.i18n.Tr "repo.pulls.new"}}</button> </div> + {{end}} <div class="pullrequest-form" style="display: none"> {{template "repo/issue/new_form" .}} </div> |