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.

61 lines
3.6 KiB

10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
  1. {{template "base/head" .}}
  2. {{template "base/navbar" .}}
  3. {{template "repo/nav" .}}
  4. {{template "repo/toolbar" .}}
  5. <div id="body" class="container">
  6. <div id="release">
  7. <h4 id="release-head">
  8. <span class="release"><strong>Releases</strong></span><!-- /
  9. <a class="tag" href="{{AppSubUrl}}/{tag_link}">Tags</a> -->
  10. <!-- comment : if in tag page, show a.release and span.tag please -->
  11. </h4>
  12. <ul id="release-list" class="list-unstyled">
  13. {{range .Releases}}
  14. <li class="release-item clearfix" id="release-{{.Sha1}}">
  15. {{if .PublisherId}}
  16. <div class="col-md-2 text-right">
  17. {{if .IsDraft}}
  18. <span class="btn btn-primary status pre-release">Draft</span>
  19. {{else if .IsPrerelease}}
  20. <span class="btn btn-warning status pre-release">Pre-Release</span>
  21. {{else}}
  22. <span class="btn btn-success status stable">Stable</span>
  23. {{end}}
  24. <a class="tag" href="{{$.RepoLink}}/src/{{.TagName}}" rel="nofollow"><i class="fa fa-tag"></i>{{.TagName}}</a>
  25. <a class="commit" href="{{$.RepoLink}}/src/{{.Sha1}}" rel="nofollow"><i class="fa fa-code"></i>{{ShortSha .Sha1}}</a>
  26. </div>
  27. <div class="col-md-10">
  28. <h4 class="title"><a href="{{$.RepoLink}}/src/{{.TagName}}">{{.Title}}</a> <small>(<a href="{{$.RepoLink}}/releases/edit/{{.TagName}}" rel="nofollow">edit</a>)</small></h4>
  29. <p class="info">
  30. <span class="author"><img class="avatar" src="{{.Publisher.AvatarLink}}" alt="" width="20">&nbsp;&nbsp;
  31. <a href="{{AppSubUrl}}/{{.Publisher.Name}}">{{.Publisher.Name}}</a></span>
  32. {{if .Created}}<span class="time">{{TimeSince .Created $.Lang}}</span>{{end}}
  33. <span class="ahead"><strong>{{.NumCommitsBehind}}</strong> commits to {{.Target}} since this release</span>
  34. </p>
  35. <div class="markdown desc">
  36. {{str2html .Note}}
  37. </div>
  38. <p class="download">
  39. <a class="btn btn-default" href="{{$.RepoLink}}/archive/{{.TagName}}.zip" rel="nofollow"><i class="fa fa-download"></i>Source Code (ZIP)</a>
  40. <a class="btn btn-default" href="{{$.RepoLink}}/archive/{{.TagName}}.tar.gz"><i class="fa fa-download"></i>Source Code (TAR.GZ)</a>
  41. </p>
  42. <span class="dot">&nbsp;</span>
  43. </div>
  44. {{else}}
  45. <div class="col-md-2 text-right">
  46. <a class="commit" href="{{$.RepoLink}}/src/{{.Sha1}}" rel="nofollow"><i class="fa fa-code"></i>{{ShortSha .Sha1}}</a>
  47. </div>
  48. <div class="col-md-10">
  49. <h5 class="title"><a href="{{$.RepoLink}}/src/{{.TagName}}" rel="nofollow">{{.TagName}}</a><i class="fa fa-tag"></i></h5>
  50. <p class="download">
  51. <a class="download-link" href="{{$.RepoLink}}/archive/{{.TagName}}.zip" rel="nofollow"><i class="fa fa-download"></i>zip</a>
  52. <a class="download-link" href="{{$.RepoLink}}/archive/{{.TagName}}.tar.gz"><i class="fa fa-download"></i>tar.gz</a>
  53. </p>
  54. <span class="dot">&nbsp;</span>
  55. </div>
  56. {{end}}
  57. </li>
  58. {{end}}
  59. </ul>
  60. </div>
  61. </div>
  62. {{template "base/footer" .}}