mirror of
https://github.com/seigler/dash-docs
synced 2025-07-27 09:46:12 +00:00
Simplifies layouts for wallet platforms and wallet details.
This commit is contained in:
parent
d3b7128f74
commit
7796794858
15 changed files with 177 additions and 71 deletions
17
_includes/layout/base/wallets-list.html
Normal file
17
_includes/layout/base/wallets-list.html
Normal file
|
@ -0,0 +1,17 @@
|
|||
{% comment %}
|
||||
This file is licensed under the MIT License (MIT) available on
|
||||
http://opensource.org/licenses/MIT.
|
||||
{% if wallet.compat contains page.platform and wallet.compat contains page.os %}
|
||||
{% endif %}
|
||||
{% endcomment %}
|
||||
|
||||
<div class="wallets" id="wallets" onclick="walletListener(event);" ontouchstart="walletListener(event);">
|
||||
{% for wallet in site.wallets %}
|
||||
<div>
|
||||
<a>
|
||||
<img src="/img/wallet/{{ wallet.id }}.png" alt="{{ wallet.title }}" />
|
||||
{{ wallet.titleshort }}
|
||||
</a>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
34
_includes/layout/base/wallets-menu.html
Normal file
34
_includes/layout/base/wallets-menu.html
Normal file
|
@ -0,0 +1,34 @@
|
|||
{% comment %}
|
||||
This file is licensed under the MIT License (MIT) available on
|
||||
http://opensource.org/licenses/MIT.
|
||||
{% endcomment %}
|
||||
|
||||
<div class="walletmenu" id="walletmenu" onclick="walletMenuListener(event);" ontouchstart="walletMenuListener(event);">
|
||||
{% assign platformsByPlatform = site.platforms | group_by: "platform" %}
|
||||
<ul>
|
||||
{% for platform in platformsByPlatform %}
|
||||
{% assign platform_class = "wallet-" | append: platform.name %}
|
||||
{% if page.id contains platform.name %}
|
||||
{% assign platform_class = platform_class | append: " active" %}
|
||||
{% endif %}
|
||||
<li class="{{ platform_class }}">
|
||||
<a href="#">{% translate walletcat{{platform.name}} choose-your-wallet %}</a>
|
||||
{% if platform.items.size > 1 %}
|
||||
<ul>
|
||||
{% for item in platform.items %}
|
||||
{% assign os_class = "wallet-" | append: item.os %}
|
||||
{% if page.id == item.id %}
|
||||
{% assign os_class = os_class | append: " active" %}
|
||||
{% endif %}
|
||||
<li class="{{ os_class }}">
|
||||
<a href="/en/wallets/{{ platform.name }}/{{ item.os }}">
|
||||
{% translate platform{{item.os}} choose-your-wallet %}
|
||||
</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue