diff options
Diffstat (limited to 'templates/base')
-rw-r--r-- | templates/base/footer.tmpl | 8 | ||||
-rw-r--r-- | templates/base/head.tmpl | 5 |
2 files changed, 2 insertions, 11 deletions
diff --git a/templates/base/footer.tmpl b/templates/base/footer.tmpl index 633a340388..fcf2f91b8c 100644 --- a/templates/base/footer.tmpl +++ b/templates/base/footer.tmpl @@ -108,16 +108,8 @@ </script> {{end}} <script src="{{StaticUrlPrefix}}/vendor/plugins/emojify/emojify.custom.js"></script> - <script src="{{StaticUrlPrefix}}/vendor/plugins/vue/vue.min.js"></script> <script src="{{StaticUrlPrefix}}/fomantic/semantic.min.js?v={{MD5 AppVer}}"></script> <script src="{{StaticUrlPrefix}}/js/index.js?v={{MD5 AppVer}}"></script> -{{if .EnableHeatmap}} - <script src="{{StaticUrlPrefix}}/vendor/plugins/moment/moment.min.js" charset="utf-8"></script> - <script src="{{StaticUrlPrefix}}/vendor/plugins/vue-calendar-heatmap/vue-calendar-heatmap.browser.js" charset="utf-8"></script> - <script type="text/javascript"> - window.initHeatmap('user-heatmap', '{{.HeatmapUser}}'); - </script> -{{end}} {{template "custom/footer" .}} </body> </html> diff --git a/templates/base/head.tmpl b/templates/base/head.tmpl index 9985b7cb59..491776958f 100644 --- a/templates/base/head.tmpl +++ b/templates/base/head.tmpl @@ -93,6 +93,8 @@ SimpleMDE: {{if .RequireSimpleMDE}}true{{else}}false{{end}}, Tribute: {{if .RequireTribute}}true{{else}}false{{end}}, U2F: {{if .RequireU2F}}true{{else}}false{{end}}, + Heatmap: {{if .EnableHeatmap}}true{{else}}false{{end}}, + heatmapUser: {{if .HeatmapUser}}'{{.HeatmapUser}}'{{else}}null{{end}}, }; </script> <link rel="shortcut icon" href="{{StaticUrlPrefix}}/img/favicon.png"> @@ -125,9 +127,6 @@ {{if .RequireDropzone}} <link rel="stylesheet" href="{{StaticUrlPrefix}}/vendor/plugins/dropzone/dropzone.css"> {{end}} -{{if .EnableHeatmap}} - <link rel="stylesheet" href="{{StaticUrlPrefix}}/vendor/plugins/vue-calendar-heatmap/vue-calendar-heatmap.css"> -{{end}} <style class="list-search-style"></style> {{if .PageIsUserProfile}} <meta property="og:title" content="{{.Owner.Name}}" /> |