Selaa lähdekoodia

[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.
M. Sonntag 3 vuotta sitten
vanhempi
commit
a6b68dcc22

+ 2 - 15
templates/base/footer.tmpl

@@ -7,12 +7,7 @@
 	<footer>
 		<div class="ui container">
 			<div class="ui center links item brand footertext">
-				<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>
-				<a href="/G-Node/Info/wiki/about">About</a>
-				<a href="/G-Node/Info/wiki/imprint">Imprint</a>
-				<a href="/G-Node/Info/wiki/contact">Contact</a>
-				<a href="/G-Node/Info/wiki/Terms+of+Use">Terms of Use</a>
-				<a href="/G-Node/Info/wiki/Datenschutz">Datenschutz</a>
+				{{template "base/footer_gin_text" $}}
 				{{if .PageIsAdmin}}<span>{{.i18n.Tr "version"}}: {{AppVer}}</span>{{end}}
 				<div class="ui language bottom floating slide up dropdown link item" data-tooltip="Non-English translations may be incomplete">
 					<i class="world icon"></i>
@@ -25,15 +20,7 @@
 				</div>
 			</div>
 			<div class="ui center links item brand footertext">
-				<span>Powered by:      <a href="https://github.com/gogs/gogs"><img class="ui mini footericon" src="{{AppSubURL}}/img/gogs.svg"/></a>         </span>
-				<span>Hosted by:       <a href="http://neuro.bio.lmu.de"><img class="ui mini footericon" src="{{AppSubURL}}/img/lmu.png"/></a>          </span>
-				<span>Funded by:       <a href="http://www.bmbf.de"><img class="ui mini footericon" src="{{AppSubURL}}/img/bmbf.png"/></a>         </span>
-				<span>Registered with: <a href="http://doi.org/10.17616/R3SX9N"><img class="ui mini footericon" src="{{AppSubURL}}/img/re3data_logo.png"/></a>          </span>
-				<span>Recommended by:  
-					<a href="https://www.nature.com/sdata/policies/repositories#neurosci"><img class="ui mini footericon" src="{{AppSubURL}}/img/sdatarecbadge.jpg"/></a>
-					<a href="https://fairsharing.org/recommendation/PLOS"><img class="ui mini footericon" src="{{AppSubURL}}/img/sm_plos-logo-sm.png"/></a>
-					<a href="https://fairsharing.org/recommendation/eLifeRecommendedRepositoriesandStandards"><img class="ui mini footericon" src="{{AppSubURL}}/img/elife-logo-xs.fd623d00.svg"/></a>
-				</span>
+				{{template "base/footer_gin_brand" $}}
 			</div>
 		</div>
 	</footer>

+ 9 - 0
templates/base/footer_gin_brand.tmpl

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

+ 6 - 0
templates/base/footer_gin_text.tmpl

@@ -0,0 +1,6 @@
+<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>
+<a href="/G-Node/Info/wiki/about">About</a>
+<a href="/G-Node/Info/wiki/imprint">Imprint</a>
+<a href="/G-Node/Info/wiki/contact">Contact</a>
+<a href="/G-Node/Info/wiki/Terms+of+Use">Terms of Use</a>
+<a href="/G-Node/Info/wiki/Datenschutz">Datenschutz</a>