forked from 2factorauth/twofactorauth
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmobile-table.html
87 lines (84 loc) · 4.1 KB
/
mobile-table.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
{% assign section_id = include.id-param %}
{% assign section_title = include.title-param %}
{% assign section_file = site.data[section_id] %}
<div class="website-table mobile-table {{ section_id }}-table" id="{{ section_id }}-mobiletable" style="display:none">
<div class="label">
<h3>{{ section_title }}</h3>
</div>
<div class="jets-content">
{% for website in section_file.websites %}
{% if website.lang and site.data.languages[website.lang] %}
{% assign progress_tweet = site.data.languages[website.lang].progress_tweet %}
{% assign workonit_tweet = site.data.languages[website.lang].work_tweet %}
{% else %}
{% assign progress_tweet = page.progress_tweet %}
{% assign workonit_tweet = page.workonit_tweet %}
{% endif %}
{% if website.status %}
<div class="main progress">
<div class="title">
{% if website.img %}
<noscript><img src="/img/{{ section_id }}/{{ website.img }}" class="icon" alt="{{ website.name }}"></noscript>
<img src="/img/placeholder.png" data-src="/img/{{ section_id }}/{{ website.img }}" class="icon"
alt="{{ website.name }}">
{% endif %}
<a href="{{ website.url }}" class="name">{{ website.name }}</a>
{% include exception.html website=website %}
<a href="{{ website.status }}" target="_blank">
<i class="external url link large icon"></i>
</a>
</div>
<p>IN PROGRESS!</p>
<div>
<a class="ui twitter mini button"
href="https://twitter.com/share?url={{site.url|cgi_escape}}&text={{progress_tweet|replace:'TWITTERHANDLE',website.twitter|cgi_escape}}&hashtags={{page.hash|cgi_escape}}"
target="_blank"><i class="twitter icon"></i> {{page.link_progress_mobile}}</a>
</div>
</div>
{% elsif website.tfa %}
<div class="main positive">
<div class="title">
{% if website.img %}
<noscript><img src="/img/{{ section_id }}/{{ website.img }}" class="icon" alt="{{ website.name }}"></noscript>
<img src="/img/placeholder.png" data-src="/img/{{ section_id }}/{{ website.img }}" class="icon"
alt="{{ website.name }}">
{% endif %}
<a href="{{ website.url }}" class="name">{{ website.name }}</a>
{% include exception.html website=website %}
</div>
<p>
Supported:
{% if website.sms %}SMS{% endif %}
{% if website.phone %}Phone{% endif %}
{% if website.email %}Email{% endif %}
{% if website.hardware %}Hardware{% endif %}
{% if website.software %}Software{% endif %}
</p>
{% if website.doc %}
<div class="button-group">
<a href="{{ website.doc }}" class="ui twitter mini button"><i class="large book icon"></i></a>
</div>
{% endif %}
</div>
{% else %}
<div class="main negative">
<div class="title">
{% if website.img %}
<noscript><img src="/img/{{ section_id }}/{{ website.img }}" class="icon" alt="{{ website.name }}"></noscript>
<img src="/img/placeholder.png" data-src="/img/{{ section_id }}/{{ website.img }}" class="icon"
alt="{{ website.name }}">
{% endif %}
<a href="{{ website.url }}" class="name">{{ website.name }}</a>
{% include exception.html website=website %}
</div>
<p>2FA not supported</p>
<div class="button-group">
{% if website.twitter %} <a class="ui twitter mini button" href="https://twitter.com/share?url={{site.url|cgi_escape}}&text={{workonit_tweet|replace:'TWITTERHANDLE',website.twitter|cgi_escape}}&hashtags={{page.hash|cgi_escape}}" target="_blank"><i class="twitter icon"></i></a>{% endif %}
{% if website.facebook %} <a class="ui facebook mini button" href="https://facebook.com/{{website.facebook}}/" target="_blank"><i class="facebook icon"></i></a>{%endif%}
{% if website.email_address %} <a class="ui green mini button" href="mailto:{{website.email_address}}?subject=Support%20Two%20Factor%20Authentication" target="_blank"><i class="mail icon"></i></a>{% endif %}
</div>
</div>
{% endif %}
{% endfor %}
</div>
</div>