diff options
author | Unknown <joe2010xtmf@163.com> | 2014-03-15 12:13:45 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-03-15 12:13:45 -0400 |
commit | dfcae2a97ae57cf8cb9e954b9d69151f5e340745 (patch) | |
tree | 46622d1ca40306bcaa0e632f4ea77109d51527d0 /templates/user | |
parent | f047df6e2b69ecb41c3fe4bef746145916aa4063 (diff) | |
download | gitea-dfcae2a97ae57cf8cb9e954b9d69151f5e340745.tar.gz gitea-dfcae2a97ae57cf8cb9e954b9d69151f5e340745.zip |
Add repo list data, need front-end fix
Diffstat (limited to 'templates/user')
-rw-r--r-- | templates/user/dashboard.tmpl | 8 | ||||
-rw-r--r-- | templates/user/profile.tmpl | 8 |
2 files changed, 11 insertions, 5 deletions
diff --git a/templates/user/dashboard.tmpl b/templates/user/dashboard.tmpl index 306c3bc15d..547e8ab556 100644 --- a/templates/user/dashboard.tmpl +++ b/templates/user/dashboard.tmpl @@ -4,9 +4,9 @@ <div class="container"> <ul class="nav nav-pills pull-right"> <li class="active"><a href="/">Feed</a></li> - <li><a href="/issues/">Issues</a></li> - <li><a href="/pulls/">Pull Requests</a></li> - <li><a href="/stars/">Stars</a></li> + <li><a href="/issues">Issues</a></li> + <li><a href="/pulls">Pull Requests</a></li> + <li><a href="/stars">Stars</a></li> </ul> <h3>News Feed</h3> </div> @@ -29,7 +29,7 @@ <div id="gogs-feed-right" class="col-md-4"> <div class="panel panel-default repo-panel"> <div class="panel-heading">Your Repositories - <a class="btn btn-success pull-right btn-sm" href="/repo/create/"><i class="fa fa-plus-square"></i>New Repo</a> + <a class="btn btn-success pull-right btn-sm" href="/repo/create"><i class="fa fa-plus-square"></i>New Repo</a> </div> <div class="panel-body"> <ul class="list-group">{{range .MyRepos}} diff --git a/templates/user/profile.tmpl b/templates/user/profile.tmpl index 9444452012..aa15cb88bb 100644 --- a/templates/user/profile.tmpl +++ b/templates/user/profile.tmpl @@ -44,7 +44,13 @@ </ul> </div> {{else}} - <div class="tab-pane active">repo</div> + {{$owner := .Owner}} + <div class="tab-pane active"> + {{range .Repos}} + <h4><a href="/{{$owner.Name}}/{{.LowerName}}">{{.LowerName}}</a> <small>Star:{{.NumStars}} Fork:{{.NumForks}}</small></h4> + <p>{{.Description}}</p> + {{end}} + </div> {{end}} </div> </div> |