diff options
author | Lukas Bestle <account-github@lukasbestle.com> | 2018-09-07 04:59:06 +0200 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2018-09-07 10:59:06 +0800 |
commit | e6a03813d463bc0c624a3c40fb615cacc006e265 (patch) | |
tree | 7b24deea3c2578cf34c0a2d42107f22570f71c53 /templates/base/footer.tmpl | |
parent | fab7937c62f418c0170770290b491df0e8886e08 (diff) | |
download | gitea-e6a03813d463bc0c624a3c40fb615cacc006e265.tar.gz gitea-e6a03813d463bc0c624a3c40fb615cacc006e265.zip |
Extract header and footer content to separate tmpl (#4797)
This change makes it easier to customize the header and footer content. Before this change, the whole header and footer had to be overridden, including the meta, style and script tags.
Signed-off-by: Lukas Bestle <mail@lukasbestle.com>
Diffstat (limited to 'templates/base/footer.tmpl')
-rw-r--r-- | templates/base/footer.tmpl | 27 |
1 files changed, 2 insertions, 25 deletions
diff --git a/templates/base/footer.tmpl b/templates/base/footer.tmpl index 26ba3421fd..0dd8871525 100644 --- a/templates/base/footer.tmpl +++ b/templates/base/footer.tmpl @@ -10,31 +10,8 @@ {{template "custom/body_outer_post" .}} - <footer> - <div class="ui container"> - <div class="ui left"> - © 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 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="{{AppSubUrl}}/vendor/librejs.html" data-jslicense="1">JavaScript licenses</a> - {{if .EnableSwagger}}<a href="{{AppSubUrl}}/api/swagger">API</a>{{end}} - <a target="_blank" rel="noopener noreferrer" href="https://gitea.io">{{.i18n.Tr "website"}}</a> - {{if (or .ShowFooterVersion .PageIsAdmin)}}<span class="version">{{GoVer}}</span>{{end}} - </div> - </div> - </footer> + {{template "base/footer_content" .}} + <script src="{{AppSubUrl}}/vendor/plugins/jquery/jquery.min.js"></script> <script src="{{AppSubUrl}}/vendor/plugins/jquery.areyousure/jquery.are-you-sure.js"></script> {{if .RequireSimpleMDE}} |