QQgit/custom/templates/base/footer_content.tmpl

33 lines
1.5 KiB
Cheetah
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{{/*
覆盖官方的 base/footer_content.tmpl(Gitea 1.21.11)
--------------------------------------------------------------------
官方那一整条包含「Powered by Gitea / 当前版本 / 页面耗时 / 模板耗时 /
简体中文语言菜单 / 许可证 / API」,本站不需要,整体删掉。
现在底部条三段(靠 qq-ui.css 的绝对定位摆放):
左:{{AppName}} · Gitea {{AppVer}}
中:未登录访客的语言切换(登录用户走个人设置,不重复放)
右:ICP 备案号
语言切换刻意不用官方 `.ui.dropdown`——那个要靠 index.js 初始化,
脚本没跑起来就点不动;`?lang=xx-XX` 是 Gitea i18n 中间件的原生参数,
写成纯链接就生效。
备案号:闽ICP备2023002932号(QQ 于 2026-11-03 提供),改文字后重跑 ./scripts/deploy.sh --yes。
*/}}
<footer class="page-footer qq-icp-footer" role="contentinfo" aria-label="站点信息">
<span class="qq-icp-meta">{{AppName}} · Gitea {{AppVer}}</span>
{{if not .SignedUser}}
<nav class="qq-lang" aria-label="{{ctx.Locale.Tr "language"}}">
{{if eq ctx.Locale.Lang "zh-CN"}}
<span class="qq-lang-cur">简体中文</span>
<a href="{{AppSubUrl}}/?lang=en-US" rel="nofollow">English</a>
{{else}}
<a href="{{AppSubUrl}}/?lang=zh-CN" rel="nofollow">简体中文</a>
<span class="qq-lang-cur">{{ctx.Locale.LangName}}</span>
{{end}}
</nav>
{{end}}
<a class="qq-icp" href="https://beian.miit.gov.cn/" target="_blank" rel="noopener noreferrer">闽ICP备2023002932号</a>
</footer>