summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2016-07-24 14:32:46 +0800
committerUnknwon <u@gogs.io>2016-07-24 14:32:46 +0800
commite74630ae3b635a43a1bdafcf8b80d2f87b3536b6 (patch)
tree63c5fb32b6ca4417c3dfd9c05f532d5598aa4117 /templates
parent1f2e173a745da8e4b57f96b5561a3c10054d3b76 (diff)
downloadgitea-e74630ae3b635a43a1bdafcf8b80d2f87b3536b6.tar.gz
gitea-e74630ae3b635a43a1bdafcf8b80d2f87b3536b6.zip
#1384 add pagination for repositories
Diffstat (limited to 'templates')
-rw-r--r--templates/.VERSION2
-rw-r--r--templates/org/home.tmpl1
-rw-r--r--templates/user/dashboard/dashboard.tmpl7
-rw-r--r--templates/user/profile.tmpl1
4 files changed, 9 insertions, 2 deletions
diff --git a/templates/.VERSION b/templates/.VERSION
index a02c7ea3de..38466f9fca 100644
--- a/templates/.VERSION
+++ b/templates/.VERSION
@@ -1 +1 @@
-0.9.53.0724 \ No newline at end of file
+0.9.54.0724 \ No newline at end of file
diff --git a/templates/org/home.tmpl b/templates/org/home.tmpl
index 921e3667cb..eaea98bf52 100644
--- a/templates/org/home.tmpl
+++ b/templates/org/home.tmpl
@@ -32,6 +32,7 @@
<div class="ui divider"></div>
{{end}}
{{template "explore/repo_list" .}}
+ {{template "explore/page" .}}
</div>
<div class="ui five wide column">
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">
diff --git a/templates/user/profile.tmpl b/templates/user/profile.tmpl
index 36bd54b182..d84bcddd7d 100644
--- a/templates/user/profile.tmpl
+++ b/templates/user/profile.tmpl
@@ -86,6 +86,7 @@
</div>
{{if ne .TabName "activity"}}
{{template "explore/repo_list" .}}
+ {{template "explore/page" .}}
{{else}}
<br>
<div class="feeds">