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.

blame.tmpl 1.5KB

1234567891011121314151617181920212223242526272829303132333435
  1. <div class="{{TabSizeClass .Editorconfig .FileName}} non-diff-file-content">
  2. <h4 class="file-header ui top attached header df ac sb">
  3. <div class="file-header-left df ac">
  4. <div class="file-info text grey normal mono">
  5. <div class="file-info-entry">
  6. {{.NumLines}} {{.i18n.Tr (TrN .i18n.Lang .NumLines "repo.line" "repo.lines") }}
  7. </div>
  8. <div class="file-info-entry">{{FileSize .FileSize}}</div>
  9. </div>
  10. </div>
  11. <div class="file-header-right file-actions df ac">
  12. <div class="ui buttons">
  13. <a class="ui tiny button" href="{{EscapePound $.RawFileLink}}">{{.i18n.Tr "repo.file_raw"}}</a>
  14. {{if not .IsViewCommit}}
  15. <a class="ui tiny button" href="{{.RepoLink}}/src/commit/{{.CommitID}}/{{EscapePound .TreePath}}">{{.i18n.Tr "repo.file_permalink"}}</a>
  16. {{end}}
  17. <a class="ui tiny button" href="{{.RepoLink}}/src/{{EscapePound .BranchNameSubURL}}/{{EscapePound .TreePath}}">{{.i18n.Tr "repo.normal_view"}}</a>
  18. <a class="ui tiny button" href="{{.RepoLink}}/commits/{{EscapePound .BranchNameSubURL}}/{{EscapePound .TreePath}}">{{.i18n.Tr "repo.file_history"}}</a>
  19. </div>
  20. </div>
  21. </h4>
  22. <div class="ui attached table unstackable segment">
  23. <div class="file-view code-view">
  24. <table>
  25. <tbody>
  26. <tr>
  27. <td class="lines-commit">{{.BlameCommitInfo}}</td>
  28. <td class="lines-num">{{.BlameLineNums}}</td>
  29. <td class="lines-code"><code class="chroma"><ol class="linenums">{{.BlameContent}}</ol></code></td>
  30. </tr>
  31. </tbody>
  32. </table>
  33. </div>
  34. </div>
  35. </div>