summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-04-07 01:55:22 -0400
committerUnknown <joe2010xtmf@163.com>2014-04-07 01:55:22 -0400
commit8c9a0494ecb477a641c07be68a9c0cb8fa661d29 (patch)
tree2dff6d6617e87564ada7630c0942939fd8869563 /templates
parente2fe2209057b90e6c78a84b7c66c3395cf100e30 (diff)
downloadgitea-8c9a0494ecb477a641c07be68a9c0cb8fa661d29.tar.gz
gitea-8c9a0494ecb477a641c07be68a9c0cb8fa661d29.zip
Add @ # commit link detect on all markdown render
Diffstat (limited to 'templates')
-rw-r--r--templates/issue/view.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/issue/view.tmpl b/templates/issue/view.tmpl
index e619451cc1..16d60d3584 100644
--- a/templates/issue/view.tmpl
+++ b/templates/issue/view.tmpl
@@ -72,7 +72,7 @@
</div>
<ul class="nav nav-tabs" data-init="tabs">
<li class="active issue-write"><a href="#issue-textarea" data-toggle="tab">Write</a></li>
- <li class="issue-preview"><a href="#issue-preview" data-toggle="tab" data-ajax="/api/v1/markdown?repo=repo_id&issue=issue_id&comment=new" data-ajax-name="issue-preview" data-ajax-method="post" data-preview="#issue-preview">Preview</a></li>
+ <li class="issue-preview"><a href="#issue-preview" data-toggle="tab" data-ajax="/api/v1/markdown?repoLink={{.RepoLink}}" data-ajax-name="issue-preview" data-ajax-method="post" data-preview="#issue-preview">Preview</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane" id="issue-textarea">