2020-05-15 00:45:21 +05:30
<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 16:14:09 +05:30
<div class="field">
2020-05-15 00:45:21 +05:30
<div class="ui bottom active tab" data-tab="write">
2019-04-12 11:23:34 +05:30
<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}}">
2019-01-28 20:53:59 +05:30
{{if .BodyQuery}}{{.BodyQuery}}{{else if .IssueTemplate}}{{.IssueTemplate}}{{else if .PullRequestTemplate}}{{.PullRequestTemplate}}{{else}}{{.content}}{{end}}</textarea>
2015-12-08 04:00:52 +05:30
</div>
2020-05-15 00:45:21 +05:30
<div class="ui bottom tab markdown" data-tab="preview">
2018-08-06 10:13:22 +05:30
{{.i18n.Tr "loading"}}
2015-12-08 04:00:52 +05:30
</div>
2015-08-12 16:14:09 +05:30
</div>
{{if .IsAttachmentEnabled}}
2020-05-15 00:45:21 +05:30
<div class="field">
2016-08-11 18:18:08 +05:30
<div class="files"></div>
2020-05-15 00:45:21 +05:30
<div class="ui dropzone" id="dropzone" data-upload-url="{{AppSubUrl}}/attachments" data-accepts="{{.AttachmentAllowedTypes}}" data-max-file="{{.AttachmentMaxFiles}}" data-max-size="{{.AttachmentMaxSize}}" data-default-message="{{.i18n.Tr "dropzone.default_message"}}" data-invalid-input-type="{{.i18n.Tr "dropzone.invalid_input_type"}}" data-file-too-big="{{.i18n.Tr "dropzone.file_too_big"}}" data-remove-file="{{.i18n.Tr "dropzone.remove_file"}}"></div>
</div>
2015-12-08 04:00:52 +05:30
{{end}}