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.

41 lines
1.1 KiB

  1. {{template "base/head" .}}
  2. <div class="repository commits">
  3. {{template "repo/header" .}}
  4. <div class="ui container">
  5. <div id="git-graph-container" class="ui segment">
  6. <h1>{{.i18n.Tr "repo.commit_graph"}}</h1>
  7. <div id="rel-container">
  8. <canvas id="graph-canvas">
  9. <ul id="graph-raw-list">
  10. {{ range .Graph }}
  11. <li><span class="node-relation">{{ .GraphAcii -}}</span></li>
  12. {{ end }}
  13. </ul>
  14. </canvas>
  15. </div>
  16. <div id="rev-container">
  17. <ul id="rev-list">
  18. {{ range .Graph }}
  19. <li>
  20. {{ if .OnlyRelation }}
  21. <span />
  22. {{ else }}
  23. <code id="{{.ShortRev}}">
  24. <a href="{{AppSubUrl}}/{{$.Username}}/{{$.Reponame}}/commit/{{.Rev}}">{{ .ShortRev}}</a>
  25. </code>
  26. <strong> {{.Branch}}</strong>
  27. <span class="has-emoji">{{RenderCommitMessage .Subject $.RepoLink $.Repository.ComposeMetas}}</span> by
  28. <span class="author">
  29. {{.Author}}
  30. </span>
  31. <span class="time">{{.Date}}</span>
  32. {{ end }}
  33. </li>
  34. {{ end }}
  35. </ul>
  36. </div>
  37. </div>
  38. </div>
  39. </div>
  40. {{template "base/paginate" .}}
  41. {{template "base/footer" .}}