Fork to maintain patches against the official gitea for https://code.ceondo.com https://github.com/go-gitea/gitea

list.tmpl 3.7KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. {{template "base/head" .}}
  2. <div class="repository release">
  3. {{template "repo/header" .}}
  4. <div class="ui container">
  5. {{template "base/alert" .}}
  6. <h2 class="ui header">
  7. {{.i18n.Tr "repo.release.releases"}}
  8. {{if .IsRepositoryWriter}}
  9. <div class="ui right">
  10. <a class="ui small green button" href="{{$.RepoLink}}/releases/new">
  11. {{.i18n.Tr "repo.release.new_release"}}
  12. </a>
  13. </div>
  14. {{end}}
  15. </h2>
  16. <ul id="release-list">
  17. {{range .Releases}}
  18. <li class="ui grid">
  19. <div class="ui four wide column meta">
  20. {{if .IsTag}}
  21. {{if .Created}}<span class="time">{{TimeSince .Created $.Lang}}</span>{{end}}
  22. {{else}}
  23. {{if .IsDraft}}
  24. <span class="ui yellow label">{{$.i18n.Tr "repo.release.draft"}}</span>
  25. {{else if .IsPrerelease}}
  26. <span class="ui orange label">{{$.i18n.Tr "repo.release.prerelease"}}</span>
  27. {{else}}
  28. <span class="ui green label">{{$.i18n.Tr "repo.release.stable"}}</span>
  29. {{end}}
  30. <span class="tag text blue">
  31. <a href="{{$.RepoLink}}/src/tag/{{.TagName}}" rel="nofollow"><i class="tag icon"></i> {{.TagName}}</a>
  32. </span>
  33. <span class="commit">
  34. <a href="{{$.RepoLink}}/src/commit/{{.Sha1}}" rel="nofollow"><i class="code icon"></i> {{ShortSha .Sha1}}</a>
  35. </span>
  36. {{end}}
  37. </div>
  38. <div class="ui twelve wide column detail">
  39. {{if .IsTag}}
  40. <h4>
  41. <a href="{{$.RepoLink}}/src/tag/{{.TagName}}" rel="nofollow"><i class="tag icon"></i> {{.TagName}}</a>
  42. </h4>
  43. <div class="download">
  44. <a href="{{$.RepoLink}}/src/commit/{{.Sha1}}" rel="nofollow"><i class="code icon"></i> {{ShortSha .Sha1}}</a>
  45. <a href="{{$.RepoLink}}/archive/{{.TagName}}.zip" rel="nofollow"><i class="octicon octicon-file-zip"></i> ZIP</a>
  46. <a href="{{$.RepoLink}}/archive/{{.TagName}}.tar.gz"><i class="octicon octicon-file-zip"></i> TAR.GZ</a>
  47. </div>
  48. {{else}}
  49. <h3>
  50. <a href="{{$.RepoLink}}/src/tag/{{.TagName}}">{{.Title}}</a>
  51. {{if $.IsRepositoryWriter}}<small>(<a href="{{$.RepoLink}}/releases/edit/{{.TagName}}" rel="nofollow">{{$.i18n.Tr "repo.release.edit"}}</a>)</small>{{end}}
  52. </h3>
  53. <p class="text grey">
  54. <span class="author">
  55. <img class="img-10" src="{{.Publisher.RelAvatarLink}}">
  56. <a href="{{AppSubUrl}}/{{.Publisher.Name}}">{{.Publisher.Name}}</a>
  57. </span>
  58. {{if .Created}}<span class="time">{{TimeSince .Created $.Lang}}</span>{{end}}
  59. <span class="ahead">{{$.i18n.Tr "repo.release.ahead" .NumCommitsBehind .Target | Str2html}}</span>
  60. </p>
  61. <div class="markdown desc">
  62. {{Str2html .Note}}
  63. </div>
  64. <div class="download">
  65. <h2>{{$.i18n.Tr "repo.release.downloads"}}</h2>
  66. <ul class="list">
  67. <li>
  68. <a href="{{$.RepoLink}}/archive/{{.TagName}}.zip" rel="nofollow"><i class="octicon octicon-file-zip"></i> {{$.i18n.Tr "repo.release.source_code"}} (ZIP)</a>
  69. </li>
  70. <li>
  71. <a href="{{$.RepoLink}}/archive/{{.TagName}}.tar.gz"><i class="octicon octicon-file-zip"></i> {{$.i18n.Tr "repo.release.source_code"}} (TAR.GZ)</a>
  72. </li>
  73. {{if .Attachments}}
  74. {{range .Attachments}}
  75. <li>
  76. <a target="_blank" rel="noopener" href="{{AppSubUrl}}/attachments/{{.UUID}}">
  77. <span class="ui image octicon octicon-desktop-download" title='{{.Name}}'></span> {{.Name}}
  78. </a>
  79. </li>
  80. {{end}}
  81. {{end}}
  82. </ul>
  83. </div>
  84. {{end}}
  85. <span class="dot">&nbsp;</span>
  86. </div>
  87. </li>
  88. {{end}}
  89. </ul>
  90. {{template "base/paginate" .}}
  91. </div>
  92. </div>
  93. {{template "base/footer" .}}