eur czk can be disabled from now on
This commit is contained in:
@@ -104,8 +104,19 @@
|
||||
{% endif %}
|
||||
</ul>
|
||||
|
||||
<!-- right side: cart + settings + mobile toggle -->
|
||||
<!-- right side: kurz + cart + settings + mobile toggle -->
|
||||
<div class="ml-auto flex items-center gap-3">
|
||||
<!-- exchange-rate ("kurz") display: the admin-set EUR→alt rate(s).
|
||||
Hidden when the store is EUR-only (no enabled alternatives). -->
|
||||
{% set nav_cc = currencies() %}
|
||||
{% if nav_cc.alts | length > 0 %}
|
||||
<div class="hidden items-center gap-2 text-xs text-on-surface/70 dark:text-on-surface-dark/70 sm:flex">
|
||||
<span class="font-semibold uppercase tracking-wide">{{ t(key="currency-rate", lang=lang | default(value='sk')) }}</span>
|
||||
{% for a in nav_cc.alts %}
|
||||
<span class="tabular-nums">1 {{ nav_cc.base.symbol }} = {{ a.rate }} {{ a.symbol }}</span>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
<!-- customer profile dropdown (avatar + name + account type) -->
|
||||
{% if logged_in_customer %}
|
||||
{% include "partials/profile_menu.html" %}
|
||||
|
||||
Reference in New Issue
Block a user