Skip to content

Commit 5b8fe1e

Browse files
Morlinestlunny
authored andcommitted
Do not show empty collaborators segment (#1531)
1 parent 4bea219 commit 5b8fe1e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

templates/repo/settings/collaboration.tmpl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
<h4 class="ui top attached header">
88
{{.i18n.Tr "repo.settings.collaboration"}}
99
</h4>
10+
{{if .Collaborators}}
1011
<div class="ui attached segment collaborator list">
1112
{{range .Collaborators}}
1213
<div class="item ui grid">
@@ -36,6 +37,7 @@
3637
</div>
3738
{{end}}
3839
</div>
40+
{{end}}
3941
<div class="ui bottom attached segment">
4042
<form class="ui form" id="repo-collab-form" action="{{.Link}}" method="post">
4143
{{.CsrfTokenHtml}}

0 commit comments

Comments
 (0)