diff options
author | Andrey Nering <andrey.nering@gmail.com> | 2016-08-30 20:18:40 -0300 |
---|---|---|
committer | Andrey Nering <andrey.nering@gmail.com> | 2016-08-30 20:30:47 -0300 |
commit | 9ac46fb983f31cfece76e2181a9fe73b71f02e2e (patch) | |
tree | 6499c69d94fcbeb71c144295c6df1ccc1883f8b9 /templates | |
parent | 47a3243ff1b3da1b435d9390e578752f3a74ae8e (diff) | |
download | gitea-9ac46fb983f31cfece76e2181a9fe73b71f02e2e.tar.gz gitea-9ac46fb983f31cfece76e2181a9fe73b71f02e2e.zip |
Support Editorconfig on web editor
Diffstat (limited to 'templates')
-rw-r--r-- | templates/repo/editor/edit.tmpl | 2 |
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> |