Skip to content

Commit a6b68dc

Browse files
committed
[templates] Update footer
To allow changing the custom GIN footer content via the gogs custom templates, the corresponding code is moved to their own template files.
1 parent 2efac57 commit a6b68dc

File tree

3 files changed

+17
-15
lines changed

3 files changed

+17
-15
lines changed

templates/base/footer.tmpl

+2-15
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,7 @@
77
<footer>
88
<div class="ui container">
99
<div class="ui center links item brand footertext">
10-
<a href="http://www.g-node.org"><img class="ui mini footericon" src="https://projects.g-node.org/assets/gnode-bootstrap-theme/1.2.0-snapshot/img/gnode-icon-50x50-transparent.png"/>© 2016-{{Year}} G-Node</a>
11-
<a href="/G-Node/Info/wiki/about">About</a>
12-
<a href="/G-Node/Info/wiki/imprint">Imprint</a>
13-
<a href="/G-Node/Info/wiki/contact">Contact</a>
14-
<a href="/G-Node/Info/wiki/Terms+of+Use">Terms of Use</a>
15-
<a href="/G-Node/Info/wiki/Datenschutz">Datenschutz</a>
10+
{{template "base/footer_gin_text" $}}
1611
{{if .PageIsAdmin}}<span>{{.i18n.Tr "version"}}: {{AppVer}}</span>{{end}}
1712
<div class="ui language bottom floating slide up dropdown link item" data-tooltip="Non-English translations may be incomplete">
1813
<i class="world icon"></i>
@@ -25,15 +20,7 @@
2520
</div>
2621
</div>
2722
<div class="ui center links item brand footertext">
28-
<span>Powered by: <a href="https://github.com/gogs/gogs"><img class="ui mini footericon" src="{{AppSubURL}}/img/gogs.svg"/></a> </span>
29-
<span>Hosted by: <a href="http://neuro.bio.lmu.de"><img class="ui mini footericon" src="{{AppSubURL}}/img/lmu.png"/></a> </span>
30-
<span>Funded by: <a href="http://www.bmbf.de"><img class="ui mini footericon" src="{{AppSubURL}}/img/bmbf.png"/></a> </span>
31-
<span>Registered with: <a href="http://doi.org/10.17616/R3SX9N"><img class="ui mini footericon" src="{{AppSubURL}}/img/re3data_logo.png"/></a> </span>
32-
<span>Recommended by:
33-
<a href="https://www.nature.com/sdata/policies/repositories#neurosci"><img class="ui mini footericon" src="{{AppSubURL}}/img/sdatarecbadge.jpg"/></a>
34-
<a href="https://fairsharing.org/recommendation/PLOS"><img class="ui mini footericon" src="{{AppSubURL}}/img/sm_plos-logo-sm.png"/></a>
35-
<a href="https://fairsharing.org/recommendation/eLifeRecommendedRepositoriesandStandards"><img class="ui mini footericon" src="{{AppSubURL}}/img/elife-logo-xs.fd623d00.svg"/></a>
36-
</span>
23+
{{template "base/footer_gin_brand" $}}
3724
</div>
3825
</div>
3926
</footer>

templates/base/footer_gin_brand.tmpl

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<span>Powered by: <a href="https://github.com/gogs/gogs"><img class="ui mini footericon" src="{{AppSubURL}}/img/gogs.svg"/></a> </span>
2+
<span>Hosted by: <a href="http://neuro.bio.lmu.de"><img class="ui mini footericon" src="{{AppSubURL}}/img/lmu.png"/></a> </span>
3+
<span>Funded by: <a href="http://www.bmbf.de"><img class="ui mini footericon" src="{{AppSubURL}}/img/bmbf.png"/></a> </span>
4+
<span>Registered with: <a href="http://doi.org/10.17616/R3SX9N"><img class="ui mini footericon" src="{{AppSubURL}}/img/re3data_logo.png"/></a> </span>
5+
<span>Recommended by:
6+
<a href="https://www.nature.com/sdata/policies/repositories#neurosci"><img class="ui mini footericon" src="{{AppSubURL}}/img/sdatarecbadge.jpg"/></a>
7+
<a href="https://fairsharing.org/recommendation/PLOS"><img class="ui mini footericon" src="{{AppSubURL}}/img/sm_plos-logo-sm.png"/></a>
8+
<a href="https://fairsharing.org/recommendation/eLifeRecommendedRepositoriesandStandards"><img class="ui mini footericon" src="{{AppSubURL}}/img/elife-logo-xs.fd623d00.svg"/></a>
9+
</span>

templates/base/footer_gin_text.tmpl

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<a href="http://www.g-node.org"><img class="ui mini footericon" src="https://projects.g-node.org/assets/gnode-bootstrap-theme/1.2.0-snapshot/img/gnode-icon-50x50-transparent.png"/>© 2016-{{Year}} G-Node</a>
2+
<a href="/G-Node/Info/wiki/about">About</a>
3+
<a href="/G-Node/Info/wiki/imprint">Imprint</a>
4+
<a href="/G-Node/Info/wiki/contact">Contact</a>
5+
<a href="/G-Node/Info/wiki/Terms+of+Use">Terms of Use</a>
6+
<a href="/G-Node/Info/wiki/Datenschutz">Datenschutz</a>

0 commit comments

Comments
 (0)