Skip to content
Open
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
13 changes: 12 additions & 1 deletion view/vocabularylist.twig
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,13 @@
<h3>{{ vocabClassName }}</h3>
<ul>
{% for vocab in vocabArray %}
<li><a class="navigation-font" href="{{ vocab.id }}/{{ request.lang }}/{% if request.contentLang != request.lang and request.contentLang != '' and request.contentLang in vocab.config.languages %}?clang={{ request.contentLang }}{% endif %}">{{ vocab.title }}</a></li>
{% set useDefaultLanguage = request.contentLang not in vocab.config.languages and request.contentLang != '' %}
<li><a class="navigation-font" href="{{ vocab.id }}/{{ request.lang }}/{% if useDefaultLanguage %}?clang={{ vocab.config.defaultLanguage }}{% endif %}">
{% if useDefaultLanguage %}
{{ vocab.title(vocab.config.defaultLanguage) }}
{% else %}
{{ vocab.title(request.contentLang) }}
{% endif %} </a></li>
{% endfor %}
</ul>
</div>
Expand All @@ -24,3 +30,8 @@
</div>
{% endif %}
</div>

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess the newlines are not needed?