diff options
author | Bo-Yi Wu <appleboy.tw@gmail.com> | 2017-01-25 23:15:25 +0800 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2017-01-25 23:15:25 +0800 |
commit | 2831267db1908d8d721b0791c1e963a994802172 (patch) | |
tree | f29cc443186cb1ffd523c24243272c40a45d1f06 /templates/base/footer.tmpl | |
parent | 0934d1b1ea4f3cab5af5555116ae13a87c65f34c (diff) | |
download | gitea-2831267db1908d8d721b0791c1e963a994802172.tar.gz gitea-2831267db1908d8d721b0791c1e963a994802172.zip |
refactor: move js to bottom and move css to top. (#689)
Diffstat (limited to 'templates/base/footer.tmpl')
-rw-r--r-- | templates/base/footer.tmpl | 30 |
1 files changed, 22 insertions, 8 deletions
diff --git a/templates/base/footer.tmpl b/templates/base/footer.tmpl index a1f085a0a8..08a079ebb6 100644 --- a/templates/base/footer.tmpl +++ b/templates/base/footer.tmpl @@ -27,26 +27,40 @@ </div> </div> </footer> -</body> + <script src="{{AppSubUrl}}/js/jquery-1.11.3.min.js"></script> + <script src="{{AppSubUrl}}/js/libs/jquery.are-you-sure.js"></script> +{{if .RequireSimpleMDE}} + <script src="{{AppSubUrl}}/plugins/simplemde-1.10.1/simplemde.min.js"></script> + <script src="{{AppSubUrl}}/plugins/codemirror-5.17.0/addon/mode/loadmode.js"></script> + <script src="{{AppSubUrl}}/plugins/codemirror-5.17.0/mode/meta.js"></script> + <script> + CodeMirror.modeURL = "{{AppSubUrl}}/plugins/codemirror-5.17.0/mode/%N/%N.js"; + </script> +{{end}} +{{if .RequireGitGraph}} + <!-- graph --> + <script src="{{AppSubUrl}}/js/libs/gitgraph.js"></script> + <script src="{{AppSubUrl}}/js/draw.js"></script> +{{end}} + +<!-- JavaScript --> +<script src="{{AppSubUrl}}/js/semantic-2.2.1.min.js"></script> +<script src="{{AppSubUrl}}/js/index.js?v={{MD5 AppVer}}"></script> <!-- Third-party libraries --> {{if .RequireHighlightJS}} - <link rel="stylesheet" href="{{AppSubUrl}}/plugins/highlight-9.6.0/github.css"> <script src="{{AppSubUrl}}/plugins/highlight-9.6.0/highlight.pack.js"></script> {{end}} {{if .RequireMinicolors}} - <link rel="stylesheet" href="{{AppSubUrl}}/plugins/jquery.minicolors-2.2.3/jquery.minicolors.css"> <script src="{{AppSubUrl}}/plugins/jquery.minicolors-2.2.3/jquery.minicolors.min.js"></script> {{end}} {{if .RequireDatetimepicker}} - <link rel="stylesheet" href="{{AppSubUrl}}/plugins/jquery.datetimepicker-2.4.5/jquery.datetimepicker.css"> <script src="{{AppSubUrl}}/plugins/jquery.datetimepicker-2.4.5/jquery.datetimepicker.js"></script> {{end}} {{if .RequireDropzone}} - <link rel="stylesheet" href="{{AppSubUrl}}/plugins/dropzone-4.2.0/dropzone.css"> <script src="{{AppSubUrl}}/plugins/dropzone-4.2.0/dropzone.js"></script> {{end}} -<script src="{{AppSubUrl}}/js/libs/emojify-1.1.0.min.js"></script> -<script src="{{AppSubUrl}}/js/libs/clipboard-1.5.9.min.js"></script> - + <script src="{{AppSubUrl}}/js/libs/emojify-1.1.0.min.js"></script> + <script src="{{AppSubUrl}}/js/libs/clipboard-1.5.9.min.js"></script> +</body> </html> |