Skip to content

Commit

Permalink
templates: update footer info
Browse files Browse the repository at this point in the history
* Point ILS link to current release page
* RERO becomes RERO+
* Fix environment variable and link to privacy policy

Co-Authored-by: Pascal Repond <[email protected]>
  • Loading branch information
PascalRepond committed Aug 8, 2022
1 parent 1b0a1b6 commit 2b4162c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
4 changes: 2 additions & 2 deletions rero_ils/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,8 @@ def _(x):
RERO_ILS_PERSONALIZED_HOMEPAGE_BY_VIEW = False
RERO_ILS_HOMEPAGE_GENERAL_BLOCK = 'rero_ils/_frontpage_block_test.html'
RERO_ILS_HOMEPAGE_GENERAL_SLOGAN = 'rero_ils/_frontpage_slogan_test.html'
#: Link to privacy and data protection policy for the instance
RERO_ILS_PRIVACY_POLICY_URL = 'https://www.rero.ch/legal/privacy/declaration_protection_donnees_RERO-ILS.pdf'

# ILL Request config
RERO_ILS_ILL_REQUEST_ON_GLOBAL_VIEW = True
Expand Down Expand Up @@ -197,8 +199,6 @@ def _(x):
THEME_LOGO = 'images/logo-rero-plus.svg'
#: Site name
THEME_SITENAME = _('rero-ils')
#: Link to privacy and data protection policy for the instance
THEME_PRIVACY_POLICY_URL = 'https://www.rero.ch/en/legal/privacy/declaration_protection_donnees_RERO-ILS.pdf'
#: Use default frontpage.
THEME_FRONTPAGE = False
#: Frontpage title.
Expand Down
12 changes: 5 additions & 7 deletions rero_ils/theme/templates/rero_ils/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,11 @@
<footer class="rero-ils-footer border-top mt-4 bg-light d-flex">
<div class="container d-flex justify-content-center align-items-center py-4">
<p class="text-secondary mb-0">
{{ _('Developed by') }}
<a href="https://www.rero.ch" target="_blank">RERO</a>
{{ _('using') }}
<a href="https://github.com/rero/rero-ils" target="_blank">RERO ILS v{{ version }}</a> &amp;
<a href="https://inveniosoftware.org" target="_blank">Invenio</a>
{% if config.THEME_PRIVACY_POLICY_URL %} |
<a href="{{ config.THEME_PRIVACY_POLICY_URL }}">{{ _('Privacy policy') }}</a>
{{ _('Powered by') }} <a href="https://www.rero.ch/produits/ils" target="_blank">RERO ILS</a> &
<a href="https://inveniosoftware.org/" target="_blank" rel="noopener">Invenio</a> |
<a href="https://github.com/rero/rero-ils/releases/tag/v{{version}}" target="_blank">v{{ version }}</a>
{% if config.RERO_ILS_PRIVACY_POLICY_URL %} |
<a href="{{ config.RERO_ILS_PRIVACY_POLICY_URL }}" target="_blank">{{ _('Privacy policy') }}</a>
{% endif %}
</p>
</div>
Expand Down

0 comments on commit 2b4162c

Please sign in to comment.