Skip to content

Commit

Permalink
Fix font awesome icon classes
Browse files Browse the repository at this point in the history
  • Loading branch information
arku committed Jun 4, 2018
1 parent 15a31e8 commit 9275eac
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions app/assets/v2/js/pages/dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ var addTechStackKeywordFilters = function(value) {
isTechStack = true;

$('.filter-tags').append('<a class="filter-tag tech_stack"><span>' + value + '</span>' +
'<i class="fa fa-times" onclick="removeFilter(\'tech_stack\', \'' + value + '\')"></i></a>');
'<i class="fab fa-times" onclick="removeFilter(\'tech_stack\', \'' + value + '\')"></i></a>');

$('input[name="tech_stack"][value=' + value + ']').prop('checked', true);
}
Expand All @@ -154,7 +154,7 @@ var addTechStackKeywordFilters = function(value) {
}

$('.filter-tags').append('<a class="filter-tag keywords"><span>' + value + '</span>' +
'<i class="fa fa-times" onclick="removeFilter(\'keywords\', \'' + value + '\')"></i></a>');
'<i class="fab fa-times" onclick="removeFilter(\'keywords\', \'' + value + '\')"></i></a>');
}
};

Expand All @@ -167,15 +167,15 @@ var getFilters = function() {
$.each($('input[name="' + key + '"]:checked'), function() {
if ($(this).attr('val-ui')) {
_filters.push('<a class="filter-tag ' + key + '"><span>' + $(this).attr('val-ui') + '</span>' +
'<i class="fa fa-times" onclick="removeFilter(\'' + key + '\', \'' + $(this).attr('value') + '\')"></i></a>');
'<i class="fab fa-times" onclick="removeFilter(\'' + key + '\', \'' + $(this).attr('value') + '\')"></i></a>');
}
});
}

if (localStorage['keywords']) {
localStorage['keywords'].split(',').forEach(function(v, k) {
_filters.push('<a class="filter-tag keywords"><span>' + v + '</span>' +
'<i class="fa fa-times" onclick="removeFilter(\'keywords\', \'' + v + '\')"></i></a>');
'<i class="fab fa-times" onclick="removeFilter(\'keywords\', \'' + v + '\')"></i></a>');
});
}

Expand Down
8 changes: 4 additions & 4 deletions app/assets/v2/js/shared.js
Original file line number Diff line number Diff line change
Expand Up @@ -504,13 +504,13 @@ var randomElement = function(array) {

var trigger_sidebar_web3_disabled = function() {
$('#upper_left').addClass('disabled');
$('#sidebar_head').html('<i class="fa fa-question"></i>');
$('#sidebar_head').html('<i class="fab fa-question"></i>');
$('#sidebar_p').html('<p>Web3 disabled</p><p>Please install <a href="https://metamask.io/?utm_source=gitcoin.co&utm_medium=referral" target="_blank" rel="noopener noreferrer">Metamask</a> <br> <a href="/web3" target="_blank" rel="noopener noreferrer">What is Metamask and why do I need it?</a>.</p>');
};

var trigger_sidebar_web3_locked = function() {
$('#upper_left').addClass('disabled');
$('#sidebar_head').html('<i class="fa fa-lock"></i>');
$('#sidebar_head').html('<i class="fab fa-lock"></i>');
$('#sidebar_p').html('<p>Web3 locked</p><p>Please unlock <a href="https://metamask.io/?utm_source=gitcoin.co&utm_medium=referral" target="_blank" rel="noopener noreferrer">Metamask</a>.<p>');
};

Expand Down Expand Up @@ -547,11 +547,11 @@ var trigger_sidebar_web3 = function(network) {

if (is_supported_network) {
$('#upper_left').removeClass('disabled');
$('#sidebar_head').html("<i class='fa fa-wifi'></i>");
$('#sidebar_head').html("<i class='fab fa-wifi'></i>");
$('#sidebar_p').html('<p>Web3 enabled<p>' + sidebar_p);
} else {
$('#upper_left').addClass('disabled');
$('#sidebar_head').html("<i class='fa fa-battery-empty'></i>");
$('#sidebar_head').html("<i class='fab fa-battery-empty'></i>");
sidebar_p += '<p>(try ' + recommended_network + ')</p>';
$('#sidebar_p').html('<p>Unsupported network</p>' + sidebar_p);
}
Expand Down
2 changes: 1 addition & 1 deletion app/dashboard/templates/bounty_details.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<div class="col-12 col-md-2 left-rails text-center" style="background: #F2F6F9;">
{% include 'shared/current_balance.html' %}
<div class="explorer font-body">
<a href="{% url 'explorer' %}"><i class="fa fa-chevron-left"></i> {% trans "Back to Issue Explorer" %}</a>
<a href="{% url 'explorer' %}"><i class="fab fa-chevron-left"></i> {% trans "Back to Issue Explorer" %}</a>
</div>
</div>

Expand Down

0 comments on commit 9275eac

Please sign in to comment.