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

12345678910111213141516171819202122232425262728293031323334353637
  1. <div class="{{TabSizeClass .Editorconfig .FileName}} non-diff-file-content">
  2. <h4 class="file-header ui top attached header">
  3. <div class="file-header-left">
  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">
  12. <div class="ui right file-actions">
  13. <div class="ui buttons">
  14. <a class="ui button" href="{{EscapePound $.RawFileLink}}">{{.i18n.Tr "repo.file_raw"}}</a>
  15. {{if not .IsViewCommit}}
  16. <a class="ui button" href="{{.RepoLink}}/src/commit/{{.CommitID}}/{{EscapePound .TreePath}}">{{.i18n.Tr "repo.file_permalink"}}</a>
  17. {{end}}
  18. <a class="ui button" href="{{.RepoLink}}/src/{{EscapePound .BranchNameSubURL}}/{{EscapePound .TreePath}}">{{.i18n.Tr "repo.normal_view"}}</a>
  19. <a class="ui button" href="{{.RepoLink}}/commits/{{EscapePound .BranchNameSubURL}}/{{EscapePound .TreePath}}">{{.i18n.Tr "repo.file_history"}}</a>
  20. </div>
  21. </div>
  22. </div>
  23. </h4>
  24. <div class="ui attached table unstackable segment">
  25. <div class="file-view code-view">
  26. <table>
  27. <tbody>
  28. <tr>
  29. <td class="lines-commit">{{.BlameCommitInfo}}</td>
  30. <td class="lines-num">{{.BlameLineNums}}</td>
  31. <td class="lines-code"><pre><code class="chroma"><ol class="linenums">{{.BlameContent}}</ol></code></pre></td>
  32. </tr>
  33. </tbody>
  34. </table>
  35. </div>
  36. </div>
  37. </div>