diff options
author | Unknown <joe2010xtmf@163.com> | 2014-04-11 20:23:34 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-04-11 20:23:34 -0400 |
commit | d6dac160dfcac068b31bda9316ddc3d4919e3288 (patch) | |
tree | 8d32752ea5c045468f2e5b3803cbf686ccc9ab2f /templates/repo/commits.tmpl | |
parent | 47aa53bd369014b0788f18a605e7347801f6c31d (diff) | |
download | gitea-d6dac160dfcac068b31bda9316ddc3d4919e3288.tar.gz gitea-d6dac160dfcac068b31bda9316ddc3d4919e3288.zip |
Pages in commits list page
Diffstat (limited to 'templates/repo/commits.tmpl')
-rw-r--r-- | templates/repo/commits.tmpl | 13 |
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="#">«</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="#">»</a></li> - </ul> + {{if not .IsSearchPage}}<ul class="pagination" id="commits-pager"> + {{if .LastPageNum}}<li><a href="{{.RepoLink}}/commits/{{.BranchName}}?p={{.LastPageNum}}">« Newer</a></li>{{end}} + {{if .NextPageNum}}<li><a href="{{.RepoLink}}/commits/{{.BranchName}}?p={{.NextPageNum}}">» Older</a></li>{{end}} + </ul>{{end}} </div> </div> {{template "base/footer" .}} |