summaryrefslogtreecommitdiffstats
path: root/templates/repo/commits.tmpl
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-04-11 19:44:13 -0400
committerUnknown <joe2010xtmf@163.com>2014-04-11 19:44:13 -0400
commit47aa53bd369014b0788f18a605e7347801f6c31d (patch)
treed24e083ed102c457854e00e13e3e767d71a272c1 /templates/repo/commits.tmpl
parent7d07b58114199f682a9caa059f239e24c820dc41 (diff)
downloadgitea-47aa53bd369014b0788f18a605e7347801f6c31d.tar.gz
gitea-47aa53bd369014b0788f18a605e7347801f6c31d.zip
Add search commits
Diffstat (limited to 'templates/repo/commits.tmpl')
-rw-r--r--templates/repo/commits.tmpl12
1 files changed, 6 insertions, 6 deletions
diff --git a/templates/repo/commits.tmpl b/templates/repo/commits.tmpl
index 842a2a6d8f..092d48688d 100644
--- a/templates/repo/commits.tmpl
+++ b/templates/repo/commits.tmpl
@@ -6,11 +6,11 @@
<div id="commits">
<div class="panel panel-default commit-box info-box">
<div class="panel-heading info-head">
- <form class="search pull-right col-md-3" action="" method="post" id="commits-search-form">
+ <form class="search pull-right col-md-3" action="{{.RepoLink}}/commits/{{.BranchName}}/search" method="get" id="commits-search-form">
<div class="input-group">
- <input class="form-control search" type="search" placeholder="search commit" name="q"/>
+ <input class="form-control search" type="search" placeholder="search commit" name="q" value="{{.Keyword}}" />
<div class="input-group-btn">
- <button type="button" class="btn btn-default">Find</button>
+ <button type="submit" class="btn btn-default">Find</button>
</div>
</div>
</form>
@@ -20,7 +20,7 @@
<thead>
<tr>
<th class="author">Author</th>
- <th class="sha">Commit</th>
+ <th class="sha">SHA1</th>
<th class="message">Message</th>
<th class="date">Date</th>
</tr>
@@ -31,10 +31,10 @@
{{$r := List .Commits}}
{{range $r}}
<tr>
- <td class="author"><img class="avatar" src="{{AvatarLink .Committer.Email}}" alt=""/><a href="/user/{{.Committer.Name}}">{{.Committer.Name}}</a></td>
+ <td class="author"><img class="avatar" src="{{AvatarLink .Author.Email}}" alt=""/><a href="/user/{{.Author.Name}}">{{.Author.Name}}</a></td>
<td class="sha"><a class="label label-success" href="/{{$username}}/{{$reponame}}/commit/{{.Id}} ">{{SubStr .Id.String 0 10}} </a></td>
<td class="message">{{.Message}} </td>
- <td class="date">{{TimeSince .Committer.When}}</td>
+ <td class="date">{{TimeSince .Author.When}}</td>
</tr>
{{end}}
</tbody>