diff options
author | Morlinest <Morlinest@users.noreply.github.com> | 2017-04-23 02:55:02 +0200 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2017-04-23 08:55:02 +0800 |
commit | 5b8fe1e181d80d002bb348ed8a4b152d0d52a726 (patch) | |
tree | 11f915a47bcc448d50330223999dbcfb93773cb3 /templates/repo/settings | |
parent | 4bea2191286dd5a9c89696d3e8cd506caf997c7e (diff) | |
download | gitea-5b8fe1e181d80d002bb348ed8a4b152d0d52a726.tar.gz gitea-5b8fe1e181d80d002bb348ed8a4b152d0d52a726.zip |
Do not show empty collaborators segment (#1531)
Diffstat (limited to 'templates/repo/settings')
-rw-r--r-- | templates/repo/settings/collaboration.tmpl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/templates/repo/settings/collaboration.tmpl b/templates/repo/settings/collaboration.tmpl index e732b3c9d3..7d1f48340e 100644 --- a/templates/repo/settings/collaboration.tmpl +++ b/templates/repo/settings/collaboration.tmpl @@ -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}} |