From 1610296f54c767c28090b32e7e361931b2ac03b5 Mon Sep 17 00:00:00 2001 From: Pheng Heong TAN Date: Sun, 8 Apr 2018 08:54:21 +0800 Subject: [PATCH] Modify pagination. (#3766) I wanted navigation to the page "first" and the page "last" of the pages of commits. I discovered this has already been implemented in one of the templates. Signed-off-by: Tan Pheng Heong --- templates/repo/commits_table.tmpl | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/templates/repo/commits_table.tmpl b/templates/repo/commits_table.tmpl index 8a8e2c369e1..ec433974c92 100644 --- a/templates/repo/commits_table.tmpl +++ b/templates/repo/commits_table.tmpl @@ -79,24 +79,4 @@ {{end}} -{{with .Page}} - {{if gt .TotalPages 1}} -
- -
- {{end}} -{{end}} +{{template "base/paginate" .}} \ No newline at end of file