2020-05-14 22:15:21 +03:00
|
|
|
<div class="ui top tabular menu" data-write="write" data-preview="preview">
|
|
|
|
<a class="active item" data-tab="write">{{.i18n.Tr "write"}}</a>
|
2022-04-08 07:22:10 +03:00
|
|
|
<a class="item" data-tab="preview" data-url="{{.Repository.HTMLURL}}/markdown" data-context="{{.RepoLink}}">{{.i18n.Tr "preview"}}</a>
|
2020-05-14 22:15:21 +03:00
|
|
|
</div>
|
2015-08-12 13:44:09 +03:00
|
|
|
<div class="field">
|
2020-05-14 22:15:21 +03:00
|
|
|
<div class="ui bottom active tab" data-tab="write">
|
2022-04-08 07:22:10 +03:00
|
|
|
<textarea id="content" class="edit_area js-quick-submit" name="content" tabindex="4" data-id="issue-{{.RepoName}}" data-url="{{.Repository.HTMLURL}}/markdown" data-context="{{.Repo.RepoLink}}">
|
2021-03-18 05:02:38 +03:00
|
|
|
{{- if .BodyQuery}}{{.BodyQuery}}{{else if .IssueTemplate}}{{.IssueTemplate}}{{else if .PullRequestTemplate}}{{.PullRequestTemplate}}{{else}}{{.content}}{{end -}}
|
|
|
|
</textarea>
|
2015-12-08 01:30:52 +03:00
|
|
|
</div>
|
2021-05-07 11:43:41 +03:00
|
|
|
<div class="ui bottom tab markup" data-tab="preview">
|
2018-08-06 07:43:22 +03:00
|
|
|
{{.i18n.Tr "loading"}}
|
2015-12-08 01:30:52 +03:00
|
|
|
</div>
|
2015-08-12 13:44:09 +03:00
|
|
|
</div>
|
|
|
|
{{if .IsAttachmentEnabled}}
|
2020-10-05 08:49:33 +03:00
|
|
|
<div class="field">
|
|
|
|
{{template "repo/upload" .}}
|
|
|
|
</div>
|
2015-12-08 01:30:52 +03:00
|
|
|
{{end}}
|