Fixes wallet menu, list and container for correct links and translation

This commit is contained in:
Igor Kuzmenko 2017-07-18 17:50:37 +02:00
parent 43ec650bd4
commit 7f028a68ba
4 changed files with 16 additions and 4 deletions

View file

@ -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>

View file

@ -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>

View file

@ -33,6 +33,7 @@ max_wallet_text_length: 418 ## Unicode characters
alt="{% translate platform{{os.name}} choose-your-wallet %}"
title="{% translate platform{{os.name}} choose-your-wallet %}" />
<span>{% translate platform{{os.name}} choose-your-wallet %}</span>
<span>{% translate walletcat{{os.name}} choose-your-wallet %}</span>
</a>
{% endfor %}
{% endfor %}
@ -47,6 +48,7 @@ max_wallet_text_length: 418 ## Unicode characters
alt="{% translate platform{{os.name}} choose-your-wallet %}"
title="{% translate platform{{os.name}} choose-your-wallet %}" />
<h3>{% translate platform{{os.name}} choose-your-wallet %}</h3>
<h3>{% translate walletcat{{os.name}} choose-your-wallet %}</h3>
</div>
<div class="wallet-os-download-buttons">
{% if os.link == 'bitcoincore' %}

View file

@ -387,6 +387,7 @@ $scores:
.hover {
.wallet-os-check-details {
z-index: 100;
display: block;
border: 2px solid;
border-radius: 4px;