Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

Commit

Permalink
Fix regression on participant page (#354)
Browse files Browse the repository at this point in the history
  • Loading branch information
chadwhitacre committed Nov 6, 2012
1 parent 06901a3 commit cf546ae
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions www/%participant_id/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@
.count SPAN.bar.green {
background: #2A8F79;
}
.payin-suspended {
.is-suspicious {
border: 2px solid red;
}
</style>
Expand Down Expand Up @@ -406,11 +406,11 @@
, dataType: 'json'
, success: function(data)
{
if (data.payin_suspended)
$('#balanced-account').addClass('payin-suspended');
if (data.is_suspicious)
$('#balanced-account').addClass('is-suspicious');
else
$('#balanced-account').removeClass('payin-suspended');
var val = data.payin_suspended ? 'Uns' : 'S';
$('#balanced-account').removeClass('is-suspicious');
var val = data.is_suspicious ? 'Uns' : 'S';
$('#payin-suspender').text(val + 'uspend Payins');
}
, error: function() {
Expand Down Expand Up @@ -709,10 +709,10 @@ <h3>Linked Accounts</h3>
</li>
{% end %}
{% if user.ADMIN and participant['balanced_account_uri'] %}
<li id="balanced-account"{% if participant['payin_suspended'] %} class="payin-suspended"{% end %}>
<li id="balanced-account"{% if participant['is_suspicious'] %} class="is-suspicious"{% end %}>
<img src="/assets/balanced-avatar.png" />
Balanced Payments
<button id="payin-suspender" class="small">{{ 'Unsuspend' if participant['payin_suspended'] else 'Suspend' }} Payins</button>
<button id="payin-suspender" class="small">{{ 'Unsuspend' if participant['is_suspicious'] else 'Suspend' }} Payins</button>
<br />
<a href="https://www.balancedpayments.com/{{ participant['balanced_account_uri'][3:] }}">balancedpayments.com/...</a>
</li>
Expand Down

0 comments on commit cf546ae

Please sign in to comment.