mirror of
https://github.com/seigler/dash-docs
synced 2025-07-27 09:46:12 +00:00
Fixes wallet menu, list and container for correct links and translation
This commit is contained in:
parent
43ec650bd4
commit
7f028a68ba
4 changed files with 16 additions and 4 deletions
|
@ -8,8 +8,8 @@ http://opensource.org/licenses/MIT.
|
|||
{% assign platform = page.platform['name'] %}
|
||||
{% assign os = page.os['name'] %}
|
||||
{% if wallet.compat contains platform and wallet.compat contains os %}
|
||||
<div>
|
||||
<a href="/en/wallets/{{ platform }}/{{ os }}/{{ wallet.id }}/">
|
||||
<div data-walletlevel="{{ wallet.level }}">
|
||||
<a href="/{{ page.lang}}/wallets/{{ platform }}/{{ os }}/{{ wallet.id }}/">
|
||||
<img src="/img/wallet/{{ wallet.id }}.png" alt="{{ wallet.title }}" />
|
||||
{{ wallet.titleshort }}
|
||||
</a>
|
||||
|
@ -17,3 +17,7 @@ http://opensource.org/licenses/MIT.
|
|||
{% endif %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
||||
<script type="text/javascript" charset="utf-8">
|
||||
walletRotate();
|
||||
</script>
|
||||
|
|
|
@ -26,7 +26,12 @@ http://opensource.org/licenses/MIT.
|
|||
{% assign platformClass = platformClass | append: " active" %}
|
||||
{% endif %}
|
||||
<li class="{{ platformClass }}">
|
||||
<a href="#">{% translate walletcat{{platformName}} choose-your-wallet %}</a>
|
||||
{% if platformName == 'hardware' or platformName == 'web' %}
|
||||
{% assign platformHref = "/" | append: page.lang | append: "/wallets/" | append: platformName | append: "/" | append: platformName | append: "/" %}
|
||||
{% else %}
|
||||
{% assign platformHref = "#" %}
|
||||
{% endif %}
|
||||
<a href="{{ platformHref }}">{% translate walletcat{{platformName}} choose-your-wallet %}</a>
|
||||
{% if platform.items.size > 1 %}
|
||||
<ul>
|
||||
{% for item in platform.items %}
|
||||
|
@ -35,7 +40,7 @@ http://opensource.org/licenses/MIT.
|
|||
{% assign osClass = osClass | append: " active" %}
|
||||
{% endif %}
|
||||
<li class="{{ osClass }}">
|
||||
<a href="/en/wallets/{{ platformName }}/{{ item.os.name }}">
|
||||
<a href="/{{ page.lang }}/wallets/{{ platformName }}/{{ item.os.name }}">
|
||||
{% translate platform{{item.os.name}} choose-your-wallet %}
|
||||
</a>
|
||||
</li>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue