summaryrefslogtreecommitdiffstats
path: root/templates/repo
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-04-11 20:23:34 -0400
committerUnknown <joe2010xtmf@163.com>2014-04-11 20:23:34 -0400
commitd6dac160dfcac068b31bda9316ddc3d4919e3288 (patch)
tree8d32752ea5c045468f2e5b3803cbf686ccc9ab2f /templates/repo
parent47aa53bd369014b0788f18a605e7347801f6c31d (diff)
downloadgitea-d6dac160dfcac068b31bda9316ddc3d4919e3288.tar.gz
gitea-d6dac160dfcac068b31bda9316ddc3d4919e3288.zip
Pages in commits list page
Diffstat (limited to 'templates/repo')
-rw-r--r--templates/repo/commits.tmpl13
1 files changed, 4 insertions, 9 deletions
diff --git a/templates/repo/commits.tmpl b/templates/repo/commits.tmpl
index 092d48688d..68b1403589 100644
--- a/templates/repo/commits.tmpl
+++ b/templates/repo/commits.tmpl
@@ -40,15 +40,10 @@
</tbody>
</table>
</div>
- <ul class="pagination" id="commits-pager">
- <li><a href="#">&laquo;</a></li>
- <li><a href="#">1</a></li>
- <li><a href="#">2</a></li>
- <li><a href="#">3</a></li>
- <li><a href="#">4</a></li>
- <li><a href="#">5</a></li>
- <li><a href="#">&raquo;</a></li>
- </ul>
+ {{if not .IsSearchPage}}<ul class="pagination" id="commits-pager">
+ {{if .LastPageNum}}<li><a href="{{.RepoLink}}/commits/{{.BranchName}}?p={{.LastPageNum}}">&laquo; Newer</a></li>{{end}}
+ {{if .NextPageNum}}<li><a href="{{.RepoLink}}/commits/{{.BranchName}}?p={{.NextPageNum}}">&raquo; Older</a></li>{{end}}
+ </ul>{{end}}
</div>
</div>
{{template "base/footer" .}}