{% assign cat = site.data.sort[include.ln] %}{% assign cat_size = cat | size %} {% if cat_size == 0 %}

No Categories found

{% else %}
{% endif %}
{% for peer in site.data.orderbook %} {% assign reg_entry = site.data.register | map: peer[0] %} {% if reg_entry %} {% assign reg_entry = reg_entry[0] %} {% for o in peer[1] %} {% assign tags = o.tags | split: ',' %} {% assign min-size = o.min | times: 1 %} {% assign max-size = o.max | times: 1 %} {% assign hid = reg_entry.id | append: o.headline | sha256 | slice: 0,6 %}
{{ site.data.orderbook-update | map: peer[0] | map: 'time' }} {% assign P = o.image | imagesize %}{% assign Ps = P | size %} {% if Ps == 2 %} {% assign px = P[0] | times: P[1] %} {% if px < site.px_max %} {% else %} image too large! (max: {{ site.px_max | decimals | divided_by: 1000000 | decimals }}Mpx ) {% endif %} {% else %} {% endif %}
{{ hid }} - {{ o.headline | truncate: 32 }}
@{{ reg_entry.id }} / {{ peer[0] }}
{% if o.bid-ask == 'ask' %} ask{% else %} bid{% endif %} {{ reg_entry.lang }} {{ o.latitude }},{{ o.longitude }},{{ o.country-code }} {{ o.condition }} {% for tag in tags %} {% if forloop.index == 1 %} {{ site.data.categories | map: tags[0] | map: "title" | map: include.ln }} {% else %} {% capture Tag %}{{ site.data.categories | map: tags[0] | map: "Tags" | map: tag | map: include.ln }}{% endcapture %} {% if Tag == '' %}{{ tag }}{% else %}{{ Tag }}{% endif %} {% endif %} {% endfor %}
{{ o.description }}
{% capture priceref %}{{ o.price-reference | split: ',' | join: '-' }}{% endcapture %} {% capture price_ex %}{{ site.data.price-sources[priceref].price | plus: 0.00001 | round: 4 }}{% endcapture %} {% capture price %}{% if price_ex != "" %}{{price_ex}}{% else %}{{ o.price-source }}{% endif %}{% endcapture %}
{{ o.price-per-unit | divided_by: price | round:1 | decimals }} FAIR
{% if min-size > 0 %}{{ min-size }}..{% endif %}{{ max-size }} {{ o.unit }}
( {{ o.price-per-unit | decimals }} {{ site.data.price-sources[priceref].currency }} / {{ o.unit }} )
( {{ price }} {{ site.data.price-sources[priceref].currency }} / FAIR )
{% if price_ex != "" %}{{ o.price-source | replace: '-','/' }}{% else %}fixed price{% endif %}
{% endfor %} {% endif %} {% endfor %}
{% include modal-messager.html %}