|
31 | 31 | {{range $idx, $release := .Releases}} |
32 | 32 | <tr> |
33 | 33 | <td class="tag"> |
34 | | - <h4> |
| 34 | + <h3 class="release-tag-name mb-3"> |
35 | 35 | <a class="df ac" href="{{$.RepoLink}}/src/tag/{{.TagName | EscapePound}}" rel="nofollow">{{.TagName}}</a> |
36 | | - </h4> |
| 36 | + </h3> |
37 | 37 | <div class="download df ac"> |
38 | 38 | {{if $.Permission.CanRead $.UnitTypeCode}} |
39 | 39 | <a class="mr-3 commit-sha" href="{{$.RepoLink}}/src/commit/{{.Sha1}}" rel="nofollow">{{svg "octicon-git-commit" 16 "mr-2"}}{{ShortSha .Sha1}}</a> |
|
104 | 104 | {{end}} |
105 | 105 | </div> |
106 | 106 | {{else}} |
107 | | - <h3> |
| 107 | + <h3 class="release-list-title"> |
108 | 108 | <a href="{{$.RepoLink}}/releases/tag/{{.TagName | EscapePound}}">{{.Title}}</a> |
109 | 109 | {{if $.CanCreateRelease}}<small>(<a href="{{$.RepoLink}}/releases/edit/{{.TagName | EscapePound}}" rel="nofollow">{{$.i18n.Tr "repo.release.edit"}}</a>)</small>{{end}} |
110 | 110 | </h3> |
|
119 | 119 | Ghost |
120 | 120 | {{end}} |
121 | 121 | </span> |
122 | | - {{if .CreatedUnix}}<span class="time">{{TimeSinceUnix .CreatedUnix $.Lang}}</span> | {{end}} |
| 122 | + <span class="released"> |
| 123 | + {{$.i18n.Tr "repo.released_this"}} |
| 124 | + </span> |
| 125 | + {{if .CreatedUnix}} |
| 126 | + <span class="time">{{TimeSinceUnix .CreatedUnix $.Lang}}</span> | |
| 127 | + {{end}} |
123 | 128 | <span class="ahead"><a href="{{$.RepoLink}}/compare/{{.TagName | EscapePound}}...{{.Target}}">{{$.i18n.Tr "repo.release.ahead.commits" .NumCommitsBehind | Str2html}}</a> {{$.i18n.Tr "repo.release.ahead.target" .Target}}</span> |
124 | 129 | </p> |
125 | 130 | <div class="markdown desc"> |
126 | 131 | {{Str2html .Note}} |
127 | 132 | </div> |
128 | | - <div class="download"> |
129 | | - <div class="ui accordion"> |
130 | | - <h2 class="title {{if eq $idx 0}}active{{end}}"> |
131 | | - {{svg "octicon-triangle-down" 14 "dropdown icon"}} |
132 | | - {{$.i18n.Tr "repo.release.downloads"}} |
133 | | - </h2> |
134 | | - <div class="content {{if eq $idx 0}}active{{end}}"> |
135 | | - <ul class="list"> |
136 | | - {{if $.Permission.CanRead $.UnitTypeCode}} |
137 | | - <li> |
138 | | - <a href="{{$.RepoLink}}/archive/{{.TagName | EscapePound}}.zip" rel="nofollow"><strong>{{svg "octicon-file-zip" 16 "mr-2"}}{{$.i18n.Tr "repo.release.source_code"}} (ZIP)</strong></a> |
139 | | - </li> |
| 133 | + <div class="ui accordion download"> |
| 134 | + <h2 class="title {{if eq $idx 0}}active{{end}} df ac mb-0"> |
| 135 | + {{svg "octicon-triangle-right" 14 "dropdown icon"}} |
| 136 | + {{$.i18n.Tr "repo.release.downloads"}} |
| 137 | + </h2> |
| 138 | + <div class="content {{if eq $idx 0}}active{{end}}"> |
| 139 | + <ul class="list"> |
| 140 | + {{if $.Permission.CanRead $.UnitTypeCode}} |
| 141 | + <li> |
| 142 | + <a href="{{$.RepoLink}}/archive/{{.TagName | EscapePound}}.zip" rel="nofollow"><strong>{{svg "octicon-file-zip" 16 "mr-2"}}{{$.i18n.Tr "repo.release.source_code"}} (ZIP)</strong></a> |
| 143 | + </li> |
| 144 | + <li> |
| 145 | + <a href="{{$.RepoLink}}/archive/{{.TagName | EscapePound}}.tar.gz"><strong>{{svg "octicon-file-zip" 16 "mr-2"}}{{$.i18n.Tr "repo.release.source_code"}} (TAR.GZ)</strong></a> |
| 146 | + </li> |
| 147 | + {{end}} |
| 148 | + {{if .Attachments}} |
| 149 | + {{range .Attachments}} |
140 | 150 | <li> |
141 | | - <a href="{{$.RepoLink}}/archive/{{.TagName | EscapePound}}.tar.gz"><strong>{{svg "octicon-file-zip" 16 "mr-2"}}{{$.i18n.Tr "repo.release.source_code"}} (TAR.GZ)</strong></a> |
| 151 | + <span class="ui text right" data-tooltip="{{$.i18n.Tr "repo.release.download_count" (.DownloadCount | PrettyNumber)}}" data-position="bottom right">{{svg "octicon-info"}}</span> |
| 152 | + <a target="_blank" rel="noopener noreferrer" href="{{.DownloadURL}}"> |
| 153 | + <strong><span class="ui image" title='{{.Name}}'>{{svg "octicon-package" 16 "mr-2"}}</span>{{.Name}}</strong> |
| 154 | + <span class="ui text grey right">{{.Size | FileSize}}</span> |
| 155 | + </a> |
142 | 156 | </li> |
143 | 157 | {{end}} |
144 | | - {{if .Attachments}} |
145 | | - {{range .Attachments}} |
146 | | - <li> |
147 | | - <span class="ui text right" data-tooltip="{{$.i18n.Tr "repo.release.download_count" (.DownloadCount | PrettyNumber)}}" data-position="bottom right">{{svg "octicon-info"}}</span> |
148 | | - <a target="_blank" rel="noopener noreferrer" href="{{.DownloadURL}}"> |
149 | | - <strong><span class="ui image" title='{{.Name}}'>{{svg "octicon-package" 16 "mr-2"}}</span>{{.Name}}</strong> |
150 | | - <span class="ui text grey right">{{.Size | FileSize}}</span> |
151 | | - </a> |
152 | | - </li> |
153 | | - {{end}} |
154 | | - {{end}} |
155 | | - </ul> |
156 | | - </div> |
| 158 | + {{end}} |
| 159 | + </ul> |
157 | 160 | </div> |
158 | 161 | </div> |
159 | 162 | {{end}} |
|
0 commit comments