summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2020-07-29 20:44:23 +0200
committerGitHub <noreply@github.com>2020-07-29 14:44:23 -0400
commit2fd78c151e0e49db113078095f1d9e8c7478e828 (patch)
tree19526559ed4148f93355786d829c44113cdac27c /templates
parent2f6aadffa8243736825564cd1ce32d0d5a1eb391 (diff)
downloadgitea-2fd78c151e0e49db113078095f1d9e8c7478e828.tar.gz
gitea-2fd78c151e0e49db113078095f1d9e8c7478e828.zip
Move jquery-minicolors to npm/webpack (#12305)
* Move jquery-minicolors to npm/webpack - Unvendor and add as npm dependency - Removed unneeded backend variable - Fixed existing bug where picker would previously initizalize to the same green color when editing a label. There was probably a version bump because the previous version was over 3 years old but it seems to be compatible. * use file-loader * trailing comma and comment update * misc tweaks Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'templates')
-rw-r--r--templates/base/footer.tmpl3
-rw-r--r--templates/base/head.tmpl4
2 files changed, 0 insertions, 7 deletions
diff --git a/templates/base/footer.tmpl b/templates/base/footer.tmpl
index e7d8c46f88..d5d5970784 100644
--- a/templates/base/footer.tmpl
+++ b/templates/base/footer.tmpl
@@ -30,9 +30,6 @@
{{end}}
{{end}}
<script src="{{StaticUrlPrefix}}/js/index.js?v={{MD5 AppVer}}"></script>
-{{if .RequireMinicolors}}
- <script src="{{StaticUrlPrefix}}/vendor/plugins/jquery.minicolors/jquery.minicolors.min.js"></script>
-{{end}}
{{template "custom/footer" .}}
</body>
</html>
diff --git a/templates/base/head.tmpl b/templates/base/head.tmpl
index 1279885455..a0710a77bc 100644
--- a/templates/base/head.tmpl
+++ b/templates/base/head.tmpl
@@ -66,7 +66,6 @@
UseServiceWorker: {{UseServiceWorker}},
csrf: '{{.CsrfToken}}',
HighlightJS: {{if .RequireHighlightJS}}true{{else}}false{{end}},
- Minicolors: {{if .RequireMinicolors}}true{{else}}false{{end}},
SimpleMDE: {{if .RequireSimpleMDE}}true{{else}}false{{end}},
Tribute: {{if .RequireTribute}}true{{else}}false{{end}},
U2F: {{if .RequireU2F}}true{{else}}false{{end}},
@@ -101,9 +100,6 @@
.ui.secondary.menu .dropdown.item > .menu { margin-top: 0; }
</style>
</noscript>
-{{if .RequireMinicolors}}
- <link rel="stylesheet" href="{{StaticUrlPrefix}}/vendor/plugins/jquery.minicolors/jquery.minicolors.css">
-{{end}}
<style class="list-search-style"></style>
{{if .PageIsUserProfile}}
<meta property="og:title" content="{{.Owner.Name}}" />