chore: added footer and tabbar templates
This commit is contained in:
parent
09f311766b
commit
df0bd75b29
26
custom/templates/base/footer_content.tmpl
Normal file
26
custom/templates/base/footer_content.tmpl
Normal file
@ -0,0 +1,26 @@
|
||||
<footer>
|
||||
<div class="ui container">
|
||||
<div class="ui left">
|
||||
{{.i18n.Tr "powered_by" "Gitea"}} {{if (or .ShowFooterVersion .PageIsAdmin)}}{{.i18n.Tr "version"}}: {{AppVer}}{{end}} {{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"><i class="fa fa-github-square"></i><span class="sr-only">GitHub</span></a>
|
||||
{{end}}
|
||||
<div class="ui language bottom floating slide up dropdown link item">
|
||||
<i class="world icon"></i>
|
||||
<div class="text">{{.LangName}}</div>
|
||||
<div class="menu">
|
||||
{{range .AllLangs}}
|
||||
<a lang="{{.Lang}}" class="item {{if eq $.Lang .Lang}}active selected{{end}}" href="{{if eq $.Lang .Lang}}#{{else}}{{$.Link}}?lang={{.Lang}}{{end}}">{{.Name}}</a>
|
||||
{{end}}
|
||||
</div>
|
||||
</div>
|
||||
<a href="{{StaticUrlPrefix}}/js/licenses.txt">{{.i18n.Tr "licenses"}}</a>
|
||||
{{if .EnableSwagger}}<a href="{{AppSubUrl}}/api/swagger">API</a>{{end}}
|
||||
<a rel="noopener" href="https://dotya.ml/">Homepage</a>
|
||||
{{template "custom/extra_links_footer" .}}
|
||||
{{if (or .ShowFooterVersion .PageIsAdmin)}}<span class="version">{{GoVer}}</span>{{end}}
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
7
custom/templates/custom/extra_links.tmpl
Normal file
7
custom/templates/custom/extra_links.tmpl
Normal file
@ -0,0 +1,7 @@
|
||||
<div class="item ui divider mobile-only"></div>
|
||||
<a class="item " href="https://git.dotya.ml/dotya.ml" rel="noopener">· dotya.ml ·</a>
|
||||
<a class="item " href="https://stats.uptimerobot.com/93yPqFmmx8/" rel="noopener">Uptime Stats</a>
|
||||
{{if .IsSigned}}
|
||||
<a class="item " href="https://docs.gitea.io/" target="_blank" rel="noopener">Gitea Help</a>
|
||||
<a class="item " href="https://git-scm.com/docs" target="_blank" rel="noopener">Git Help</a>
|
||||
{{end}}
|
||||
1
custom/templates/custom/extra_links_footer.tmpl
Normal file
1
custom/templates/custom/extra_links_footer.tmpl
Normal file
@ -0,0 +1 @@
|
||||
<a rel="noopener" href="https://dotya.ml/contact/">Contact</a>
|
||||
Loading…
Reference in New Issue
Block a user