diff options
author | Jonas Franz <info@jonasfranz.software> | 2018-03-31 03:10:44 +0200 |
---|---|---|
committer | Bo-Yi Wu <appleboy.tw@gmail.com> | 2018-03-31 09:10:44 +0800 |
commit | 3e06490d38ee631029b020ccd408231841e5d1da (patch) | |
tree | 65235171481ac2a9536f5dd7336ae9a870d7c083 /templates/repo/release | |
parent | d877bf7e15ebd5d9a74e58f3999e3276e76fa15e (diff) | |
download | gitea-3e06490d38ee631029b020ccd408231841e5d1da.tar.gz gitea-3e06490d38ee631029b020ccd408231841e5d1da.zip |
Add Size column to attachment (#3734)
* Add size column to attachment
Migrate attachments by calculating file sizes
Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Calculate attachment size on creation
Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Log error instead of returning error
Signed-off-by: Jonas Franz <info@jonasfranz.software>
Diffstat (limited to 'templates/repo/release')
-rw-r--r-- | templates/repo/release/list.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/release/list.tmpl b/templates/repo/release/list.tmpl index 73e4a86821..af0f0fa82a 100644 --- a/templates/repo/release/list.tmpl +++ b/templates/repo/release/list.tmpl @@ -79,7 +79,7 @@ <li> <a target="_blank" rel="noopener" href="{{AppSubUrl}}/attachments/{{.UUID}}"> <strong><span class="ui image octicon octicon-package" title='{{.Name}}'></span> {{.Name}}</strong> - <span class="ui text grey right">{{.MustSize | FileSize}}</span> + <span class="ui text grey right">{{.Size | FileSize}}</span> </a> </li> {{end}} |