index.md 2.25 KB
Newer Older
D Sal's avatar
D Sal committed
1
2
---
layout: custom
3
title: titles.merchants
4
permalink: /community/merchants/index.html
D Sal's avatar
D Sal committed
5
---
el00ruobuob's avatar
el00ruobuob committed
6
{% t global.lang_tag %}
7
<div class="merchants text-center container description">
8
    <p>{% t merchants.intro1 %}<a href="https://repo.getmonero.org/monero-project/monero-site/issues"> {% t merchants.intro2 %}</a> {% t merchants.intro3 %}</p>
9
10
</div>
<div class="merchants">
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35

{% assign itemCount = site.data.merchants | size %}
{% assign headerRow = itemCount | divided_by: 5.0 | ceil | times: 1.0 %}
{% assign itemInRow = itemCount | divided_by: headerRow | ceil %}

{% assign Item_processed = 0 %}
<div class="container full">
  {% for toplevel in site.data.merchants %}
    {% assign isHeader = Item_processed | modulo: itemInRow %}
    {% if isHeader == 0 %}
      <div class="tabPanel-merchant tabPanel-merchant{{ itemInRow }}">
    {% endif %}
        <h2><a href="#{{ toplevel.id }}">{{ toplevel.category }}</a></h2>
        {% assign Item_processed = Item_processed | plus: 1 %}
    {% assign isHeader = Item_processed | modulo: itemInRow %}
    {% if isHeader == 0 %}
      </div>
      {% if Item_processed != itemCount %}
        {% assign headerRow = itemCount | minus: Item_processed | divided_by: 5.0 | ceil | times: 1.0 %}
        {% assign itemInRow = itemCount | minus: Item_processed | divided_by: headerRow | ceil %}
      {% endif %}
    {% endif %}
  {% endfor %}
</div>

36
37
38
39
40
41
42
{% for toplevel in site.data.merchants %}
<div class="container full" id="{{toplevel.id}}">
       <div class="info-block">
        <h2>{{toplevel.category}}</h2>
        <div class="row">
            {% assign sortedMerchants = toplevel.merchants | sort: 'name' %}
            {% for merchants in sortedMerchants %}
's avatar
committed
43
44
            <div class="col-md-6 col-sm-6 col-xs-12">
                <p><a href="{{merchants.url}}">{{merchants.name}}</a></p>
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
            </div>
            {% endfor %}
        </div>
        </div>
</div>
{%endfor%}

</div>
<div class="text-center container description">
    <p>
        <em>{% t merchants.disclaimer %}</em>
    </p>
</div>

<div class="untranslated {% t merchants.translated %}">
60
    <p>{% t global.untranslated %} <a class="untranslated-link" href="https://repo.getmonero.org/monero-project/monero-site/blob/master/README.md#140-how-to-translate-a-page">README</a>.</p>
61
</div>