aboutsummaryrefslogtreecommitdiffstats
path: root/templates/repo/commits.tmpl
diff options
context:
space:
mode:
authorFuXiaoHei <fuxiaohei@hexiaz.com>2014-04-11 21:56:40 +0800
committerFuXiaoHei <fuxiaohei@hexiaz.com>2014-04-11 21:56:40 +0800
commitdf000245d19ffa3e4f88d252763269bbdd04f8eb (patch)
treed22ec0099bd98b46d968a9b2925912fee07ff9e1 /templates/repo/commits.tmpl
parent668007592a4f1469259d9d214146dcf47aa940df (diff)
downloadgitea-df000245d19ffa3e4f88d252763269bbdd04f8eb.tar.gz
gitea-df000245d19ffa3e4f88d252763269bbdd04f8eb.zip
add pager in commit-page, finish commit search form
Diffstat (limited to 'templates/repo/commits.tmpl')
-rw-r--r--templates/repo/commits.tmpl20
1 files changed, 17 insertions, 3 deletions
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 @@
<div id="commits">
<div class="panel panel-default commit-box info-box">
<div class="panel-heading info-head">
- <div class="search pull-right form">
- <input class="form-control search" type="search" placeholder="search commit"/>
- </div>
+ <form class="search pull-right col-md-3" action="" method="post" id="commits-search-form">
+ <div class="input-group">
+ <input class="form-control search" type="search" placeholder="search commit" name="q"/>
+ <div class="input-group-btn">
+ <button type="button" class="btn btn-default">Find</button>
+ </div>
+ </div>
+ </form>
<h4>{{.CommitCount}} Commits</h4>
</div>
<table class="panel-footer table commit-list table table-striped">
@@ -35,6 +40,15 @@
</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>
</div>
</div>
{{template "base/footer" .}}