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

Commit

Permalink
Fix bug due to None < 0; #893
Browse files Browse the repository at this point in the history
  • Loading branch information
chadwhitacre committed May 2, 2013
1 parent 3c33e30 commit 93a4acf
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions templates/profile-edit.html
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,12 @@ <h2>Funding Goal
Gittip.
{% elif user.goal == 0 %}
<span class="i-m">{{ I_M }}</span> here as a patron.
{% elif user.goal < 0 %}
<span class="i-m">{{ I_M }}</span> here as a patron, and politely
decline to receive gifts.
{% else %}
{% elif user.goal is None %}
<span class="i-m">{{ I_M }}</span> grateful for gifts, but
don't have a specific funding goal.
{% else %}
<span class="i-m">{{ I_M }}</span> here as a patron, and politely
decline to receive gifts.
{% end %}
</div>
<table class="edit"><tr><td>
Expand Down Expand Up @@ -118,7 +118,7 @@ <h2>Funding Goal

<input tabindex="406" type="radio" name="goal" id="goal-negative"
value="-1"
{% if user.goal < 0 %} checked="true"{% end %}/>
{% if (user.goal is not None) and user.goal < 0 %} checked="true"{% end %}/>
<label for="goal-negative"><span class="i-m">{{ I_M }}</span> here
as a patron, and politely decline to receive gifts.</label>

Expand Down

0 comments on commit 93a4acf

Please sign in to comment.