2014-12-10 16:37:54 -05:00
|
|
|
{{template "ng/base/head" .}}
|
|
|
|
{{template "ng/base/header" .}}
|
|
|
|
<div id="repo-wrapper">
|
2015-07-23 16:50:05 -04:00
|
|
|
{{template "repo/header_old" .}}
|
2014-12-10 16:37:54 -05:00
|
|
|
<div id="repo-content" class="clear container">
|
|
|
|
<div id="repo-main" class="left grid-5-6">
|
|
|
|
<div id="release">
|
|
|
|
<h4 id="release-head">
|
|
|
|
<span class="release"><strong>{{.i18n.Tr "repo.release.releases"}}</strong></span><!-- /
|
|
|
|
<a class="tag" href="{{AppSubUrl}}/{tag_link}">Tags</a> -->
|
|
|
|
<!-- comment : if in tag page, show a.release and span.tag please -->
|
2015-03-24 19:20:36 -04:00
|
|
|
{{if .IsRepositoryAdmin}}
|
2014-12-10 16:37:54 -05:00
|
|
|
<a class="btn" href="{{$.RepoLink}}/releases/new">
|
|
|
|
<button class="btn btn-medium btn-blue btn-radius">
|
|
|
|
{{.i18n.Tr "repo.release.new_release"}}
|
|
|
|
</button>
|
|
|
|
</a>
|
2015-03-24 19:20:36 -04:00
|
|
|
{{end}}
|
2014-12-10 16:37:54 -05:00
|
|
|
</h4>
|
|
|
|
<ul id="release-list" class="list-unstyled">
|
|
|
|
{{range .Releases}}
|
|
|
|
<li class="release-item clearfix" id="release-{{.Sha1}}">
|
|
|
|
{{if .PublisherId}}
|
|
|
|
<div class="grid-1-6 text-right release-meta">
|
|
|
|
{{if .IsDraft}}
|
|
|
|
<span class="label label-blue label-radius">{{$.i18n.Tr "repo.release.draft"}}</span>
|
|
|
|
{{else if .IsPrerelease}}
|
|
|
|
<span class="label label-orange label-radius">{{$.i18n.Tr "repo.release.prerelease"}}</span>
|
|
|
|
{{else}}
|
|
|
|
<span class="label label-green label-radius">{{$.i18n.Tr "repo.release.stable"}}</span>
|
|
|
|
{{end}}
|
|
|
|
<a class="tag" href="{{$.RepoLink}}/src/{{.TagName}}" rel="nofollow"><i class="fa fa-tag"></i> {{.TagName}}</a>
|
|
|
|
<a class="commit" href="{{$.RepoLink}}/src/{{.Sha1}}" rel="nofollow"><i class="fa fa-code"></i> {{ShortSha .Sha1}}</a>
|
|
|
|
</div>
|
|
|
|
<div class="grid-9-12 release-detail left">
|
|
|
|
<h4 class="title"><a href="{{$.RepoLink}}/src/{{.TagName}}">{{.Title}}</a> <small>(<a href="{{$.RepoLink}}/releases/edit/{{.TagName}}" rel="nofollow">{{$.i18n.Tr "repo.release.edit"}}</a>)</small></h4>
|
|
|
|
<p class="info">
|
|
|
|
<span class="author"><img class="avatar-20" src="{{.Publisher.AvatarLink}}">
|
|
|
|
<a href="{{AppSubUrl}}/{{.Publisher.Name}}">{{.Publisher.Name}}</a></span>
|
|
|
|
{{if .Created}}<span class="time">{{TimeSince .Created $.Lang}}</span>{{end}}
|
|
|
|
<span class="ahead">{{$.i18n.Tr "repo.release.ahead" .NumCommitsBehind .Target | Str2html}}</span>
|
|
|
|
</p>
|
|
|
|
<div class="markdown desc">
|
2015-01-20 00:08:49 -05:00
|
|
|
{{Str2html .Note}}
|
2014-12-10 16:37:54 -05:00
|
|
|
</div>
|
|
|
|
<p class="download">
|
|
|
|
<a class="btn btn-gray btn-large btn-radius" href="{{$.RepoLink}}/archive/{{.TagName}}.zip" rel="nofollow"><i class="fa fa-download"></i> {{$.i18n.Tr "repo.release.source_code"}} (ZIP)</a>
|
|
|
|
<a class="btn btn-gray btn-large btn-radius" href="{{$.RepoLink}}/archive/{{.TagName}}.tar.gz"><i class="fa fa-download"></i> {{$.i18n.Tr "repo.release.source_code"}} (TAR.GZ)</a>
|
|
|
|
</p>
|
|
|
|
<span class="dot"> </span>
|
|
|
|
</div>
|
|
|
|
{{else}}
|
|
|
|
<div class="grid-1-6 text-right release-meta">
|
|
|
|
<a class="commit" href="{{$.RepoLink}}/src/{{.Sha1}}" rel="nofollow"><i class="fa fa-code"></i> {{ShortSha .Sha1}}</a>
|
|
|
|
</div>
|
|
|
|
<div class="grid-9-12 release-detail left">
|
|
|
|
<h5 class="title"><a href="{{$.RepoLink}}/src/{{.TagName}}" rel="nofollow">{{.TagName}}</a> <i class="fa fa-tag"></i></h5>
|
|
|
|
<p class="download">
|
|
|
|
<a class="download-link" href="{{$.RepoLink}}/archive/{{.TagName}}.zip" rel="nofollow"><i class="fa fa-download"></i> ZIP</a>
|
|
|
|
<a class="download-link" href="{{$.RepoLink}}/archive/{{.TagName}}.tar.gz"><i class="fa fa-download"></i> TAR.GZ</a>
|
|
|
|
</p>
|
|
|
|
<span class="dot"> </span>
|
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
</li>
|
2014-06-12 17:47:23 -04:00
|
|
|
{{end}}
|
2014-12-10 16:37:54 -05:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{template "repo/sidebar" .}}
|
2014-04-04 08:54:00 -04:00
|
|
|
</div>
|
2014-04-02 12:43:31 -04:00
|
|
|
</div>
|
2014-12-10 16:37:54 -05:00
|
|
|
{{template "ng/base/footer" .}}
|