summaryrefslogtreecommitdiffstats
path: root/templates/user/profile.tmpl
diff options
context:
space:
mode:
authorUnknwon <joe2010xtmf@163.com>2014-11-06 22:06:41 -0500
committerUnknwon <joe2010xtmf@163.com>2014-11-06 22:06:41 -0500
commit23eec252748c3ac7af2ae310aeac4ee4c9061fe9 (patch)
tree9f9d8834ef94451da2fb1d43ba63d0f130d61f79 /templates/user/profile.tmpl
parent4e7eb5be9d3e9c9ba7238769d2b5f2f471d51b67 (diff)
downloadgitea-23eec252748c3ac7af2ae310aeac4ee4c9061fe9.tar.gz
gitea-23eec252748c3ac7af2ae310aeac4ee4c9061fe9.zip
Fix #605, fix #255, fix #101
Diffstat (limited to 'templates/user/profile.tmpl')
-rw-r--r--templates/user/profile.tmpl9
1 files changed, 7 insertions, 2 deletions
diff --git a/templates/user/profile.tmpl b/templates/user/profile.tmpl
index af3d11a034..46bc99bda4 100644
--- a/templates/user/profile.tmpl
+++ b/templates/user/profile.tmpl
@@ -70,13 +70,18 @@
<div class="tab-pane active">
<div id="org-repo-list">
{{range .Repos}}
- {{if not .IsPrivate}}
+ {{if or (not .IsPrivate) (.HasAccess $.SignedUserName)}}
<div class="org-repo-item">
<ul class="org-repo-status right">
<li><i class="octicon octicon-star"></i> {{.NumStars}}</li>
<li><i class="octicon octicon-git-branch"></i> {{.NumForks}}</li>
</ul>
- <h2><a href="{{AppSubUrl}}/{{$.Owner.Name}}/{{.Name}}">{{.Name}}</a></h2>
+ <h2>
+ <a href="{{AppSubUrl}}/{{$.Owner.Name}}/{{.Name}}">{{.Name}}</a>
+ {{if .IsPrivate}}
+ <span class="text-gold"><i class="octicon octicon-lock"></i></span>
+ {{end}}
+ </h2>
<p class="org-repo-description">{{.Description}}</p>
<p class="org-repo-updated">{{$.i18n.Tr "org.repo_updated"}} {{TimeSince .Updated $.i18n.Lang}}</p>
</div>