2015-12-07 23:30:52 +01:00
|
|
|
{{/*
|
|
|
|
|
<html>
|
|
|
|
|
<body>
|
|
|
|
|
<div>
|
|
|
|
|
*/}}
|
2015-03-07 15:12:13 -05:00
|
|
|
</div>
|
2015-08-09 22:45:38 +08:00
|
|
|
<footer>
|
|
|
|
|
<div class="ui container">
|
2015-03-07 15:12:13 -05:00
|
|
|
<div class="ui left">
|
2020-03-07 13:15:20 +08:00
|
|
|
© {{Year}} {{AppName}}
|
2015-03-07 15:12:13 -05:00
|
|
|
</div>
|
|
|
|
|
<div class="ui right links">
|
2020-02-19 17:25:50 +08:00
|
|
|
{{if ShowFooterTemplateLoadTime}}
|
|
|
|
|
<span>
|
|
|
|
|
{{.i18n.Tr "page"}}: <strong>{{LoadTimes .PageStartTime}}</strong> {{.i18n.Tr "template"}}: <strong>{{call .TmplLoadTimes}}</strong>
|
|
|
|
|
</span>
|
|
|
|
|
{{end}}
|
2015-03-23 10:19:19 -04:00
|
|
|
{{if .ShowFooterBranding}}
|
2020-02-18 12:31:08 +08:00
|
|
|
<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>
|
2018-07-02 14:33:14 +03:00
|
|
|
<a target="_blank" rel="noopener noreferrer" href="https://twitter.com/GogsHQ"><i class="fa fa-twitter"></i><span class="sr-only">Twitter</span></a>
|
|
|
|
|
<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>
|
2015-03-23 10:19:19 -04:00
|
|
|
{{end}}
|
2016-04-25 13:40:23 -04:00
|
|
|
<div class="ui language bottom floating slide up dropdown link item">
|
2015-12-07 23:30:52 +01:00
|
|
|
<i class="world icon"></i>
|
|
|
|
|
<div class="text">{{.LangName}}</div>
|
|
|
|
|
<div class="menu">
|
|
|
|
|
{{range .AllLangs}}
|
|
|
|
|
<a class="item {{if eq $.Lang .Lang}}active selected{{end}}" href="{{if eq $.Lang .Lang}}#{{else}}{{$.Link}}?lang={{.Lang}}{{end}}">{{.Name}}</a>
|
|
|
|
|
{{end}}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2017-02-09 16:04:35 -05:00
|
|
|
<a href="/assets/librejs/librejs.html" style="display:none" data-jslicense="1">Javascript Licenses</a>
|
2018-07-02 14:33:14 +03:00
|
|
|
<a target="_blank" rel="noopener noreferrer" href="https://gogs.io">{{.i18n.Tr "website"}}</a>
|
2015-03-07 15:12:13 -05:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</footer>
|
2014-03-03 22:40:22 +08:00
|
|
|
</body>
|
2015-08-28 23:36:13 +08:00
|
|
|
|
2015-12-07 23:30:52 +01:00
|
|
|
<!-- Third-party libraries -->
|
|
|
|
|
{{if .RequireHighlightJS}}
|
2020-01-31 23:33:47 +08:00
|
|
|
<link rel="stylesheet" href="{{AppSubURL}}/plugins/highlight-9.18.0/github.css">
|
|
|
|
|
<script src="{{AppSubURL}}/plugins/highlight-9.18.0/highlight.pack.js"></script>
|
|
|
|
|
<script>hljs.initHighlightingOnLoad();</script>
|
2015-12-07 23:30:52 +01:00
|
|
|
{{end}}
|
|
|
|
|
{{if .RequireMinicolors}}
|
2017-04-06 17:27:57 -04:00
|
|
|
<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>
|
2015-12-07 23:30:52 +01:00
|
|
|
{{end}}
|
|
|
|
|
{{if .RequireDatetimepicker}}
|
2017-04-06 17:27:57 -04:00
|
|
|
<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>
|
2015-12-07 23:30:52 +01:00
|
|
|
{{end}}
|
|
|
|
|
{{if .RequireDropzone}}
|
2020-01-31 23:27:56 +08:00
|
|
|
<link rel="stylesheet" href="{{AppSubURL}}/plugins/dropzone-5.5.0/dropzone.min.css">
|
|
|
|
|
<script src="{{AppSubURL}}/plugins/dropzone-5.5.0/dropzone.min.js"></script>
|
|
|
|
|
<script>Dropzone.autoDiscover = false</script>
|
2015-12-07 23:30:52 +01:00
|
|
|
{{end}}
|
2018-06-11 21:06:24 +08:00
|
|
|
{{if .RequireAutosize}}
|
|
|
|
|
<script src="{{AppSubURL}}/plugins/autosize-4.0.2/autosize.min.js"></script>
|
|
|
|
|
{{end}}
|
2022-03-05 19:23:08 +08:00
|
|
|
{{if .IsMarkdown}}
|
2025-12-04 06:52:29 +01:00
|
|
|
<script src="{{AppSubURL}}/plugins/mermaid-11.12.1/mermaid.min.js"></script>
|
2022-03-05 19:23:08 +08:00
|
|
|
<script>
|
|
|
|
|
$(document).ready(function () {
|
2025-09-30 13:11:09 +03:00
|
|
|
const deepMerge = function(target, source) {
|
|
|
|
|
// Create a deep copy of the target to avoid modifying the original
|
|
|
|
|
const output = { ...target };
|
|
|
|
|
|
|
|
|
|
if (target && typeof target === 'object' && source && typeof source === 'object') {
|
|
|
|
|
for (const key in source) {
|
|
|
|
|
if (source.hasOwnProperty(key)) {
|
|
|
|
|
if (source[key] instanceof Object && target[key] instanceof Object) {
|
|
|
|
|
// If both are objects, recursively merge
|
|
|
|
|
output[key] = deepMerge(target[key], source[key]);
|
|
|
|
|
} else if (Array.isArray(source[key]) && Array.isArray(target[key])) {
|
|
|
|
|
// If both are arrays, concatenate them
|
|
|
|
|
output[key] = [...target[key], ...source[key]];
|
|
|
|
|
} else {
|
|
|
|
|
// Otherwise, overwrite with the source value
|
|
|
|
|
output[key] = source[key];
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return output;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
let initializeOpts = { startOnLoad: false, sequence: {noteMargin: 10}, journey: {noteMargin: 10}, timeline: {noteMargin: 10}, state: {noteMargin: 10} };
|
|
|
|
|
|
|
|
|
|
if (window.MERMAID_INITIALIZE_OPTIONS) {
|
|
|
|
|
// allow customization in inject/head.tmpl
|
|
|
|
|
initializeOpts = deepMerge(initializeOpts, window.MERMAID_INITIALIZE_OPTIONS);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
mermaid.initialize(initializeOpts);
|
|
|
|
|
|
|
|
|
|
let runOpts = { querySelector: '.language-mermaid' };
|
|
|
|
|
if (window.MERMAID_RUN_OPTIONS) {
|
|
|
|
|
// allow customization in inject/head.tmpl
|
|
|
|
|
runOpts = deepMerge(runOpts, window.MERMAID_RUN_OPTIONS);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
mermaid.run(runOpts);
|
2022-03-05 19:23:08 +08:00
|
|
|
});
|
|
|
|
|
</script>
|
|
|
|
|
{{end}}
|
|
|
|
|
|
2017-04-06 17:27:57 -04:00
|
|
|
<script src="{{AppSubURL}}/js/libs/emojify-1.1.0.min.js"></script>
|
2020-01-31 21:21:30 +08:00
|
|
|
<script src="{{AppSubURL}}/js/libs/clipboard-2.0.4.min.js"></script>
|
2016-09-01 07:01:32 +02:00
|
|
|
|
2017-02-24 18:26:41 -05:00
|
|
|
{{template "inject/footer" .}}
|
2015-11-18 22:32:31 +01:00
|
|
|
</html>
|