diff options
author | Unknown <joe2010xtmf@163.com> | 2014-04-11 19:44:13 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-04-11 19:44:13 -0400 |
commit | 47aa53bd369014b0788f18a605e7347801f6c31d (patch) | |
tree | d24e083ed102c457854e00e13e3e767d71a272c1 /templates | |
parent | 7d07b58114199f682a9caa059f239e24c820dc41 (diff) | |
download | gitea-47aa53bd369014b0788f18a605e7347801f6c31d.tar.gz gitea-47aa53bd369014b0788f18a605e7347801f6c31d.zip |
Add search commits
Diffstat (limited to 'templates')
-rw-r--r-- | templates/repo/commits.tmpl | 12 | ||||
-rw-r--r-- | templates/repo/single_bare.tmpl | 2 |
2 files changed, 7 insertions, 7 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> diff --git a/templates/repo/single_bare.tmpl b/templates/repo/single_bare.tmpl index 3f63915352..7d7016e5c5 100644 --- a/templates/repo/single_bare.tmpl +++ b/templates/repo/single_bare.tmpl @@ -16,7 +16,7 @@ <span class="input-group-btn"> <button class="btn btn-default" type="button">URL</button> </span> - <input name="passwd" type="password" class="form-control" placeholder="Type existing repository address" required="required"> + <input name="import_url" class="form-control" placeholder="Type existing repository address" required="required"> <span class="input-group-btn"> <button type="submit" class="btn btn-default" type="button">Clone</button> </span> |