summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
author无闻 <u@gogs.io>2016-08-30 16:47:22 -0700
committerGitHub <noreply@github.com>2016-08-30 16:47:22 -0700
commitcd9b926af7d186c82997c26fea0bbdeed447b4dc (patch)
treed9b0e47314b291850f71b59477bce27eb577c4fa /templates
parent8516dfcb6cb008f286ec84bed4243928acb94844 (diff)
parent9ac46fb983f31cfece76e2181a9fe73b71f02e2e (diff)
downloadgitea-cd9b926af7d186c82997c26fea0bbdeed447b4dc.tar.gz
gitea-cd9b926af7d186c82997c26fea0bbdeed447b4dc.zip
Support Editorconfig on web editor (#3512)
Diffstat (limited to 'templates')
-rw-r--r--templates/repo/editor/edit.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/editor/edit.tmpl b/templates/repo/editor/edit.tmpl
index 9de55c65a1..b247e1ea35 100644
--- a/templates/repo/editor/edit.tmpl
+++ b/templates/repo/editor/edit.tmpl
@@ -15,7 +15,7 @@
{{range $i, $v := .TreeNames}}
<div class="divider"> / </div>
{{if eq $i $l}}
- <input id="file-name" value="{{$v}}" placeholder="{{$.i18n.Tr "repo.editor.name_your_file"}}" required autofocus>
+ <input id="file-name" value="{{$v}}" placeholder="{{$.i18n.Tr "repo.editor.name_your_file"}}" data-ec-url-prefix="{{$.EditorconfigURLPrefix}}" required autofocus>
<span class="octicon octicon-info poping up" data-content="{{$.i18n.Tr "repo.editor.filename_help"}}" data-position="bottom center" data-variation="tiny inverted"></span>
{{else}}
<span class="section"><a href="{{EscapePound $.BranchLink}}/{{EscapePound $v}}">{{$v}}</a></span>