mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-10-30 14:19:12 +01:00
Add accordion to release list and compact non-latest (#10910)
Signed-off-by: jolheiser <john.olheiser@gmail.com>
This commit is contained in:
parent
2c25e75dca
commit
36d9237e60
1 changed files with 30 additions and 23 deletions
|
@ -14,7 +14,7 @@
|
||||||
{{end}}
|
{{end}}
|
||||||
</h2>
|
</h2>
|
||||||
<ul id="release-list">
|
<ul id="release-list">
|
||||||
{{range $release := .Releases}}
|
{{range $idx, $release := .Releases}}
|
||||||
<li class="ui grid">
|
<li class="ui grid">
|
||||||
<div class="ui four wide column meta">
|
<div class="ui four wide column meta">
|
||||||
{{if .IsTag}}
|
{{if .IsTag}}
|
||||||
|
@ -71,7 +71,12 @@
|
||||||
{{Str2html .Note}}
|
{{Str2html .Note}}
|
||||||
</div>
|
</div>
|
||||||
<div class="download">
|
<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">
|
<ul class="list">
|
||||||
{{if $.Permission.CanRead $.UnitTypeCode}}
|
{{if $.Permission.CanRead $.UnitTypeCode}}
|
||||||
<li>
|
<li>
|
||||||
|
@ -94,6 +99,8 @@
|
||||||
{{end}}
|
{{end}}
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
<span class="dot"> </span>
|
<span class="dot"> </span>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue