aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-05-12 15:14:22 -0400
committerUnknown <joe2010xtmf@163.com>2014-05-12 15:14:22 -0400
commita913aff1d06d638ed2b54d2beaba00e88056e25f (patch)
treeb25fbff864fcaa863c5d54b54e52cd8b592d8da9 /templates
parent54e95fa367d8f9394522ce1fa6905a38974cbd23 (diff)
downloadgitea-a913aff1d06d638ed2b54d2beaba00e88056e25f.tar.gz
gitea-a913aff1d06d638ed2b54d2beaba00e88056e25f.zip
Show collaborative repositories in dashboard
Diffstat (limited to 'templates')
-rw-r--r--templates/user/dashboard.tmpl13
1 files changed, 13 insertions, 0 deletions
diff --git a/templates/user/dashboard.tmpl b/templates/user/dashboard.tmpl
index 9781b8db1e..5cda6722f0 100644
--- a/templates/user/dashboard.tmpl
+++ b/templates/user/dashboard.tmpl
@@ -40,6 +40,7 @@
</div>
</div>
</div>
+
<div class="panel-body">
<ul class="list-group">{{range .MyRepos}}
<li class="list-group-item"><a href="/{{$.SignedUserName}}/{{.Name}}">
@@ -49,6 +50,18 @@
</ul>
</div>
</div>
+
+ <div class="panel panel-default repo-panel">
+ <div class="panel-heading">Collaborative Repositories</div>
+ <div class="panel-body">
+ <ul class="list-group">{{range .CollaborativeRepos}}
+ <li class="list-group-item"><a href="/{{.Owner.Name}}/{{.Name}}">
+ <!-- <span class="stars pull-right"><i class="fa fa-star"></i>{{.NumStars}}</span> -->
+ <i class="fa fa-book"></i>{{.Name}}{{if .IsPrivate}} <span class="label label-default">Private</span>{{end}}</a>
+ </li>{{end}}
+ </ul>
+ </div>
+ </div>
</div>
</div>
{{template "base/footer" .}}