File tree 2 files changed +23
-18
lines changed
2 files changed +23
-18
lines changed Original file line number Diff line number Diff line change 1
- {{if .Fields}}
2
- <input type="hidden" name="template-file" value="{{.TemplateFile}}">
3
- {{range .Fields}}
4
- {{if eq .Type "input"}}
5
- {{template "repo/issue/fields/input" Dict "Context" $.Context "item" .}}
6
- {{else if eq .Type "markdown"}}
7
- {{template "repo/issue/fields/markdown" Dict "Context" $.Context "item" .}}
8
- {{else if eq .Type "textarea"}}
9
- {{template "repo/issue/fields/textarea" Dict "Context" $.Context "item" .}}
10
- {{else if eq .Type "dropdown"}}
11
- {{template "repo/issue/fields/dropdown" Dict "Context" $.Context "item" .}}
12
- {{else if eq .Type "checkboxes"}}
13
- {{template "repo/issue/fields/checkboxes" Dict "Context" $.Context "item" .}}
14
- {{end}}
15
- {{end}}
16
- {{else}}
17
1
<div class="ui top tabular menu" data-write="write" data-preview="preview">
18
2
<a class="active item" data-tab="write">{{.locale.Tr "write"}}</a>
19
3
<a class="item" data-tab="preview" data-url="{{.Repository.Link}}/markdown" data-context="{{.RepoLink}}">{{.locale.Tr "preview"}}</a>
28
12
{{.locale.Tr "loading"}}
29
13
</div>
30
14
</div>
31
- {{end}}
32
15
{{if .IsAttachmentEnabled}}
33
16
<div class="field">
34
17
{{template "repo/upload" .}}
Original file line number Diff line number Diff line change 16
16
<div class="title_wip_desc" data-wip-prefixes="{{Json .PullRequestWorkInProgressPrefixes}}">{{.locale.Tr "repo.pulls.title_wip_desc" (index .PullRequestWorkInProgressPrefixes 0| Escape) | Safe}}</div>
17
17
{{end}}
18
18
</div>
19
- {{template "repo/issue/comment_tab" .}}
19
+ {{if .Fields}}
20
+ <input type="hidden" name="template-file" value="{{.TemplateFile}}">
21
+ {{range .Fields}}
22
+ {{if eq .Type "input"}}
23
+ {{template "repo/issue/fields/input" Dict "Context" $.Context "item" .}}
24
+ {{else if eq .Type "markdown"}}
25
+ {{template "repo/issue/fields/markdown" Dict "Context" $.Context "item" .}}
26
+ {{else if eq .Type "textarea"}}
27
+ {{template "repo/issue/fields/textarea" Dict "Context" $.Context "item" .}}
28
+ {{else if eq .Type "dropdown"}}
29
+ {{template "repo/issue/fields/dropdown" Dict "Context" $.Context "item" .}}
30
+ {{else if eq .Type "checkboxes"}}
31
+ {{template "repo/issue/fields/checkboxes" Dict "Context" $.Context "item" .}}
32
+ {{end}}
33
+ {{end}}
34
+ {{if .IsAttachmentEnabled}}
35
+ <div class="field">
36
+ {{template "repo/upload" .}}
37
+ </div>
38
+ {{end}}
39
+ {{else}}
40
+ {{template "repo/issue/comment_tab" .}}
41
+ {{end}}
20
42
<div class="text right">
21
43
<button class="ui green button loading-button" tabindex="6">
22
44
{{if .PageIsComparePull}}
You can’t perform that action at this time.
0 commit comments