aboutsummaryrefslogtreecommitdiffstats
path: root/templates/explore
diff options
context:
space:
mode:
authorCirno the Strongest <1447794+CirnoT@users.noreply.github.com>2020-06-05 13:41:06 +0200
committerGitHub <noreply@github.com>2020-06-05 14:41:06 +0300
commit5acba4609a8eb060d91faf42c771da1a62c0170b (patch)
tree71febdaaebad925165b24cb61633ade5355caedf /templates/explore
parentf761a37a0f024ea54c4eee9cbae22377616e84e0 (diff)
downloadgitea-5acba4609a8eb060d91faf42c771da1a62c0170b.tar.gz
gitea-5acba4609a8eb060d91faf42c771da1a62c0170b.zip
Add internal-repo octicon for public repos of private org (#11529)
* Show multiple octicons on repo list * fix mixed spaces/tabs * Internal repo octicon * show internal icon in dashboard repolist * swagger * fix icon for normal repo on repo page * don't expose owner visibility directly; provide internal in repo api * fix icons for forks and mirrors Co-authored-by: Lauris BH <lauris@nix.lv>
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 37bd38c5fa..61ef056afc 100644
--- a/templates/explore/repo_list.tmpl
+++ b/templates/explore/repo_list.tmpl
@@ -11,6 +11,8 @@
</a>
{{if .IsPrivate}}
<span class="middle text gold">{{svg "octicon-lock" 16}}</span>
+ {{else if and (not .IsMirror) (not .IsFork) (.Owner.Visibility.IsPrivate) }}
+ <span class="text gold">{{svg "octicon-internal-repo" 16}}</span>
{{else if .IsFork}}
<span class="middle">{{svg "octicon-repo-forked" 16}}</span>
{{else if .IsMirror}}