summaryrefslogtreecommitdiffstats
path: root/templates/repo
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2016-08-15 14:04:44 -0700
committerUnknwon <u@gogs.io>2016-08-15 14:04:44 -0700
commit61e27dedf7a02cd01fbf8ad34913c973d057664a (patch)
tree1895c9e89935efe5738bb5fc9b4cf44b1d6a6631 /templates/repo
parent94392a7af3d07f79adab195acfb7c1b545f68be9 (diff)
downloadgitea-61e27dedf7a02cd01fbf8ad34913c973d057664a.tar.gz
gitea-61e27dedf7a02cd01fbf8ad34913c973d057664a.zip
#3466 fix response of pull request form validation error
Diffstat (limited to 'templates/repo')
-rw-r--r--templates/repo/issue/comment_tab.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/issue/comment_tab.tmpl b/templates/repo/issue/comment_tab.tmpl
index 6f9c91542a..b009060cd1 100644
--- a/templates/repo/issue/comment_tab.tmpl
+++ b/templates/repo/issue/comment_tab.tmpl
@@ -5,7 +5,7 @@
</div>
<div class="ui bottom attached active tab segment" data-tab="write">
<textarea id="content" class="edit_area" name="content" tabindex="4" data-id="issue-{{.RepoName}}" data-url="{{AppSubUrl}}/api/v1/markdown" data-context="{{.Repo.RepoLink}}">
-{{if .IssueTemplate}}{{.IssueTemplate}}{{end}}{{if .PullRequestTemplate}}{{.PullRequestTemplate}}{{end}}</textarea>
+{{if .IssueTemplate}}{{.IssueTemplate}}{{else if .PullRequestTemplate}}{{.PullRequestTemplate}}{{else}}{{.content}}{{end}}</textarea>
</div>
<div class="ui bottom attached tab segment markdown" data-tab="preview">
{{.i18n.Tr "repo.release.loading"}}