!88 合并定制化logo、备案号和构建调试安装脚本
* 开发环境配置方法、CI脚本、安装脚本 * 备案号可配置BEIAN_NUMBER = 苏ICP备888888888号-1 in [server] of app.ini * custom logo feature in -/admin/config/settings
This commit is contained in:
@@ -1,4 +1,36 @@
|
||||
{{template "admin/layout_head" (dict "ctxData" . "pageClass" "admin config")}}
|
||||
<!-- 自定义logo upload -->
|
||||
<h4 class="ui top attached header">
|
||||
{{ctx.Locale.Tr "admin.config.app_logo_config"}}
|
||||
</h4>
|
||||
<div class="ui attached segment">
|
||||
<form
|
||||
class="ui form"
|
||||
action="{{ AppSubUrl }}/-/admin/config/logo"
|
||||
method="post"
|
||||
enctype="multipart/form-data"
|
||||
>
|
||||
{{.CsrfTokenHtml}}
|
||||
<div class="inline field tw-pl-4">
|
||||
<label
|
||||
for="avatar"
|
||||
>{{ctx.Locale.Tr "admin.config.choose_new_logo"}}</label
|
||||
>
|
||||
<input
|
||||
name="avatar"
|
||||
type="file"
|
||||
accept="image/png,image/jpeg,image/gif,image/webp"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div class="field">
|
||||
<button class="ui primary button">
|
||||
{{ctx.Locale.Tr "admin.config.update_logo"}}
|
||||
</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<h4 class="ui top attached header">
|
||||
{{ctx.Locale.Tr "admin.config.picture_config"}}
|
||||
</h4>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<footer class="page-footer" role="group" aria-label="{{ctx.Locale.Tr "aria.footer"}}">
|
||||
<div class="left-links" role="contentinfo" aria-label="{{ctx.Locale.Tr "aria.footer.software"}}">
|
||||
{{if ShowFooterPoweredBy}}
|
||||
<a target="_blank" rel="noopener noreferrer" href="https://about.gitea.com">{{ctx.Locale.Tr "powered_by" "Gitea"}}</a>
|
||||
<a target="_blank" rel="noopener noreferrer" href="https://DevStar.cn">{{ctx.Locale.Tr "powered_by" "DevStar"}}</a>
|
||||
{{end}}
|
||||
{{if (or .ShowFooterVersion .PageIsAdmin)}}
|
||||
{{ctx.Locale.Tr "version"}}:
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<div class="navbar-left">
|
||||
<!-- the logo -->
|
||||
<a class="item" id="navbar-logo" href="{{AppSubUrl}}/" aria-label="{{if .IsSigned}}{{ctx.Locale.Tr "dashboard"}}{{else}}{{ctx.Locale.Tr "home"}}{{end}}">
|
||||
<img width="30" height="30" src="{{AssetUrlPrefix}}/img/logo.svg" alt="{{ctx.Locale.Tr "logo"}}" aria-hidden="true">
|
||||
<img width="auto" height="30" src="{{if .CustomLogoPath}}{{.CustomLogoPath}}{{else}}{{AssetUrlPrefix}}/img/logo.svg{{end}}" alt="{{ctx.Locale.Tr "logo"}}" aria-hidden="true">
|
||||
</a>
|
||||
|
||||
<!-- mobile right menu, it must be here because in mobile view, each item is a flex column, the first item is a full row column -->
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
<a target="_blank" rel="noopener noreferrer" href="https://www.mengning.com.cn"> ©Mengning Software </a>. 2024-2025 All rights reserved.
|
||||
{{if BeianNumber}}
|
||||
<a id="beian" href="https://beian.miit.gov.cn/" target="_blank" rel="noopener noreferrer">{{BeianNumber}}</a>
|
||||
{{end}}
|
||||
Reference in New Issue
Block a user