Hi everyone,
at the moment, we added some code like
{% if LANGUAGE_CODE != 'de' %}
<h3 class="hd">Documentation</h3>
<ul class="side-tabnav-tabs">
<li class="tab">
<a href="{{ SITE_ROOT }}help/" target="_blank"><span aria-hidden="true" class="sf2-icon-wiki"></span>{% trans "Help" %}</a>
</li>
<li class="tab">
<a href="https://www.zdv.uni-mainz.de/impressum.php" target="_blank"><span aria-hidden="true" class="sf2-icon-file"></span>Legal notice</a>
</li>
<li class="tab">
<a href="http://www.uni-mainz.de/144.php" target="_blank"><span aria-hidden="true" class="sf2-icon-security"></span>Privacy statement</a>
</li>
</ul>
{% else %}
[...]
to templates/js/templates.html
to add some entries to the menu on the left side (side-nav
):
Thinking that this might also be interesting for other users, we’d like to ask to have that configurable.
Either in seahub_settings.py
or via an included template snippet from seahub-data/custom/
.
My proposal for the first variant would be:
CUSTOM_MENU_ITEMS = [
{'de': 'Dokumentation', 'default': 'Documentation'},
[
...
('https://www.zdv.uni-mainz.de/impressum.php', 'file',
{'de': 'Impressum', 'default': 'Legal notice'}),
...
]
So maybe simply dropping a template file would be quite easier.
Best wishes,
Moritz