Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: put footer and imprint in separate template blocks #347

Merged
merged 1 commit into from
Oct 18, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 34 additions & 27 deletions apis_core/apis_metainfo/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -197,40 +197,47 @@
<!-- End main content block -->
<div class="d-flex footer-separator justify-content-center p-2"></div>
<!-- Start site footer -->
<div id="wrapper-footer-full" class="fundament-default-footer">
<div class="d-flex flex-column container-fluid p-4"
id="footer-full-content"
tabindex="-1">
<div class="d-flex flex-column align-self-center justify-content-center">
<div class="d-flex flex-column">
<div class="align-self-center p-1">
<a href="https://www.oeaw.ac.at/acdh/">
<img class="w-75"
alt="ACDH website"
src="https://fundament.acdh.oeaw.ac.at/common-assets/images/acdh_logo.svg" />
</a>
</div>
<div class="align-self-center w-50 p-1 text-center">
Austrian Centre for Digital Humanities (ACDH) of the Austrian Academy of Sciences

{% block footer %}
<div id="wrapper-footer-full" class="fundament-default-footer">
<div class="d-flex flex-column container-fluid p-4"
id="footer-full-content"
tabindex="-1">
<div class="d-flex flex-column align-self-center justify-content-center">
<div class="d-flex flex-column">
<div class="align-self-center p-1">
<a href="https://www.oeaw.ac.at/acdh/">
<img class="w-75"
alt="ACDH website"
src="https://fundament.acdh.oeaw.ac.at/common-assets/images/acdh_logo.svg" />
</a>
</div>
<div class="align-self-center w-50 p-1 text-center">
Austrian Centre for Digital Humanities (ACDH) of the Austrian Academy of Sciences
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Start imprint, project partners -->
<div id="wrapper-footer-secondary"
class="footer-imprint-bar p-2 text-center">
<a href="/imprint.html">Imprint | Impressum</a>
{% endblock footer %}

{% if user.is_authenticated %}
{% if DB_NAME %}
<div class="footer-imprint-bar">
<div>{{ DB_NAME }}</div>
</div>
{% block imprint %}
<!-- Start imprint, project partners -->
<div id="wrapper-footer-secondary"
class="footer-imprint-bar p-2 text-center">
<a href="/imprint.html">Imprint | Impressum</a>

{% if user.is_authenticated %}
{% if DB_NAME %}
<div class="footer-imprint-bar">
<div>{{ DB_NAME }}</div>
</div>
{% endif %}
{% endif %}
{% endif %}

</div>
</div>
{% endblock imprint %}

<!-- End imprint, project partners -->
<!-- End site footer -->
</div>
Expand Down