aboutsummaryrefslogtreecommitdiff
path: root/templates/explore
diff options
context:
space:
mode:
authorAchilleas Koutsou <achilleas.k@gmail.com>2020-09-03 21:04:22 +0200
committerGitHub <noreply@github.com>2020-09-04 03:04:22 +0800
commitc4360747a3bdd0d5a5a673bfcdee05f9d911ba1e (patch)
tree4c8ca23dc3f449bc946b6c75c0fec8dd928dbb73 /templates/explore
parent23ff182d1f8df2978785772bc58cf0ebfd2aeb0c (diff)
repo: support unlisted but publicly accessible repositories (#6176)
Co-authored-by: ᴜɴᴋɴᴡᴏɴ <u@gogs.io>
Diffstat (limited to 'templates/explore')
-rw-r--r--templates/explore/repo_list.tmpl2
1 files changed, 2 insertions, 0 deletions
diff --git a/templates/explore/repo_list.tmpl b/templates/explore/repo_list.tmpl
index 4cf1aed5..b8491a9b 100644
--- a/templates/explore/repo_list.tmpl
+++ b/templates/explore/repo_list.tmpl
@@ -10,6 +10,8 @@
<a class="name" href="{{AppSubURL}}/{{if .Owner}}{{.Owner.Name}}{{else if $.Org}}{{$.Org.Name}}{{else}}{{$.Owner.Name}}{{end}}/{{.Name}}">{{if $.PageIsExplore}}{{.Owner.Name}} / {{end}}{{.Name}}</a>
{{if .IsPrivate}}
<span class="text gold"><i class="octicon octicon-lock"></i></span>
+ {{else if .IsUnlisted}}
+ <span><i class="octicon octicon-eye"></i></span>
{{else if .IsFork}}
<span><i class="octicon octicon-repo-forked"></i></span>
{{else if .IsMirror}}