File tree 3 files changed +25
-21
lines changed
3 files changed +25
-21
lines changed Original file line number Diff line number Diff line change 55
55
</div>
56
56
<div id="comment-{{.Issue.ID}}" class="raw-content hide">{{.Issue.Content}}</div>
57
57
<div class="edit-content-zone hide" data-write="issue-{{.Issue.ID}}-write" data-preview="issue-{{.Issue.ID}}-preview" data-update-url="{{$.RepoLink}}/issues/{{.Issue.Index}}/content" data-context="{{.RepoLink}}" data-attachment-url="{{$.RepoLink}}/issues/{{.Issue.Index}}/attachments" data-view-attachment-url="{{$.RepoLink}}/issues/{{.Issue.Index}}/view-attachments"></div>
58
+ {{if .Issue.Attachments}}
59
+ <div class="ui clearing divider"></div>
60
+ <div class="ui middle aligned padded grid">
61
+ {{template "repo/issue/view_content/attachments" Dict "ctx" $ "Attachments" .Issue.Attachments}}
62
+ </div>
63
+ {{end}}
58
64
</div>
59
65
{{$reactions := .Issue.Reactions.GroupByType}}
60
66
{{if $reactions}}
61
67
<div class="ui attached segment reactions">
62
68
{{template "repo/issue/view_content/reactions" Dict "ctx" $ "ActionURL" (Printf "%s/issues/%d/reactions" $.RepoLink .Issue.Index) "Reactions" $reactions}}
63
69
</div>
64
70
{{end}}
65
- {{if .Issue.Attachments}}
66
- <div class="ui bottom attached segment">
67
- <div class="ui small images">
68
- {{template "repo/issue/view_content/attachments" Dict "ctx" $ "Attachments" .Issue.Attachments}}
69
- </div>
70
- </div>
71
- {{end}}
72
71
</div>
73
72
</div>
74
73
Original file line number Diff line number Diff line change 1
1
{{range .Attachments}}
2
- <a target="_blank" rel="noopener noreferrer" href="{{.DownloadURL}}">
3
- {{if FilenameIsImage .Name}}
4
- <img class="ui image" src="{{.DownloadURL}}" title='{{$.ctx.i18n.Tr "repo.issues.attachment.open_tab" .Name}}'>
5
- {{else}}
6
- <span class="ui image" title='{{$.ctx.i18n.Tr "repo.issues.attachment.download" .Name}}'>{{svg "octicon-desktop-download" 16}}</span>
7
- {{end}}
8
- </a>
2
+ <div class="twelve wide column" style="padding: 6px;">
3
+ <a target="_blank" rel="noopener noreferrer" href="{{.DownloadURL}}" title='{{$.ctx.i18n.Tr "repo.issues.attachment.open_tab" .Name}}'>
4
+ {{if FilenameIsImage .Name}}
5
+ <span class="ui image">{{svg "octicon-file-media" 16}}</span>
6
+ {{else}}
7
+ <span class="ui image">{{svg "octicon-desktop-download" 16}}</span>
8
+ {{end}}
9
+ <span><strong>{{.Name}}</strong></span>
10
+ </a>
11
+ </div>
12
+ <div class="four wide column" style="padding: 0px;">
13
+ <span class="ui text grey right">{{.Size | FileSize}}</span>
14
+ </div>
9
15
{{end}}
Original file line number Diff line number Diff line change 52
52
</div>
53
53
<div id="comment-{{.ID}}" class="raw-content hide">{{.Content}}</div>
54
54
<div class="edit-content-zone hide" data-write="issuecomment-{{.ID}}-write" data-preview="issuecomment-{{.ID}}-preview" data-update-url="{{$.RepoLink}}/comments/{{.ID}}" data-context="{{$.RepoLink}}" data-attachment-url="{{$.RepoLink}}/comments/{{.ID}}/attachments"></div>
55
+ {{if .Issue.Attachments}}
56
+ <div class="ui clearing divider"></div>
57
+ <div class="ui middle aligned padded grid">
58
+ {{template "repo/issue/view_content/attachments" Dict "ctx" $ "Attachments" .Issue.Attachments}}
59
+ </div>
60
+ {{end}}
55
61
</div>
56
62
{{$reactions := .Reactions.GroupByType}}
57
63
{{if $reactions}}
58
64
<div class="ui attached segment reactions">
59
65
{{template "repo/issue/view_content/reactions" Dict "ctx" $ "ActionURL" (Printf "%s/comments/%d/reactions" $.RepoLink .ID) "Reactions" $reactions}}
60
66
</div>
61
67
{{end}}
62
- {{if .Attachments}}
63
- <div class="ui bottom attached segment">
64
- <div class="ui small images">
65
- {{template "repo/issue/view_content/attachments" Dict "ctx" $ "Attachments" .Attachments}}
66
- </div>
67
- </div>
68
- {{end}}
69
68
</div>
70
69
</div>
71
70
{{else if eq .Type 1}}
You can’t perform that action at this time.
0 commit comments