Add accordion to release list and compact non-latest (#10910)

Signed-off-by: jolheiser <john.olheiser@gmail.com>
This commit is contained in:
John Olheiser 2020-03-31 17:39:54 -05:00 committed by GitHub
parent 2c25e75dca
commit 36d9237e60
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -14,7 +14,7 @@
{{end}}
</h2>
<ul id="release-list">
{{range $release := .Releases}}
{{range $idx, $release := .Releases}}
<li class="ui grid">
<div class="ui four wide column meta">
{{if .IsTag}}
@ -71,7 +71,12 @@
{{Str2html .Note}}
</div>
<div class="download">
<h2>{{$.i18n.Tr "repo.release.downloads"}}</h2>
<div class="ui accordion">
<h2 class="title {{if eq $idx 0}}active{{end}}">
<i class="dropdown icon"></i>
{{$.i18n.Tr "repo.release.downloads"}}
</h2>
<div class="content {{if eq $idx 0}}active{{end}}">
<ul class="list">
{{if $.Permission.CanRead $.UnitTypeCode}}
<li>
@ -94,6 +99,8 @@
{{end}}
</ul>
</div>
</div>
</div>
{{end}}
<span class="dot">&nbsp;</span>
</div>