From 24734a33e72dbdc1da4f7341cb2cf62521ce53f8 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Mon, 13 Mar 2017 05:26:17 -0400 Subject: release: improve attachment handle --- templates/repo/release/new.tmpl | 46 +++++++++++++++++++++++++---------------- 1 file changed, 28 insertions(+), 18 deletions(-) (limited to 'templates/repo') diff --git a/templates/repo/release/new.tmpl b/templates/repo/release/new.tmpl index 09b7a9f8..5530bd79 100644 --- a/templates/repo/release/new.tmpl +++ b/templates/repo/release/new.tmpl @@ -48,22 +48,23 @@ - {{if .attachments}} - - - - {{range .attachments}} - - - - {{end}} - -
- {{.Name}} - - -
- {{end}} +
+ {{if .attachments}} + + + {{range .attachments}} + + + + {{end}} + +
+ {{.Name}} + + +
+ {{end}} +
{{if .IsAttachmentEnabled}}
@@ -122,9 +123,18 @@ {{end}} -- cgit v1.2.3