2022-09-02 09:58:49 +02:00
|
|
|
<div class="ui top tabular menu" data-write="write" data-preview="preview">
|
|
|
|
<a class="active item" data-tab="write">{{.locale.Tr "write"}}</a>
|
2023-03-24 07:12:23 +01:00
|
|
|
<a class="item" data-tab="preview" data-url="{{.Repository.Link}}/markup" data-context="{{.RepoLink}}">{{.locale.Tr "preview"}}</a>
|
2022-09-02 09:58:49 +02:00
|
|
|
</div>
|
|
|
|
<div class="field">
|
|
|
|
<div class="ui bottom active tab" data-tab="write">
|
2023-03-24 07:12:23 +01:00
|
|
|
<textarea id="content" class="edit_area js-quick-submit" name="content" tabindex="4" data-id="issue-{{.RepoName}}" data-url="{{.Repository.Link}}/markup" data-context="{{.Repo.RepoLink}}">
|
2021-03-18 03:02:38 +01:00
|
|
|
{{- if .BodyQuery}}{{.BodyQuery}}{{else if .IssueTemplate}}{{.IssueTemplate}}{{else if .PullRequestTemplate}}{{.PullRequestTemplate}}{{else}}{{.content}}{{end -}}
|
|
|
|
</textarea>
|
2022-09-02 09:58:49 +02:00
|
|
|
</div>
|
|
|
|
<div class="ui bottom tab markup" data-tab="preview">
|
|
|
|
{{.locale.Tr "loading"}}
|
|
|
|
</div>
|
2015-12-07 23:30:52 +01:00
|
|
|
</div>
|
2015-08-12 12:44:09 +02:00
|
|
|
{{if .IsAttachmentEnabled}}
|
2020-10-05 07:49:33 +02:00
|
|
|
<div class="field">
|
|
|
|
{{template "repo/upload" .}}
|
|
|
|
</div>
|
2015-12-07 23:30:52 +01:00
|
|
|
{{end}}
|