forked from 2factorauth/twofactorauth
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix a wide range of functionality issues
- Loading branch information
Showing
4 changed files
with
192 additions
and
186 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,171 +1,176 @@ | ||
{% assign section = include.variable-param %} | ||
{% assign section_file = site.data[section.id] %} | ||
<div class="website-table" id="{{ section.id }}-table" style="display:none"> | ||
<table class="ui celled table"> | ||
<thead> | ||
<tr> | ||
<th class="single line"><h3>{{ section.title }}</h3></th> | ||
<th>Docs</th> | ||
<th>SMS</th> | ||
<th>Phone Call</th> | ||
<th>Email</th> | ||
<th>Hardware Token</th> | ||
<th>Software Token</th> | ||
</tr> | ||
</thead> | ||
<tbody class="jets-content"> | ||
|
||
{% assign section_file = site.data[section.id] %} | ||
{% for website in section_file.websites %} | ||
<tr class="desktop-tr"> | ||
{% if website.tfa %} | ||
<td class="main positive"> | ||
{% 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 }}">{{ website.name }}</a> | ||
{% include exception.html website=website %} | ||
</td> | ||
|
||
<td class="positive icon"> | ||
{% if website.doc %} | ||
<a href="{{ website.doc }}"><i class="external url link large icon"></i></a> | ||
{% endif %} | ||
</td> | ||
|
||
<td class="positive icon"> | ||
{% if website.sms %} | ||
<i class="checkmark large icon"></i> | ||
{% endif %} | ||
</td> | ||
|
||
<td class="positive icon"> | ||
{% if website.phone %} | ||
<i class="checkmark large icon"></i> | ||
{% endif %} | ||
</td> | ||
|
||
<td class="positive icon"> | ||
{% if website.email %} | ||
<i class="checkmark large icon"></i> | ||
{% endif %} | ||
</td> | ||
|
||
<td class="positive icon"> | ||
{% if website.hardware %} | ||
<i class="checkmark large icon"></i> | ||
{% endif %} | ||
</td> | ||
|
||
<td class="positive icon"> | ||
{% if website.software %} | ||
<i class="checkmark large icon"></i> | ||
{% endif %} | ||
</td> | ||
{% else %} | ||
<td class="main negative"> | ||
{% 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 }}">{{ website.name }}</a> | ||
{% if website.status %} | ||
<span class="progress"> | ||
<a class="ui mini orange button" href="{{website.status}}" target="_blank"> | ||
<i class="star icon"></i> In Progress! | ||
</a> | ||
</span> | ||
{% endif %} | ||
</td> | ||
|
||
{% if website.twitter %} | ||
<td class="twitter negative" colspan="6"> | ||
{% if website.status %} | ||
<a class="ui twitter mini button" | ||
href="https://twitter.com/share?url={{site.url|cgi_escape}}&text={{page.tweet_progress|replace:'TWITTERHANDLE',website.twitter|cgi_escape}}&hashtags={{page.hash|cgi_escape}}" | ||
target="_blank"><i class="twitter icon"></i> {{page.link_progress}}</a> | ||
{% else %} | ||
<a class="ui twitter mini button" | ||
href="https://twitter.com/share?url={{site.url|cgi_escape}}&text={{page.tweet|replace:'TWITTERHANDLE',website.twitter|cgi_escape}}&hashtags={{page.hash|cgi_escape}}" | ||
target="_blank"><i class="twitter icon"></i> {{page.link}}</a> | ||
{% endif %} | ||
</td> | ||
{% else %} | ||
<td class="negative icon"><i class="remove large icon"></i></td> | ||
<td class="negative icon"><i class="remove large icon"></i></td> | ||
<td class="negative icon"><i class="remove large icon"></i></td> | ||
<td class="negative icon"><i class="remove large icon"></i></td> | ||
<td class="negative icon"><i class="remove large icon"></i></td> | ||
<td class="negative icon"><i class="remove large icon"></i></td> | ||
{% endif %} | ||
{% endif %} | ||
</tr> | ||
<tr class="mobile-tr"> | ||
{% if website.status %} | ||
<td class="main progress"> | ||
<div class="left"> | ||
<a href="{{ website.url }}">{{ website.name }}</a> | ||
{% include exception.html website=website %} | ||
<p>IN PROGRESS!</p> | ||
</div> | ||
<div class="right"> | ||
<a class="ui twitter mini button" | ||
href="https://twitter.com/share?url={{site.url|cgi_escape}}&text={{page.tweet_progress|replace:'TWITTERHANDLE',website.twitter|cgi_escape}}&hashtags={{page.hash|cgi_escape}}" | ||
target="_blank"><i class="twitter icon"></i> {{page.link_progress_mobile}}</a> | ||
</div> | ||
{% else %} | ||
<div class="desktop-section"> | ||
<table class="ui celled table"> | ||
<thead> | ||
<tr> | ||
<th class="single line"><h3>{{ section.title }}</h3></th> | ||
<th>Docs</th> | ||
<th>SMS</th> | ||
<th>Phone Call</th> | ||
<th>Email</th> | ||
<th>Hardware Token</th> | ||
<th>Software Token</th> | ||
</tr> | ||
</thead> | ||
<tbody class="jets-content"> | ||
{% for website in section_file.websites %} | ||
<tr class="desktop-tr"> | ||
{% if website.tfa %} | ||
<td class="main positive"> | ||
<div class="left"> | ||
<a href="{{ website.url }}" class="name">{{ website.name }}</a> | ||
<td class="main positive"> | ||
{% 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 }}">{{ website.name }}</a> | ||
{% include exception.html website=website %} | ||
</td> | ||
|
||
<td class="positive icon"> | ||
{% if website.doc %} | ||
<br> | ||
<br> | ||
<a href="{{ website.doc }}" class="documentation">Documentation <i class="external url link large icon"></i></a> | ||
<a href="{{ website.doc }}"><i class="external url link large icon"></i></a> | ||
{% endif %} | ||
</td> | ||
|
||
<td class="positive icon"> | ||
{% if website.sms %} | ||
<p>SMS is supported!</p> | ||
<i class="checkmark large icon"></i> | ||
{% endif %} | ||
</td> | ||
|
||
<td class="positive icon"> | ||
{% if website.phone %} | ||
<p>Phone is supported!</p> | ||
<i class="checkmark large icon"></i> | ||
{% endif %} | ||
</td> | ||
|
||
<td class="positive icon"> | ||
{% if website.email %} | ||
<p>Email is supported!</p> | ||
<i class="checkmark large icon"></i> | ||
{% endif %} | ||
</td> | ||
|
||
<td class="positive icon"> | ||
{% if website.hardware %} | ||
<p>Hardware is supported!</p> | ||
<i class="checkmark large icon"></i> | ||
{% endif %} | ||
</td> | ||
|
||
<td class="positive icon"> | ||
{% if website.software %} | ||
<p>Software is supported!</p> | ||
<i class="checkmark large icon"></i> | ||
{% endif %} | ||
</div> | ||
</td> | ||
{% else %} | ||
<td class="main negative"> | ||
<div class="left"> | ||
<a href="{{ website.url }}" class="name">{{ website.name }}</a> | ||
<td class="main negative"> | ||
{% 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 }}">{{ website.name }}</a> | ||
{% if website.status %} | ||
<span class="progress"> | ||
<a class="ui mini orange button" href="{{website.status}}" target="_blank"> | ||
<i class="star icon"></i> In Progress! | ||
</a> | ||
</span> | ||
{% endif %} | ||
</td> | ||
|
||
<p><b>NO 2FA</b></p> | ||
</div> | ||
{% if website.twitter %} | ||
<div class="right"> | ||
<td class="twitter negative" colspan="6"> | ||
{% if website.status %} | ||
<a class="ui twitter mini button" | ||
href="https://twitter.com/share?url={{site.url|cgi_escape}}&text={{page.tweet_progress|replace:'TWITTERHANDLE',website.twitter|cgi_escape}}&hashtags={{page.hash|cgi_escape}}" | ||
target="_blank"><i class="twitter icon"></i> {{page.link_progress}}</a> | ||
{% else %} | ||
<a class="ui twitter mini button" | ||
href="https://twitter.com/share?url={{site.url|cgi_escape}}&text={{page.tweet|replace:'TWITTERHANDLE',website.twitter|cgi_escape}}&hashtags={{page.hash|cgi_escape}}" | ||
target="_blank"><i class="twitter icon"></i> {{page.link_mobile}}</a> | ||
</div> | ||
target="_blank"><i class="twitter icon"></i> {{page.link}}</a> | ||
{% endif %} | ||
</td> | ||
{% else %} | ||
<td class="negative icon"><i class="remove large icon"></i></td> | ||
<td class="negative icon"><i class="remove large icon"></i></td> | ||
<td class="negative icon"><i class="remove large icon"></i></td> | ||
<td class="negative icon"><i class="remove large icon"></i></td> | ||
<td class="negative icon"><i class="remove large icon"></i></td> | ||
<td class="negative icon"><i class="remove large icon"></i></td> | ||
{% endif %} | ||
</td> | ||
{% endif %} | ||
</tr> | ||
{% endfor %} | ||
</tbody> | ||
</table> | ||
</div> | ||
<div class="mobile-section jets-content"> | ||
{% for website in section_file.websites %} | ||
{% if website.status %} | ||
<div class="main progress"> | ||
<div class="left"> | ||
<a href="{{ website.url }}" class="name">{{ website.name }}</a> | ||
{% include exception.html website=website %} | ||
<p>IN PROGRESS!</p> | ||
</div> | ||
<div class="right"> | ||
<a class="ui twitter mini button" | ||
href="https://twitter.com/share?url={{site.url|cgi_escape}}&text={{page.tweet_progress|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="left"> | ||
<a href="{{ website.url }}" class="name">{{ website.name }}</a> | ||
{% include exception.html website=website %} | ||
<br> | ||
<br> | ||
|
||
{% if website.sms %} | ||
<p>SMS is supported!</p> | ||
{% endif %} | ||
|
||
{% if website.phone %} | ||
<p>Phone is supported!</p> | ||
{% endif %} | ||
|
||
{% if website.email %} | ||
<p>Email is supported!</p> | ||
{% endif %} | ||
|
||
{% if website.hardware %} | ||
<p>Hardware is supported!</p> | ||
{% endif %} | ||
|
||
{% if website.software %} | ||
<p>Software is supported!</p> | ||
{% endif %} | ||
</div> | ||
{% if website.doc %} | ||
<div class="right"> | ||
<a href="{{ website.doc }}" class="ui twitter mini button"><i class="large book icon"></i> DOCS</a> | ||
</div> | ||
{% endif %} | ||
</div> | ||
{% else %} | ||
<div class="main negative"> | ||
<div class="left"> | ||
<a href="{{ website.url }}" class="name">{{ website.name }}</a> | ||
|
||
<p>NO 2FA</p> | ||
</div> | ||
{% if website.twitter %} | ||
<div class="right"> | ||
<a class="ui twitter mini button" | ||
href="https://twitter.com/share?url={{site.url|cgi_escape}}&text={{page.tweet|replace:'TWITTERHANDLE',website.twitter|cgi_escape}}&hashtags={{page.hash|cgi_escape}}" | ||
target="_blank"><i class="twitter icon"></i> {{page.link_mobile}}</a> | ||
</div> | ||
{% endif %} | ||
</tr> | ||
</div> | ||
{% endif %} | ||
{% endfor %} | ||
</tbody> | ||
</table> | ||
</div> | ||
</div> |
Oops, something went wrong.