aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2020-11-10 19:16:30 +0000
committerGitHub <noreply@github.com>2020-11-10 14:16:30 -0500
commit13b8c0b7aeac365f0f161467f65c3b9b4e46896a (patch)
treed5a748ae96c42f49a71cc4b9d648097fa88d2459 /templates
parent21d496364a5e654ba535d06269f6c6679b5c2d74 (diff)
downloadgitea-13b8c0b7aeac365f0f161467f65c3b9b4e46896a.tar.gz
gitea-13b8c0b7aeac365f0f161467f65c3b9b4e46896a.zip
Switch from SimpleMDE to EasyMDE (#13333)
* Switch from SimpleMDE to EasyMDE Signed-off-by: Andrew Thornton <art27@cantab.net> * use webpack to webpack the easymde css Signed-off-by: Andrew Thornton <art27@cantab.net> * move css to only css Signed-off-by: Andrew Thornton <art27@cantab.net> * move loading codemirror modes and addons back in to footer.tmpl Signed-off-by: Andrew Thornton <art27@cantab.net> * Fix arc-green Signed-off-by: Andrew Thornton <art27@cantab.net> * as per @silverwind * reinstall codemirror Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: Lauris BH <lauris@nix.lv>
Diffstat (limited to 'templates')
-rw-r--r--templates/base/footer.tmpl2
-rw-r--r--templates/base/head.tmpl2
2 files changed, 2 insertions, 2 deletions
diff --git a/templates/base/footer.tmpl b/templates/base/footer.tmpl
index 24bc44444f..c8e9674fba 100644
--- a/templates/base/footer.tmpl
+++ b/templates/base/footer.tmpl
@@ -12,7 +12,7 @@
{{template "base/footer_content" .}}
{{if .RequireSimpleMDE}}
- <script src="{{StaticUrlPrefix}}/vendor/plugins/simplemde/simplemde.min.js"></script>
+ <script src="{{StaticUrlPrefix}}/js/easymde.js?v={{MD5 AppVer}}"></script>
<script src="{{StaticUrlPrefix}}/vendor/plugins/codemirror/addon/mode/loadmode.js"></script>
<script src="{{StaticUrlPrefix}}/vendor/plugins/codemirror/mode/meta.js"></script>
<script>
diff --git a/templates/base/head.tmpl b/templates/base/head.tmpl
index 5f27779235..4738b91463 100644
--- a/templates/base/head.tmpl
+++ b/templates/base/head.tmpl
@@ -64,7 +64,7 @@
<link rel="mask-icon" href="{{StaticUrlPrefix}}/img/gitea-safari.svg" color="#609926">
<link rel="fluid-icon" href="{{StaticUrlPrefix}}/img/gitea-lg.png" title="{{AppName}}">
{{if .RequireSimpleMDE}}
- <link rel="stylesheet" href="{{StaticUrlPrefix}}/vendor/plugins/simplemde/simplemde.min.css">
+ <link rel="stylesheet" href="{{StaticUrlPrefix}}/css/easymde.css?v={{MD5 AppVer}}">
{{end}}
<link rel="stylesheet" href="{{StaticUrlPrefix}}/css/index.css?v={{MD5 AppVer}}">
<noscript>