Gitea-ui-customized : re-adjusted templates as Gitea 1.17.0 break homepage

This commit is contained in:
unknown 2022-08-07 18:57:51 +07:00
parent cadc794f4d
commit e9ac763312
Signed by: minoplhy
GPG Key ID: 90667A59A9908AEC
3 changed files with 210 additions and 221 deletions

View File

@ -1,25 +0,0 @@
<footer>
<div class="ui container">
<div class="ui left">
{{if ShowFooterTemplateLoadTime}}{{.i18n.Tr "page"}}: <strong>{{LoadTimes .PageStartTime}}</strong> {{.i18n.Tr "template"}}: <strong>{{call .TmplLoadTimes}}</strong>{{end}}
</div>
<div class="ui right links">
{{if .ShowFooterBranding}}
<a target="_blank" rel="noopener noreferrer" href="https://github.com/go-gitea/gitea">{{svg "octicon-mark-github"}}<span class="sr-only">GitHub</span></a>
{{end}}
<div class="ui language bottom floating slide up dropdown link item">
{{svg "octicon-globe"}}
<div class="text">{{.LangName}}</div>
<div class="menu language-menu">
{{range .AllLangs}}
<a lang="{{.Lang}}" data-url="{{AppSubUrl}}/?lang={{.Lang}}" class="item {{if eq $.Lang .Lang}}active selected{{end}}">{{.Name}}</a>
{{end}}
</div>
</div>
<a href="{{AssetUrlPrefix}}/js/licenses.txt">{{.i18n.Tr "licenses"}}</a>
{{if .EnableSwagger}}<a href="{{AppSubUrl}}/api/swagger">API</a>{{end}}
<a target="_blank" rel="noopener noreferrer" href="https://landing.1w1.one">{{.i18n.Tr "website"}}</a>
{{template "custom/extra_links_footer" .}}
</div>
</div>
</footer>

File diff suppressed because it is too large Load Diff

View File

@ -1,19 +1,19 @@
{{template "base/head" .}} {{template "base/head" .}}
<div class="page-content home"> <div class="page-content home">
<div class="ui stackable middle very relaxed page grid"> <div class="ui stackable middle very relaxed page grid">
<div class="sixteen wide center aligned centered column"> <div class="sixteen wide center aligned centered column">
<div> <div>
<img class="logo" width="220" height="220" src="{{AssetUrlPrefix}}/img/logo.svg"/> <img class="logo" width="220" height="220" src="{{AssetUrlPrefix}}/img/logo.svg"/>
</div> </div>
<div class="hero"> <div class="hero">
<h1 class="ui icon header title"> <h1 class="ui icon header title">
{{AppName}} {{AppName}}
</h1> </h1>
</div> <h2>{{.locale.Tr "startpage.app_desc"}}</h2>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
{{template "base/footer" .}} {{template "base/footer" .}}