forked from acceptbitcoincash/acceptbitcoincash
-
Notifications
You must be signed in to change notification settings - Fork 0
/
adoption.html
65 lines (61 loc) · 2.06 KB
/
adoption.html
1
2
3
4
5
6
7
8
9
10
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
---
layout: default
title: Adoption
id: adoption
page_name: adoption
has_search: no
show_bch_only: no
---
<div id="maingrid" class="ui container {{ page.id }}">
{%- assign pages = site.data.sections | group_by:"page" | sort:"name" -%}
{%- assign sortedPages = pages | reverse -%}
{% for tracked_page in sortedPages %}
{%- assign count_total = 0 -%}
{%- assign count_bch = 0 -%}
{%- for section in tracked_page.items -%}
{%- assign section_file = site.data[section.id] -%}
{%- for website in section_file.websites -%}
{%- assign count_total = count_total | plus: '1' -%}
{%- if website.bch -%}
{%- assign count_bch = count_bch | plus: '1' -%}
{%- endif -%}
{%- endfor -%}
{%- endfor -%}
{% include segment/progress-bar.html value=count_bch total=count_total page=tracked_page.name %}
{% endfor %}
{%- if page.show_bch_only -%}
{%- assign count_total = 0 -%}
{%- assign count_bch = 0 -%}
{% for tracked_page in pages %}
{%- for section in tracked_page.items -%}
{%- assign section_file = site.data[section.id] -%}
{%- for website in section_file.websites -%}
{%- if website.btc or website.othercrypto or website.bsv -%}
{%- assign count_total = count_total | plus: '1' -%}
{%- elsif website.bch -%}
{%- assign count_bch = count_bch | plus: '1' -%}
{%- assign count_total = count_total | plus: '1' -%}
{%- endif -%}
{%- endfor -%}
{%- endfor -%}
{% endfor %}
{% include segment/progress-bar.html value=count_bch total=count_total page="only-bch" %}
{%- endif -%}
{%- assign count_total = 0 -%}
{%- assign count_bch = 0 -%}
{% for tracked_page in pages %}
{%- for section in tracked_page.items -%}
{%- assign section_file = site.data[section.id] -%}
{%- for website in section_file.websites -%}
{%- if website.btc -%}
{%- assign count_total = count_total | plus: '1' -%}
{%- if website.bch -%}
{%- assign count_bch = count_bch | plus: '1' -%}
{%- endif -%}
{%- endif -%}
{%- endfor -%}
{%- endfor -%}
{% endfor %}
{% include segment/progress-bar.html value=count_bch total=count_total page="cobra" %}
</div>
<br/><br/><br/>