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