Skip to content

Commit

Permalink
Add support for International Exceptions
Browse files Browse the repository at this point in the history
Part of Issue 2factorauth#241
  • Loading branch information
jdavis committed May 16, 2014
1 parent dd530de commit 3a327e5
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 4 deletions.
19 changes: 19 additions & 0 deletions _includes/international.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{% if site.data.international[include.id] %}
{% assign i = site.data.international[include.id] %}

{% capture html %}
<div class='header'>
International
</div>
<div class='content'>
SMS: {{ i.sms }}
</div>
{% endcapture %}

<span class="popup international"
data-position="bottom center"
data-variation="inverted"
data-html="{{ html | strip_newlines }}">
<i class="warning red link icon"></i>
</span>
{% endif %}
5 changes: 1 addition & 4 deletions css/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,7 @@ td i.icon{
margin: 0em 0em 0em 0em;
}

td span.progress {
float: right;
}

td span.progress,
td span.international {
float: right;
}
Expand Down
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ <h2>Two Factor Auth (2FA)</h2>
<img src="/img/{{ section.id }}/{{ website.img }}" class="icon" alt="{{ website.name }}">
{% endif %}
<a href="{{ website.url }}">{{ website.name }}</a>
{% include international.html id=website.id %}
</td>

<td class="positive icon">
Expand Down
1 change: 1 addition & 0 deletions js/app.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
(function (root, $) {
$('.menu .dropdown').dropdown();
$('span.popup.international').popup({on: 'click'});
}(window, jQuery));

0 comments on commit 3a327e5

Please sign in to comment.