|
73 | 73 | <summary>
|
74 | 74 | {{ctx.Locale.Tr "repo.release.downloads"}}
|
75 | 75 | </summary>
|
76 |
| - <ul class="list"> |
| 76 | + <ul class="ui divided list attachment-list"> |
77 | 77 | {{if and (not $.DisableDownloadSourceArchives) (not $release.IsDraft) ($.Permission.CanRead ctx.Consts.RepoUnitTypeCode)}}
|
78 |
| - <li> |
79 |
| - <a class="archive-link" href="{{$.RepoLink}}/archive/{{$release.TagName | PathEscapeSegments}}.zip" rel="nofollow"><strong>{{svg "octicon-file-zip" 16 "download-icon"}}{{ctx.Locale.Tr "repo.release.source_code"}} (ZIP)</strong></a> |
| 78 | + <li class="item"> |
| 79 | + <a class="archive-link" download href="{{$.RepoLink}}/archive/{{$release.TagName | PathEscapeSegments}}.zip" rel="nofollow"> |
| 80 | + <strong class="flex-text-inline">{{svg "octicon-file-zip" 16 "download-icon"}}{{ctx.Locale.Tr "repo.release.source_code"}} (ZIP)</strong> |
| 81 | + </a> |
80 | 82 | </li>
|
81 |
| - <li> |
82 |
| - <a class="archive-link" href="{{$.RepoLink}}/archive/{{$release.TagName | PathEscapeSegments}}.tar.gz" rel="nofollow"><strong>{{svg "octicon-file-zip" 16 "download-icon"}}{{ctx.Locale.Tr "repo.release.source_code"}} (TAR.GZ)</strong></a> |
| 83 | + <li class="item"> |
| 84 | + <a class="archive-link" download href="{{$.RepoLink}}/archive/{{$release.TagName | PathEscapeSegments}}.tar.gz" rel="nofollow"> |
| 85 | + <strong class="flex-text-inline">{{svg "octicon-file-zip" 16 "download-icon"}}{{ctx.Locale.Tr "repo.release.source_code"}} (TAR.GZ)</strong> |
| 86 | + </a> |
83 | 87 | </li>
|
84 | 88 | {{end}}
|
85 |
| - {{range $release.Attachments}} |
86 |
| - <li> |
87 |
| - <a target="_blank" rel="nofollow" href="{{.DownloadURL}}" download> |
88 |
| - <strong>{{svg "octicon-package" 16 "download-icon"}}{{.Name}}</strong> |
| 89 | + {{range $att := $release.Attachments}} |
| 90 | + <li class="item"> |
| 91 | + <a target="_blank" class="tw-flex-grow-[2] gt-ellipsis" rel="nofollow" download href="{{$att.DownloadURL}}"> |
| 92 | + <strong class="flex-text-inline">{{svg "octicon-package" 16 "download-icon"}}<span class="gt-ellipsis">{{$att.Name}}</span></strong> |
89 | 93 | </a>
|
90 |
| - <div> |
91 |
| - <span class="text grey">{{.Size | FileSize}}</span> |
92 |
| - <span data-tooltip-content="{{ctx.Locale.Tr "repo.release.download_count" (ctx.Locale.PrettyNumber .DownloadCount)}}"> |
| 94 | + <div class="attachment-right-info flex-text-inline"> |
| 95 | + <span class="tw-pl-5">{{$att.Size | FileSize}}</span> |
| 96 | + <span class="flex-text-inline" data-tooltip-content="{{ctx.Locale.Tr "repo.release.download_count" (ctx.Locale.PrettyNumber $att.DownloadCount)}}"> |
93 | 97 | {{svg "octicon-info"}}
|
94 | 98 | </span>
|
| 99 | + <div class="tw-flex-1"></div> |
| 100 | + {{DateUtils.TimeSince $att.CreatedUnix}} |
95 | 101 | </div>
|
96 | 102 | </li>
|
97 | 103 | {{end}}
|
|
0 commit comments