footer.tmpl 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. {{/*
  2. <html>
  3. <body>
  4. <div>
  5. */}}
  6. </div>
  7. <footer>
  8. <div class="ui container">
  9. <div class="ui left">
  10. © {{Year}} {{AppName}}
  11. </div>
  12. <div class="ui right links">
  13. {{if ShowFooterTemplateLoadTime}}
  14. <span>
  15. {{.i18n.Tr "page"}}: <strong>{{LoadTimes .PageStartTime}}</strong> {{.i18n.Tr "template"}}: <strong>{{call .TmplLoadTimes}}</strong>
  16. </span>
  17. {{end}}
  18. {{if .ShowFooterBranding}}
  19. <a target="_blank" rel="noopener noreferrer" href="https://github.com/gogs/gogs"><i class="fa fa-github-square"></i><span class="sr-only">GitHub</span></a>
  20. <a target="_blank" rel="noopener noreferrer" href="https://twitter.com/GogsHQ"><i class="fa fa-twitter"></i><span class="sr-only">Twitter</span></a>
  21. <a target="_blank" rel="noopener noreferrer" href="http://weibo.com/gogschina"><i class="fa fa-weibo"></i><span class="sr-only">Sina Weibo</span></a>
  22. {{end}}
  23. <div class="ui language bottom floating slide up dropdown link item">
  24. <i class="world icon"></i>
  25. <div class="text">{{.LangName}}</div>
  26. <div class="menu">
  27. {{range .AllLangs}}
  28. <a class="item {{if eq $.Lang .Lang}}active selected{{end}}" href="{{if eq $.Lang .Lang}}#{{else}}{{$.Link}}?lang={{.Lang}}{{end}}">{{.Name}}</a>
  29. {{end}}
  30. </div>
  31. </div>
  32. <a href="/assets/librejs/librejs.html" style="display:none" data-jslicense="1">Javascript Licenses</a>
  33. <a target="_blank" rel="noopener noreferrer" href="https://gogs.io">{{.i18n.Tr "website"}}</a>
  34. </div>
  35. </div>
  36. </footer>
  37. </body>
  38. <!-- Third-party libraries -->
  39. {{if .RequireHighlightJS}}
  40. <link rel="stylesheet" href="{{AppSubURL}}/plugins/highlight-9.18.0/github.css">
  41. <script src="{{AppSubURL}}/plugins/highlight-9.18.0/highlight.pack.js"></script>
  42. <script>hljs.initHighlightingOnLoad();</script>
  43. {{end}}
  44. {{if .RequireMinicolors}}
  45. <link rel="stylesheet" href="{{AppSubURL}}/plugins/jquery.minicolors-2.2.3/jquery.minicolors.css">
  46. <script src="{{AppSubURL}}/plugins/jquery.minicolors-2.2.3/jquery.minicolors.min.js"></script>
  47. {{end}}
  48. {{if .RequireDatetimepicker}}
  49. <link rel="stylesheet" href="{{AppSubURL}}/plugins/jquery.datetimepicker-2.4.5/jquery.datetimepicker.css">
  50. <script src="{{AppSubURL}}/plugins/jquery.datetimepicker-2.4.5/jquery.datetimepicker.js"></script>
  51. {{end}}
  52. {{if .RequireDropzone}}
  53. <link rel="stylesheet" href="{{AppSubURL}}/plugins/dropzone-5.5.0/dropzone.min.css">
  54. <script src="{{AppSubURL}}/plugins/dropzone-5.5.0/dropzone.min.js"></script>
  55. <script>Dropzone.autoDiscover = false</script>
  56. {{end}}
  57. {{if .RequireAutosize}}
  58. <script src="{{AppSubURL}}/plugins/autosize-4.0.2/autosize.min.js"></script>
  59. {{end}}
  60. {{if .IsMarkdown}}
  61. <script src="{{AppSubURL}}/plugins/mermaid-10.9.1/mermaid.min.js"></script>
  62. <script>
  63. $(document).ready(function () {
  64. mermaid.init({startOnLoad: true, noteMargin: 10}, ".language-mermaid");
  65. });
  66. </script>
  67. {{end}}
  68. <script src="{{AppSubURL}}/js/libs/emojify-1.1.0.min.js"></script>
  69. <script src="{{AppSubURL}}/js/libs/clipboard-2.0.4.min.js"></script>
  70. {{template "inject/footer" .}}
  71. </html>