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 /routers/repo/editor.go | |
parent | 47a3243ff1b3da1b435d9390e578752f3a74ae8e (diff) | |
download | gitea-9ac46fb983f31cfece76e2181a9fe73b71f02e2e.tar.gz gitea-9ac46fb983f31cfece76e2181a9fe73b71f02e2e.zip |
Support Editorconfig on web editor
Diffstat (limited to 'routers/repo/editor.go')
-rw-r--r-- | routers/repo/editor.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/routers/repo/editor.go b/routers/repo/editor.go index f471e5ee22..bf2244719c 100644 --- a/routers/repo/editor.go +++ b/routers/repo/editor.go @@ -98,6 +98,7 @@ func editFile(ctx *context.Context, isNewFile bool) { ctx.Data["MarkdownFileExts"] = strings.Join(setting.Markdown.FileExtensions, ",") ctx.Data["LineWrapExtensions"] = strings.Join(setting.Repository.Editor.LineWrapExtensions, ",") ctx.Data["PreviewableFileModes"] = strings.Join(setting.Repository.Editor.PreviewableFileModes, ",") + ctx.Data["EditorconfigURLPrefix"] = fmt.Sprintf("%s/api/v1/repos/%s/editorconfig/", setting.AppSubUrl, ctx.Repo.Repository.FullName()) ctx.HTML(200, EDIT_FILE) } |