QQgit/custom/templates/base/footer_content.tmpl

32 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」,本站不需要,整体删掉。
这里只留:
1. ICP 备案号(居中,靠 qq-ui.css 的 .qq-icp-footer 悬挂在视口底部)
2. 未登录访客的语言切换(右侧;登录用户的语言在右上角用户菜单里)
备案号:闽ICP备2023002932号(QQ 于 2026-11-03 提供)。
换号码只改下面 <a> 里的文字,改完跑 ./scripts/deploy.sh --yes。
语言切换刻意写成普通链接而不是官方的 .ui.dropdown:
官方那个依赖 index.js 初始化下拉,一旦脚本没加载就点不动;
/?lang=xx 是 Gitea i18n 中间件认的参数,纯链接也能生效。
*/}}
<footer class="page-footer qq-icp-footer" role="contentinfo" aria-label="备案信息">
<a class="qq-icp" href="https://beian.miit.gov.cn/" target="_blank" rel="noopener noreferrer">闽ICP备2023002932号</a>
{{if not .SignedUser}}
<nav class="qq-lang" aria-label="语言 / Language">
{{if eq ctx.Locale.Lang "zh-CN"}}
<span class="qq-lang-cur">简体中文</span>
<a href="{{AppSubUrl}}/?lang=en-US" hreflang="en-US">English</a>
{{else}}
<a href="{{AppSubUrl}}/?lang=zh-CN" hreflang="zh-CN">简体中文</a>
<span class="qq-lang-cur">{{ctx.Locale.LangName}}</span>
{{end}}
</nav>
{{end}}
</footer>