From 25b23c4bc991644c7db47b484dca3bb2d2694e62 Mon Sep 17 00:00:00 2001 From: Andrey Nering Date: Thu, 11 Aug 2016 20:16:36 -0300 Subject: Do not show non-image attachment in a tag. Fixes #3215 (#3311) --- templates/repo/issue/view_content.tmpl | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'templates/repo/issue') diff --git a/templates/repo/issue/view_content.tmpl b/templates/repo/issue/view_content.tmpl index d2183d41..ebd737c3 100644 --- a/templates/repo/issue/view_content.tmpl +++ b/templates/repo/issue/view_content.tmpl @@ -41,7 +41,13 @@
{{range .Issue.Attachments}} - + + {{if FilenameIsImage .Name}} + + {{else}} + + {{end}} + {{end}}
@@ -96,7 +102,13 @@
-- cgit v1.2.3