From 5b8fe1e181d80d002bb348ed8a4b152d0d52a726 Mon Sep 17 00:00:00 2001 From: Morlinest Date: Sun, 23 Apr 2017 02:55:02 +0200 Subject: [PATCH] Do not show empty collaborators segment (#1531) --- templates/repo/settings/collaboration.tmpl | 2 ++ 1 file changed, 2 insertions(+) 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 @@

{{.i18n.Tr "repo.settings.collaboration"}}

+ {{if .Collaborators}}
{{range .Collaborators}}
@@ -36,6 +37,7 @@
{{end}}
+ {{end}}
{{.CsrfTokenHtml}}