diff options
Diffstat (limited to 'templates/explore')
-rw-r--r-- | templates/explore/organizations.tmpl | 7 | ||||
-rw-r--r-- | templates/explore/repo_list.tmpl | 5 |
2 files changed, 10 insertions, 2 deletions
diff --git a/templates/explore/organizations.tmpl b/templates/explore/organizations.tmpl index b977da4e4d..4e2bfc9fd9 100644 --- a/templates/explore/organizations.tmpl +++ b/templates/explore/organizations.tmpl @@ -9,7 +9,12 @@ <div class="item"> <img class="ui avatar image" src="{{.RelAvatarLink}}"> <div class="content"> - <span class="header"><a href="{{.HomeLink}}">{{.Name}}</a> {{.FullName}}</span> + <span class="header"> + <a href="{{.HomeLink}}">{{.Name}}</a> {{.FullName}} + {{if .Visibility.IsPrivate}} + <span class="text gold"><i class="octicon octicon-lock"></i></span> + {{end}} + </span> <div class="description"> {{if .Location}} <i class="octicon octicon-location"></i> {{.Location}} diff --git a/templates/explore/repo_list.tmpl b/templates/explore/repo_list.tmpl index 660299157b..94ce293389 100644 --- a/templates/explore/repo_list.tmpl +++ b/templates/explore/repo_list.tmpl @@ -12,8 +12,11 @@ <span><i class="octicon octicon-repo-forked"></i></span> {{else if .IsMirror}} <span><i class="octicon octicon-repo-clone"></i></span> + {{else if .Owner}} + {{if .Owner.Visibility.IsPrivate}} + <span class="text gold"><i class="octicon octicon-lock"></i></span> + {{end}} {{end}} - <div class="ui right metas"> <span class="text grey"><i class="octicon octicon-star"></i> {{.NumStars}}</span> <span class="text grey"><i class="octicon octicon-git-branch"></i> {{.NumForks}}</span> |