From df000245d19ffa3e4f88d252763269bbdd04f8eb Mon Sep 17 00:00:00 2001 From: FuXiaoHei Date: Fri, 11 Apr 2014 21:56:40 +0800 Subject: [PATCH] add pager in commit-page, finish commit search form --- public/css/gogs.css | 12 ++++++++---- templates/repo/commits.tmpl | 20 +++++++++++++++++--- 2 files changed, 25 insertions(+), 7 deletions(-) diff --git a/public/css/gogs.css b/public/css/gogs.css index 2850d15e2e..48d485fa5a 100755 --- a/public/css/gogs.css +++ b/public/css/gogs.css @@ -663,6 +663,10 @@ html, body { margin-top: -20px; } +#commits-pager { + margin-top: 0; +} + #source .source-toolbar:after { clear: both; } @@ -880,6 +884,10 @@ html, body { margin-left: .5em; } +#commits-search-form { + margin-top: 4px; +} + .commit-box .avatar, .diff-head-box .avatar { width: 20px; height: 20px; @@ -887,10 +895,6 @@ html, body { vertical-align: top; } -.commit-box .search { - margin-top: 3px; -} - .commit-box td { background-color: #FFF; } diff --git a/templates/repo/commits.tmpl b/templates/repo/commits.tmpl index efe35936c4..842a2a6d8f 100644 --- a/templates/repo/commits.tmpl +++ b/templates/repo/commits.tmpl @@ -6,9 +6,14 @@
- +

{{.CommitCount}} Commits

@@ -35,6 +40,15 @@
+
{{template "base/footer" .}}