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>
This commit is contained in:
@ -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>
|
||||
|
Reference in New Issue
Block a user