summaryrefslogtreecommitdiffstats
path: root/templates/repo
diff options
context:
space:
mode:
authorAndrey Nering <andrey.nering@gmail.com>2016-02-17 20:21:31 -0200
committerAndrey Nering <andrey.nering@gmail.com>2016-02-18 21:21:30 -0200
commit658bfc2704eb7630911b5a3c994258757dd79cec (patch)
tree26f0bd2e4191519a77e012c51c4bfdd089f9ceda /templates/repo
parentccc94dd11cdc2eed16444715255c6fc590094a7b (diff)
downloadgitea-658bfc2704eb7630911b5a3c994258757dd79cec.tar.gz
gitea-658bfc2704eb7630911b5a3c994258757dd79cec.zip
Implement issue and pull request templates.
Similar to GitHub: https://github.com/blog/2111-issue-and-pull-request-templates Priority: - root - .gogs - .github
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 8f6c8ca778..851c3b1fae 100644
--- a/templates/repo/issue/comment_tab.tmpl
+++ b/templates/repo/issue/comment_tab.tmpl
@@ -4,7 +4,7 @@
<a class="item" data-tab="preview" data-url="{{AppSubUrl}}/api/v1/markdown" data-context="{{.RepoLink}}">{{.i18n.Tr "repo.release.preview"}}</a>
</div>
<div class="ui bottom attached active tab segment" data-tab="write">
- <textarea id="content" name="content" tabindex="4"></textarea>
+ <textarea id="content" name="content" tabindex="4">{{if .IssueTemplate}}{{.IssueTemplate}}{{end}}{{if .PullRequestTemplate}}{{.PullRequestTemplate}}{{end}}</textarea>
</div>
<div class="ui bottom attached tab segment markdown" data-tab="preview">
{{.i18n.Tr "repo.release.loading"}}