diff -r -U3 orig/repo/issue/view_content.tmpl templates/repo/issue/view_content.tmpl --- orig/repo/issue/view_content.tmpl Tue Oct 22 15:26:58 2019 +++ templates/repo/issue/view_content.tmpl Tue Oct 22 15:23:19 2019 @@ -39,7 +39,34 @@
{{.Issue.Content}}
+ + {{if .Issue.Attachments}} +
+
+ {{range .Issue.Attachments}} +
+ + {{if FilenameIsImage .Name}} + + {{else}} + + {{end}} + {{.Name}} + +
+
+ {{if FilenameIsImage .Name}} + + {{else}} + {{.Size | FileSize}} + {{end}} +
+ {{end}} +
+ {{end}} + + {{$reactions := .Issue.Reactions.GroupByType}} {{if $reactions}}
@@ -46,21 +73,6 @@ {{template "repo/issue/view_content/reactions" Dict "ctx" $ "ActionURL" (Printf "%s/issues/%d/reactions" $.RepoLink .Issue.Index) "Reactions" $reactions }}
{{end}} - {{if .Issue.Attachments}} -
-
- {{range .Issue.Attachments}} - - {{if FilenameIsImage .Name}} - - {{else}} - - {{end}} - - {{end}} -
-
- {{end}} diff -r -U3 orig/repo/issue/view_content/comments.tmpl templates/repo/issue/view_content/comments.tmpl --- orig/repo/issue/view_content/comments.tmpl Tue Oct 22 15:27:48 2019 +++ templates/repo/issue/view_content/comments.tmpl Tue Oct 22 15:23:19 2019 @@ -48,6 +48,32 @@
{{.Content}}
+ + {{if .Attachments}} +
+
+ {{range .Attachments}} +
+ + {{if FilenameIsImage .Name}} + + {{else}} + + {{end}} + {{.Name}} + +
+
+ {{if FilenameIsImage .Name}} + + {{else}} + {{.Size | FileSize}} + {{end}} +
+ {{end}} +
+ {{end}} + {{$reactions := .Reactions.GroupByType}} {{if $reactions}} @@ -55,21 +81,6 @@ {{template "repo/issue/view_content/reactions" Dict "ctx" $ "ActionURL" (Printf "%s/comments/%d/reactions" $.RepoLink .ID) "Reactions" $reactions }} {{end}} - {{if .Attachments}} -
-
- {{range .Attachments}} - - {{if FilenameIsImage .Name}} - - {{else}} - - {{end}} - - {{end}} -
-
- {{end}} {{else if eq .Type 1}}