forgejo/templates/release/list.tmpl

80 lines
4.7 KiB
Cheetah
Raw Normal View History

2014-04-02 16:43:31 +00:00
{{template "base/head" .}}
{{template "base/navbar" .}}
{{template "repo/nav" .}}
{{template "repo/toolbar" .}}
<div id="body" class="container">
2014-04-04 12:54:00 +00:00
<div id="release">
<h4 id="release-head">
2014-04-14 02:20:28 +00:00
<span class="release"><strong>Releases</strong></span><!-- /
<a class="tag" href="/{tag_link}">Tags</a> -->
2014-04-04 12:54:00 +00:00
<!-- comment : if in tag page, show a.release and span.tag please -->
</h4>
<ul id="release-list" class="list-unstyled">
2014-04-14 05:57:25 +00:00
{{range .Releases}}
<li class="release-item clearfix" id="release-{{.SHA1}}">
{{if .PublisherId}}
2014-04-04 12:54:00 +00:00
<div class="col-md-2 text-right">
2014-04-14 05:57:25 +00:00
{{if .IsPrerelease}}<span class="btn btn-warning status pre-release">Pre-Release</span>{{else}}<span class="btn btn-success status stable">Stable</span>{{end}}
<a class="tag" href="{{$.RepoLink}}/src/{{.TagName}}"><i class="fa fa-tag"></i>{{.TagName}}</a>
<a class="commit" href="{{$.RepoLink}}/src/{{.SHA1}}"><i class="fa fa-code"></i>{{ShortSha .SHA1}}</a>
2014-04-04 12:54:00 +00:00
</div>
<div class="col-md-10">
2014-04-14 05:57:25 +00:00
<h4 class="title"><a href="{{$.RepoLink}}/src/{{.TagName}}">{{.Title}}</a></h4>
2014-04-04 12:54:00 +00:00
<p class="info">
2014-04-14 05:57:25 +00:00
<span class="author"><img class="avatar" src="{{.Publisher.AvatarLink}}" alt="" width="20">&nbsp;&nbsp;
<a href="/user/{{.Publisher.Name}}">{{.Publisher.Name}}</a></span>
{{if .Created}}<span class="time">{{TimeSince .Created}}</span>{{end}}
<span class="ahead"><strong>{{.NumCommitsBehind}}</strong> commits since this release</span>
2014-04-04 12:54:00 +00:00
</p>
2014-04-14 05:57:25 +00:00
<div class="markdown desc">
{{str2html .Note}}
</div>
2014-04-04 12:54:00 +00:00
<p class="download">
2014-04-14 05:57:25 +00:00
<a class="btn btn-default" href="{{$.RepoLink}}/archive/{{.TagName}}/{{$.Repository.Name}}.zip"><i class="fa fa-download"></i>Source Code (ZIP)</a>
<!-- <a class="btn btn-default" href="{release_download_link}"><i class="fa fa-download"></i>Source Code (TAR.GZ)</a> -->
2014-04-04 12:54:00 +00:00
</p>
<span class="dot">&nbsp;</span>
</div>
2014-04-14 05:57:25 +00:00
{{else}}
2014-04-04 12:54:00 +00:00
<div class="col-md-2 text-right">
2014-04-14 05:57:25 +00:00
<a class="commit" href="{{$.RepoLink}}/src/{{.SHA1}}"><i class="fa fa-code"></i>{{ShortSha .SHA1}}</a>
2014-04-04 12:54:00 +00:00
</div>
<div class="col-md-10">
2014-04-14 05:57:25 +00:00
<h5 class="title"><a href="{{$.RepoLink}}/src/{{.TagName}}">{{.TagName}}</a><i class="fa fa-tag"></i></h5>
2014-04-04 12:54:00 +00:00
<p class="download">
2014-04-14 05:57:25 +00:00
<a class="download-link" href="{{$.RepoLink}}/archive/{{.TagName}}/{{$.Repository.Name}}.zip"><i class="fa fa-download"></i>zip</a>
<!-- <a class="download-link" href="{release_download_link}"><i class="fa fa-download"></i>tar.gz</a> -->
2014-04-04 12:54:00 +00:00
</p>
<span class="dot">&nbsp;</span>
</div>
2014-04-14 05:57:25 +00:00
{{end}}
2014-04-04 12:54:00 +00:00
</li>
2014-04-14 05:57:25 +00:00
{{end}}
<!-- <li class="release-item clearfix" id="release-{release_id}">
2014-04-04 12:54:00 +00:00
<div class="col-md-2 text-right">
<span class="btn btn-warning status pre-release">Pre-Release</span>
<a class="tag" href="{commit_link}"><i class="fa fa-tag"></i>release tag</a>
<a class="commit" href="{commit_link}"><i class="fa fa-code"></i>commit-sha</a>
</div>
<div class="col-md-10">
<h4 class="title"><a href="{release_single_link}">Release Title</a></h4>
<p class="info">
<span class="author"><img class="avatar" src="http://1.gravatar.com/avatar/f72f7454ce9d710baa506394f68f4132" alt="" width="20">&nbsp;&nbsp;
<a href="/user/fuxiaohei">fuxiaohei</a></span>
<span class="time">1 week ago</span>
<span class="ahead"><strong>0</strong> commits since this tag</span>
</p>
<div class="markdown desc">
release descriptions, support markdown content
</div>
<p class="download">
<a class="btn btn-default" href="{release_download_link}"><i class="fa fa-download"></i>Source Code (ZIP)</a>
<a class="btn btn-default" href="{release_download_link}"><i class="fa fa-download"></i>Source Code (TAR.GZ)</a>
</p>
<span class="dot">&nbsp;</span>
</div>
2014-04-14 05:57:25 +00:00
</li> -->
2014-04-04 12:54:00 +00:00
</ul>
</div>
2014-04-02 16:43:31 +00:00
</div>
{{template "base/footer" .}}