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

Implement option to hide total receiving from others (issue #1683) #1721

Closed
wants to merge 10 commits into from
Prev Previous commit
Next Next commit
add missing <span>s with class="(my-)total-giving"
  • Loading branch information
Changaco committed Jan 1, 2014
commit 131b9088e94b79a662077f81a9d15b9ac51fe614
5 changes: 4 additions & 1 deletion templates/base.html
Original file line number Diff line number Diff line change
@@ -52,7 +52,10 @@ <h1>
<a href="/{{ user.participant.username }}/">{{ user.participant.username }}</a> &ndash;
<a id="sign-out" href="/sign-out.html">sign out</a>
<div class="quick-stats">
Giving: <a href="/{{ user.participant.username }}/giving/">${{ user.participant.get_dollars_giving() }}/wk</a><br />
Giving: <a href="/{{ user.participant.username }}/giving/">
<span class="my-total-giving">${{ user.participant.get_dollars_giving() }}<span>/wk
</a>
<br />
Receiving: <b>${{ user.participant.get_dollars_receiving() }}/wk</b>
</div>
</div>
4 changes: 3 additions & 1 deletion templates/participant.html
Original file line number Diff line number Diff line change
@@ -33,7 +33,9 @@ <h2 class="pad-sign">{{ participant.username }} receives</h2>
<span class="total-receiving">{{ receiving }}</span>
</div>
<div class="unit pad-sign">
per week{% if g > 0 %}, and gives {{ giving }}{% end %}
per week{% if g > 0 %}, and gives
<span class="{{prefix}}total-giving">{{ giving }}</span>
{% end %}
</div>
{% else %}
{% set age = participant.get_age_in_seconds() %}