You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

commits.tmpl 1.7KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. {{template "base/head" .}}
  2. {{template "base/navbar" .}}
  3. {{template "repo/nav" .}}
  4. {{template "repo/toolbar" .}}
  5. <div id="body" class="container">
  6. <div id="commits">
  7. <div class="panel panel-default commit-box info-box">
  8. <div class="panel-heading info-head">
  9. <div class="search pull-right form">
  10. <input class="form-control search" type="search" placeholder="search commit"/>
  11. </div>
  12. <h4>{{.CommitCount}} Commits</h4>
  13. </div>
  14. <table class="panel-footer table commit-list table table-striped">
  15. <thead>
  16. <tr>
  17. <th class="author">Author</th>
  18. <th class="sha">Commit</th>
  19. <th class="message">Message</th>
  20. <th class="date">Date</th>
  21. </tr>
  22. </thead>
  23. <tbody>
  24. {{ $username := .Username}}
  25. {{ $reponame := .Reponame}}
  26. {{$r := List .Commits}}
  27. {{range $r}}
  28. <tr>
  29. <td class="author"><img class="avatar" src="{{AvatarLink .Committer.Email}}" alt=""/><a href="/user/{{.Committer.Name}}">{{.Committer.Name}}</a></td>
  30. <td class="sha"><a class="label label-success" href="/{{$username}}/{{$reponame}}/commit/{{.Id}} ">{{SubStr .Id.String 0 10}} </a></td>
  31. <td class="message">{{.Message}} </td>
  32. <td class="date">{{TimeSince .Committer.When}}</td>
  33. </tr>
  34. {{end}}
  35. </tbody>
  36. </table>
  37. </div>
  38. </div>
  39. </div>
  40. {{template "base/footer" .}}