Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

view_list.tmpl 2.5KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <table id="repo-files-table" class="ui fixed single line table">
  2. <thead>
  3. <tr>
  4. <th class="four wide">
  5. {{if .LatestCommitUser}}
  6. <img class="ui avatar image img-12" src="{{.LatestCommitUser.RelAvatarLink}}" />
  7. {{if .LatestCommitUser.FullName}}
  8. <a href="{{AppSubUrl}}/{{.LatestCommitUser.Name}}"><strong>{{.LatestCommitUser.FullName}}</strong></a>
  9. {{else}}
  10. <a href="{{AppSubUrl}}/{{.LatestCommitUser.Name}}"><strong>{{.LatestCommit.Author.Name}}</strong></a>
  11. {{end}}
  12. {{else}}
  13. <img class="ui avatar image img-12" src="{{AvatarLink .LatestCommit.Author.Email}}" />
  14. <strong>{{.LatestCommit.Author.Name}}</strong>
  15. {{end}}
  16. <a rel="nofollow" class="ui sha label" href="{{.RepoLink}}/commit/{{.LatestCommit.ID}}" rel="nofollow">{{ShortSha .LatestCommit.ID.String}}</a>
  17. <span class="grey has-emoji">{{RenderCommitMessage false .LatestCommit.Summary .RepoLink $.Repository.ComposeMetas}}</span>
  18. </th>
  19. <th class="nine wide">
  20. </th>
  21. <th class="three wide text grey right age">{{TimeSince .LatestCommit.Author.When $.Lang}}</th>
  22. </tr>
  23. </thead>
  24. <tbody>
  25. {{if .HasParentPath}}
  26. <tr class="has-parent">
  27. <td colspan="3"><i class="octicon octicon-mail-reply"></i><a href="{{EscapePound .BranchLink}}{{.ParentPath}}">..</a></td>
  28. </tr>
  29. {{end}}
  30. {{range $item := .Files}}
  31. {{$entry := index $item 0}}
  32. {{$commit := index $item 1}}
  33. <tr>
  34. {{if $entry.IsSubModule}}
  35. <td>
  36. <span class="octicon octicon-file-submodule"></span>
  37. {{$refURL := $commit.RefURL AppUrl $.BranchLink}}
  38. {{if $refURL}}
  39. <a href="{{$refURL}}">{{$entry.Name}}</a> @ <a href="{{$refURL}}/commit/{{$commit.RefID}}">{{ShortSha $commit.RefID}}</a>
  40. {{else}}
  41. {{$entry.Name}} @ {{ShortSha $commit.RefID}}
  42. {{end}}
  43. </td>
  44. {{else}}
  45. <td class="name">
  46. <span class="octicon octicon-file-{{if or $entry.IsDir}}directory{{else}}text{{end}}"></span>
  47. <a href="{{EscapePound $.TreeLink}}/{{EscapePound $entry.Name}}">{{$entry.Name}}</a>
  48. </td>
  49. {{end}}
  50. <td class="message collapsing has-emoji">
  51. <a rel="nofollow" class="ui sha label" href="{{$.RepoLink}}/commit/{{$commit.ID}}">{{ShortSha $commit.ID.String}}</a>
  52. {{RenderCommitMessage false $commit.Summary $.RepoLink $.Repository.ComposeMetas}}
  53. </td>
  54. <td class="text grey right age">{{TimeSince $commit.Committer.When $.Lang}}</td>
  55. </tr>
  56. {{end}}
  57. </tbody>
  58. </table>
  59. {{if .ReadmeExist}}
  60. {{template "repo/view_file" .}}
  61. {{end}}