diff options
author | Jonas Franz <info@jonasfranz.software> | 2018-03-19 17:06:00 +0100 |
---|---|---|
committer | Lauris BH <lauris@nix.lv> | 2018-03-19 18:06:00 +0200 |
commit | 43fc430c078d61cf7ab428c3cf0e07eeebd0445e (patch) | |
tree | 6fba9264ffb8a58420109c083fcb739624d76d62 /templates/repo/release | |
parent | 47422c2635343604d713d91a96308ce1717bc6cf (diff) | |
download | gitea-43fc430c078d61cf7ab428c3cf0e07eeebd0445e.tar.gz gitea-43fc430c078d61cf7ab428c3cf0e07eeebd0445e.zip |
Improve release page UI (#3693)
* Improve release page ui by adding size
Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Add documentation to a.MustSize()
Signed-off-by: Jonas Franz <info@jonasfranz.software>
Diffstat (limited to 'templates/repo/release')
-rw-r--r-- | templates/repo/release/list.tmpl | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/templates/repo/release/list.tmpl b/templates/repo/release/list.tmpl index dd220b6a84..73e4a86821 100644 --- a/templates/repo/release/list.tmpl +++ b/templates/repo/release/list.tmpl @@ -68,17 +68,18 @@ <ul class="list"> {{if $.Repository.UnitEnabled $.UnitTypeCode}} <li> - <a href="{{$.RepoLink}}/archive/{{.TagName}}.zip" rel="nofollow"><i class="octicon octicon-file-zip"></i> {{$.i18n.Tr "repo.release.source_code"}} (ZIP)</a> + <a href="{{$.RepoLink}}/archive/{{.TagName}}.zip" rel="nofollow"><strong><i class="octicon octicon-file-zip"></i> {{$.i18n.Tr "repo.release.source_code"}} (ZIP)</strong></a> </li> <li> - <a href="{{$.RepoLink}}/archive/{{.TagName}}.tar.gz"><i class="octicon octicon-file-zip"></i> {{$.i18n.Tr "repo.release.source_code"}} (TAR.GZ)</a> + <a href="{{$.RepoLink}}/archive/{{.TagName}}.tar.gz"><strong><i class="octicon octicon-file-zip"></i> {{$.i18n.Tr "repo.release.source_code"}} (TAR.GZ)</strong></a> </li> {{end}} {{if .Attachments}} {{range .Attachments}} <li> <a target="_blank" rel="noopener" href="{{AppSubUrl}}/attachments/{{.UUID}}"> - <span class="ui image octicon octicon-desktop-download" title='{{.Name}}'></span> {{.Name}} + <strong><span class="ui image octicon octicon-package" title='{{.Name}}'></span> {{.Name}}</strong> + <span class="ui text grey right">{{.MustSize | FileSize}}</span> </a> </li> {{end}} |