Browse Source

Do not show empty collaborators segment (#1531)

for-closed-social
Morlinest 7 years ago
committed by Lunny Xiao
parent
commit
5b8fe1e181
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      templates/repo/settings/collaboration.tmpl

+ 2
- 0
templates/repo/settings/collaboration.tmpl View File

@ -7,6 +7,7 @@
<h4 class="ui top attached header">
{{.i18n.Tr "repo.settings.collaboration"}}
</h4>
{{if .Collaborators}}
<div class="ui attached segment collaborator list">
{{range .Collaborators}}
<div class="item ui grid">
@ -36,6 +37,7 @@
</div>
{{end}}
</div>
{{end}}
<div class="ui bottom attached segment">
<form class="ui form" id="repo-collab-form" action="{{.Link}}" method="post">
{{.CsrfTokenHtml}}

Loading…
Cancel
Save