Do not show empty collaborators segment (#1531)
This commit is contained in:
parent
4bea219128
commit
5b8fe1e181
|
@ -7,6 +7,7 @@
|
||||||
<h4 class="ui top attached header">
|
<h4 class="ui top attached header">
|
||||||
{{.i18n.Tr "repo.settings.collaboration"}}
|
{{.i18n.Tr "repo.settings.collaboration"}}
|
||||||
</h4>
|
</h4>
|
||||||
|
{{if .Collaborators}}
|
||||||
<div class="ui attached segment collaborator list">
|
<div class="ui attached segment collaborator list">
|
||||||
{{range .Collaborators}}
|
{{range .Collaborators}}
|
||||||
<div class="item ui grid">
|
<div class="item ui grid">
|
||||||
|
@ -36,6 +37,7 @@
|
||||||
</div>
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
</div>
|
</div>
|
||||||
|
{{end}}
|
||||||
<div class="ui bottom attached segment">
|
<div class="ui bottom attached segment">
|
||||||
<form class="ui form" id="repo-collab-form" action="{{.Link}}" method="post">
|
<form class="ui form" id="repo-collab-form" action="{{.Link}}" method="post">
|
||||||
{{.CsrfTokenHtml}}
|
{{.CsrfTokenHtml}}
|
||||||
|
|
Loading…
Reference in New Issue