mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: fix problem_language_tab (#358)
This commit is contained in:
1 parent
31a7166ae9
commit
ac19b2817f
3 files changed
+5
-3
No files matched your search
@@ -80,7 +80,7 @@
|
||||
<div class="section__tab-header-wrapper">
|
||||
<ul class="section__tab-header flex-row">
|
||||
{% for k in pdoc.content|contentLang %}
|
||||
<a class="section__tab-header-item {{'tab--active' if (handler.request.query.lang or handler.user.viewLang or handler.session.viewLang) == k }}" data-lang="{{ k }}" href="./{{pdoc.pid|default(pdoc.docId)}}?lang={{k}}">
|
||||
<a class="section__tab-header-item {{'tab--active' if (handler.request.query.lang or handler.user.viewLang or handler.session.viewLang or (pdoc.content|contentLang)[0] ) == k }}" data-lang="{{ k }}" href="./{{pdoc.pid|default(pdoc.docId)}}?lang={{k}}">
|
||||
{{ model.setting.SETTINGS_BY_KEY['viewLang'].range[k] }}
|
||||
</a>
|
||||
{% endfor %}
|
||||
|
||||
Reference in new issue
Block a user