diff options
author | Unknwon <u@gogs.io> | 2016-07-24 14:32:46 +0800 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2016-07-24 14:32:46 +0800 |
commit | e74630ae3b635a43a1bdafcf8b80d2f87b3536b6 (patch) | |
tree | 63c5fb32b6ca4417c3dfd9c05f532d5598aa4117 /templates/user/dashboard/dashboard.tmpl | |
parent | 1f2e173a745da8e4b57f96b5561a3c10054d3b76 (diff) | |
download | gitea-e74630ae3b635a43a1bdafcf8b80d2f87b3536b6.tar.gz gitea-e74630ae3b635a43a1bdafcf8b80d2f87b3536b6.zip |
#1384 add pagination for repositories
Diffstat (limited to 'templates/user/dashboard/dashboard.tmpl')
-rw-r--r-- | templates/user/dashboard/dashboard.tmpl | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/templates/user/dashboard/dashboard.tmpl b/templates/user/dashboard/dashboard.tmpl index f04cd6af3b..d234397269 100644 --- a/templates/user/dashboard/dashboard.tmpl +++ b/templates/user/dashboard/dashboard.tmpl @@ -37,12 +37,17 @@ </a> </li> {{end}} + {{if gt .ContextUser.NumRepos .MaxShowRepoNum}} + <li> + <a href="{{.ContextUser.HomeLink}}">{{.i18n.Tr "home.show_more_repos"}}</a> + </li> + {{end}} </ul> </div> {{if not .ContextUser.IsOrganization}} <h4 class="ui top attached header"> - {{.i18n.Tr "home.collaborative_repos"}} <span class="ui grey label">{{.CollaborateCount}}</span> + {{.i18n.Tr "home.collaborative_repos"}} </h4> <div class="ui attached table segment"> <ul id="collaborative-repo-list"> |