Only display wallets for selected platform

This commit is contained in:
Saivann 2014-10-29 23:50:56 -04:00
parent 82dcaf218a
commit a6cf438938
3 changed files with 100 additions and 58 deletions

View file

@ -701,7 +701,7 @@ wallets:
</ul>
</div>
<div class="wallets" id="wallets" onclick="walletMobileShow(event);walletDisabledShow(event);">
<div class="wallets" id="wallets" onclick="walletShow(event);">
{% for wallet in page.wallets %}{% for wallet in wallet %}{% if wallet[1].platform.mobile %}{% assign platform = wallet[1].platform.mobile %}{% elsif wallet[1].platform.desktop %}{% assign platform = wallet[1].platform.desktop %}{% elsif wallet[1].platform.hardware %}{% assign platform = wallet[1].platform.hardware %}{% else %}{% assign platform = wallet[1].platform.web %}{% endif %}
<div id="wallet-{{ wallet[0] }}" data-walletcompat="{{ wallet[1].compat }}" data-walletlevel="{{ wallet[1].level }}">
<span></span>
@ -764,7 +764,6 @@ wallets:
<div class="wallets walletsmobile" id="walletsmobile"></div>
<script>if(isMobile())walletShowPlatform('mobile');else walletShowPlatform('desktop');</script>
<script>walletRotate();</script>
<div class="walletsdisclaimer">
<h2><img src="/img/warning.svg" class="warningicon" alt="warning">{% translate educate %}</h2>