From 7bdc6e8bbc2825b8cd9acc25b2dfa0d19853656a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9my=20Boulanouar?= Date: Sun, 21 May 2017 22:38:18 +0200 Subject: [PATCH] Implement visibility in explore/repos --- templates/explore/repo_list.tmpl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/explore/repo_list.tmpl b/templates/explore/repo_list.tmpl index 76ed6491f..ed3a907f7 100644 --- a/templates/explore/repo_list.tmpl +++ b/templates/explore/repo_list.tmpl @@ -1,5 +1,6 @@
{{range .Repos}} + {{if (or (eq .Owner.Visibility 1) (and ($.SignedUser) (or (eq .Owner.Visibility 2) (and (.Owner.IsUserOrgPartOf $.SignedUserID) (eq .Owner.Visibility 3)) ($.IsAdmin))))}}
{{if or $.PageIsExplore $.PageIsProfileStarList }}{{.Owner.Name}} / {{end}}{{.Name}} @@ -19,6 +20,7 @@ {{if .DescriptionHTML}}

{{.DescriptionHTML}}

{{end}}

{{$.i18n.Tr "org.repo_updated"}} {{TimeSince .Updated $.i18n.Lang}}

+ {{end}} {{else}}
{{$.i18n.Tr "explore.repo_no_results"}}